관리-도구
편집 파일: 13fe4ed3ca5b201786f06e2df13c255d.php
<div class="card card-body"> <h3 class="mb-3 fw-bold fs-16"><?php echo e(translate('Inhouse_Products')); ?></h3> <div class="row g-3"> <div class="col-xl-6"> <div class="card bg-body h-100"> <div class="card-header border-0 shadow-sm d-flex align-items-center justify-content-between gap-3"> <h4 class="d-flex align-items-center text-capitalize gap-10 mb-0"> <i class="fi fi-sr-star text-secondary"></i> <?php echo e(translate('Most_Rated_Products')); ?> </h4> <?php if($mostRatedProducts && count($mostRatedProducts) > 0): ?> <a href="<?php echo e(route('admin.products.list', ['type' => 'in-house', 'filter_sort_by' => 'most-favorite'])); ?>" class="fw-semibold text-primary"><?php echo e(translate('View_All')); ?></a> <?php endif; ?> </div> <div class="card-body min-h-260 max-h-460 overflow-y-auto"> <?php if($mostRatedProducts && count($mostRatedProducts) > 0): ?> <div class="row"> <div class="col-12"> <div class="row g-3"> <?php $__currentLoopData = $mostRatedProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($product['id'])): ?> <div class="col-sm-6"> <a href="<?php echo e(route('admin.products.view', ['addedBy' => ($product['added_by'] == 'seller' ? 'vendor' : 'in-house'), 'id' => $product['id']])); ?>" class="card card-body text-decoration-none text-reset"> <div class="d-flex align-items-center gap-2"> <img width="45" class="border rounded aspect-1" src="<?php echo e(getStorageImages(path: $product->thumbnail_full_url, type: 'backend-product')); ?>" alt="<?php echo e($product->name); ?><?php echo e(translate('image')); ?>"> <div> <h5 class="fs-12 fw-medium line-1 mb-2 text-hover-primary"> <?php echo e(isset($product['name']) ? $product->name : 'not exists'); ?> </h5> <div class="d-flex align-items-center gap-1 flex-wrap fs-12"> <span class="text-secondary d-flex align-items-center fw-bold gap-1"> <i class="fi fi-sr-star text-secondary"></i> <?php echo e(round($product['ratings_average'], 2)); ?> </span> <span class="d-flex align-items-center gap-10"> (<?php echo e($product['reviews_count']); ?> <?php echo e(translate('reviews')); ?>) </span> </div> </div> </div> </a> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <?php else: ?> <div class="d-flex justify-content-center align-items-center h-100"> <?php echo $__env->make('layouts.admin.partials._empty-state', [ 'text' => 'No_products_available', 'image' => 'product', 'width' => 45 ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </div> <?php endif; ?> </div> </div> </div> <div class="col-xl-6"> <div class="card bg-body h-100"> <div class="card-header border-0 shadow-sm d-flex align-items-center justify-content-between gap-3"> <h4 class="d-flex align-items-center text-capitalize gap-10 mb-0"> <img width="16" src="<?php echo e(dynamicAsset(path: 'public/assets/back-end/img/top-selling.png')); ?>" alt=""> <?php echo e(translate('Top_Selling_Products')); ?> </h4> <?php if(isset($topSellProduct) && count($topSellProduct) > 0): ?> <a href="<?php echo e(route('admin.products.list', ['type' => 'in-house', 'filter_sort_by' => 'best-selling'])); ?>" class="fw-semibold text-primary"><?php echo e(translate('View_All')); ?></a> <?php endif; ?> </div> <div class="card-body min-h-260 max-h-460 overflow-y-auto"> <?php if(isset($topSellProduct) && count($topSellProduct) > 0): ?> <div class="grid-card-wrap gap-3" style="--item-value: 200px;"> <?php $__currentLoopData = $topSellProduct; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($product['id'])): ?> <a href="<?php echo e(route('admin.products.view', ['addedBy' => ($product['added_by'] == 'seller' ? 'vendor' : 'in-house'), 'id' => $product['id']])); ?>" class="text-decoration-none text-reset"> <div class="card card-body d-flex flex-column align-items-center overflow-wrap-anywhere"> <img width="64" src="<?php echo e(getStorageImages(path: $product->thumbnail_full_url, type: 'backend-product')); ?>" class="rounded aspect-1" alt="<?php echo e($product['name'].'_'.translate('image')); ?>"> <h5 class="fs-12 fw-medium line-1 mb-1 mt-3 text-hover-primary"><?php echo e($product['name']); ?></h5> <div class="fs-12 mb-1"><?php echo e(translate('Total_Sold_Price')); ?></div> <h5 class="fs-12 fw-medium mb-2"><?php echo e(webCurrencyConverter($product->totalSoldAmount ?? 0)); ?></h5> <span class="badge text-bg-info badge-info badge-lg d-inline-flex justify-content-center fs-12 gap-1"> <div><?php echo e(translate('sold')); ?> :</div> <div class="fw-bold text-wrap"><?php echo e($product->total_qty_sold ?? 0); ?></div> </span> </div> </a> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <div class="d-flex justify-content-center align-items-center h-100"> <?php echo $__env->make('layouts.admin.partials._empty-state', [ 'text' => 'No_products_available', 'image' => 'product', 'width' => 45 ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </div> <?php endif; ?> </div> </div> </div> </div> </div> <?php /**PATH /home2/slnssare/public_html/resources/views/admin-views/system/partials/_products.blade.php ENDPATH**/ ?>