Viewing file: 7bb771f36aced9402b4e25dfc1e18048.php (6.57 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<div> <?php if($total != 0): ?>
<div class="space-y-[1.5rem]"> <?php $__currentLoopData = $reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="flex gap-x-[0.75rem]">
<a href="<?php echo e(route('frontend.seller.profile', $review->user->username)); ?>" class="h-[2.5rem] md:h-[3rem] w-[2.5rem] md:w-[3rem] shrink-0 rounded-full overflow-hidden"> <img src="<?php echo e($review->user->image_url); ?>" class="w-full object-cover" alt="user img"> </a> <div class="space-y-[0.25rem] "> <div class="flex items-center gap-x-[0.12rem]"> <?php if($review->stars): ?> <?php for($i = 0; $i < $review->stars; $i++): ?> <small class="h-[1.2rem] w-[1.2rem] text-[#FF8E09]"> <?php if (isset($component)) { $__componentOriginalc450622c58fc9764fa587e7da049fc0e = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalc450622c58fc9764fa587e7da049fc0e = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.frontend.icons.star','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('frontend.icons.star'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalc450622c58fc9764fa587e7da049fc0e)): ?> <?php $attributes = $__attributesOriginalc450622c58fc9764fa587e7da049fc0e; ?> <?php unset($__attributesOriginalc450622c58fc9764fa587e7da049fc0e); ?> <?php endif; ?> <?php if (isset($__componentOriginalc450622c58fc9764fa587e7da049fc0e)): ?> <?php $component = $__componentOriginalc450622c58fc9764fa587e7da049fc0e; ?> <?php unset($__componentOriginalc450622c58fc9764fa587e7da049fc0e); ?> <?php endif; ?> </small> <?php endfor; ?> <?php endif; ?> </div>
<div class="flex items-center gap-x-[0.5rem]"> <h4 class="body-sm-500 text-gray-900"><?php echo e($review->user->name); ?></h4> <small class="body-sm-400 text-gray-500"> <?php if($review->created_at->diffInMinutes() < 60): ?> <?php echo e($review->created_at->diffInMinutes() . ' min ago'); ?>
<?php else: ?> <?php echo e($review->created_at->diffForHumans()); ?>
<?php endif; ?> </small> </div> <div class="body-md-400 text-gray-900"> <p> <?php echo e($review->comment); ?></p> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php else: ?> <?php if (isset($component)) { $__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279 = $attributes; } ?> <?php $component = App\View\Components\NotFound2::resolve(['message' => 'No Review found'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> <?php $component->withName('not-found2'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\NotFound2::class))->getConstructor()): ?> <?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279)): ?> <?php $attributes = $__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279; ?> <?php unset($__attributesOriginal1d4836cf2a383e6bf24022dc2d7bd279); ?> <?php endif; ?> <?php if (isset($__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279)): ?> <?php $component = $__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279; ?> <?php unset($__componentOriginal1d4836cf2a383e6bf24022dc2d7bd279); ?> <?php endif; ?> <?php endif; ?>
<?php if($reviews->count() > 0): ?> <div class="load-more mt-6"> <?php if($loadbutton && $total >= 5): ?> <?php if(count($reviews) >= $total): ?> <div class="text-center"><?php echo e(__('no_more_reviews_found')); ?></div> <?php else: ?> <div> <button wire:click="loadmoreReview" wire:loading.attr="disabled" class="btn-load-more flex shrink-0 p-[0.5rem_1rem] justify-center items-center rounded-[0.375rem] border border-gray-100 shadow-[0px_1px_2px_0px_rgba(28, 33, 38, 0.05)] heading-08 text-gray-700 hover:text-white transition-all duration-100 hover:bg-primary-500 mx-auto"> <span wire:loading wire:target="loadmoreReview"> <?php echo e(__('loading')); ?>... </span> <span wire:loading.remove wire:target="loadmoreReview"> <span><?php echo e(__('load_more')); ?></span> </span> </button> </div> <?php endif; ?> <?php endif; ?> </div> <?php endif; ?> </div> <?php /**PATH /home/picotech/domains/classify.picotech.app/public_html/resources/views/livewire/seller-review.blade.php ENDPATH**/ ?>
|