관리-도구
편집 파일: 886961f38c56e808e1f047cb34808f6d.php
<div class="card card-body"> <h3 class="mb-3 fw-bold fs-16"><?php echo e(translate('Stores')); ?></h3> <div class="row g-3"> <div class="col-xl-6"> <div class="card border 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/most-popular.png')); ?>" alt=""> <?php echo e(translate('Most_Popular_Stores')); ?> </h4> <?php if($topVendorListByWishlist && count($topVendorListByWishlist) > 0): ?> <a href="<?php echo e(route('admin.vendors.vendor-list', ['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($topVendorListByWishlist && count($topVendorListByWishlist) > 0): ?> <div class="row g-3"> <?php $__currentLoopData = $topVendorListByWishlist; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $vendorItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($vendorItem?->shop)): ?> <div class="col-sm-6"> <a href="<?php echo e(route('admin.vendors.view', $vendorItem['id'])); ?>"> <div class="d-flex align-items-center gap-2 bg-section p-3 rounded overflow-wrap-anywhere"> <img width="48" src="<?php echo e(getStorageImages(path: $vendorItem?->shop?->image_full_url, type:'backend-basic')); ?>" class="rounded-circle aspect-1 border" alt=""> <div class="flex-grow-1"> <h5 class="mb-1 line-1 fw-medium text-hover-primary"><?php echo e($vendorItem?->shop?->name ?? 'Not exist'); ?></h5> <div class="d-flex align-items-center gap-2 text-warning-dark"> <i class="fi fi-sr-heart"></i> <h5 class="shop-sell mb-0 text-warning-dark"><?php echo e($vendorItem['wishlist_count'] ?? 0); ?></h5> </div> </div> </div> </a> </div> <?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_stores_available', 'image' => 'store', '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 border 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_stores')); ?> </h4> <?php if($topVendorByEarning && count($topVendorByEarning) > 0): ?> <a href="<?php echo e(route('admin.vendors.vendor-list', ['sort_by' => 'orders_count'])); ?>" 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"> <div class="row g-3"> <?php if($topVendorByEarning && count($topVendorByEarning) > 0): ?> <?php $__currentLoopData = $topVendorByEarning; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $vendor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if(isset($vendor->seller->shop)): ?> <div class="col-sm-6"> <a class="d-flex align-items-center gap-2 bg-section p-3 rounded overflow-wrap-anywhere cursor-pointer get-view-by-onclick" href="<?php echo e(route('admin.vendors.view', $vendor['seller_id'])); ?>"> <img width="48" class="rounded-circle aspect-1 border" alt="" src="<?php echo e(getStorageImages(path: $vendor->seller->shop->image_full_url,type:'backend-basic')); ?>"> <div class="flex-grow-1"> <h5 class="mb-1 line-1 fw-medium text-hover-primary"><?php echo e($vendor->seller->shop['name'] ?? 'Not exist'); ?></h5> <div class="d-flex align-items-center gap-2"> <i class="fi fi-sr-shopping-cart text-body-light"></i> <h4 class="shop-sell mb-0 fw-bold text-primary"> <?php echo e(setCurrencySymbol(amount: currencyConverter(amount: $vendor['total_earning']))); ?> </h4> </div> </div> </a> </div> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?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_stores_available', 'image' => 'store', 'width' => 45 ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> <?php /**PATH /home2/slnssare/public_html/resources/views/admin-views/system/partials/_stores.blade.php ENDPATH**/ ?>