<div class="px-4 pt-4">

    
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($banners->isNotEmpty()): ?>
        <div x-data="{
                c: 0, t: <?php echo e($banners->count()); ?>, timer: null,
                init(){ this.timer = setInterval(()=>{ this.c=(this.c+1)%this.t }, 4500) },
                destroy(){ clearInterval(this.timer) }
             }"
             x-init="init()" @mouseenter="destroy()" @mouseleave="init()"
             class="relative overflow-hidden rounded-xl mb-5 bg-slate-200"
             style="height:170px">

            <div class="flex h-full transition-transform duration-500 ease-out will-change-transform"
                 :style="`transform:translateX(-${c*100}%)`">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $banner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <div class="w-full h-full shrink-0">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($banner->link_url): ?>
                            <a href="<?php echo e($banner->link_url); ?>" target="_blank" rel="noopener" class="block w-full h-full">
                                <img src="<?php echo e(Storage::url($banner->image)); ?>" alt="<?php echo e($banner->title); ?>"
                                     class="w-full h-full object-cover rounded-xl" loading="eager" />
                            </a>
                        <?php else: ?>
                            <img src="<?php echo e(Storage::url($banner->image)); ?>" alt="<?php echo e($banner->title); ?>"
                                 class="w-full h-full object-cover rounded-xl" loading="eager" />
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($banners->count() > 1): ?>
                <div class="absolute bottom-2.5 inset-x-0 flex justify-center gap-1.5">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $banners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <button type="button" @click="c=<?php echo e($i); ?>"
                            :class="c===<?php echo e($i); ?> ? 'w-5 bg-white' : 'w-1.5 bg-white/50'"
                            class="h-1.5 rounded-full transition-all duration-300"></button>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($categories->isNotEmpty()): ?>
        <section class="mb-5">
            <div class="flex items-center justify-between mb-3">
                <h2 class="text-base font-semibold text-slate-800">Kategori</h2>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($filterCategory): ?>
                    <button type="button" wire:click="$set('filterCategory','')"
                        class="text-xs text-orange-500 font-medium">Lihat semua ›</button>
                <?php else: ?>
                    <a href="<?php echo e(route('store.products')); ?>" class="text-xs text-orange-500 font-medium">Lihat semua ›</a>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
            <div class="flex gap-3 overflow-x-auto pb-1 -mx-4 px-4 scrollbar-hide">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <button type="button" wire:click="setCategory('<?php echo e($cat->slug); ?>')"
                        class="flex flex-col items-center gap-2 shrink-0 w-16 active:scale-95 transition-transform duration-150">
                        <div class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                            'w-16 h-16 rounded-xl flex items-center justify-center transition-colors duration-200 shadow-sm',
                            'bg-orange-50 border-2 border-orange-500' => $filterCategory === $cat->slug,
                            'bg-white border border-slate-100'        => $filterCategory !== $cat->slug,
                        ]); ?>">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($cat->image): ?>
                                <img src="<?php echo e(Storage::url($cat->image)); ?>" alt="<?php echo e($cat->name); ?>"
                                     class="w-9 h-9 object-contain"
                                     loading="lazy" />
                            <?php else: ?>
                                <span class="text-xl font-bold <?php echo e($filterCategory === $cat->slug ? 'text-orange-600' : 'text-orange-400'); ?>">
                                    <?php echo e(strtoupper(substr($cat->name, 0, 1))); ?>

                                </span>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                        <span class="text-[11px] text-center leading-tight line-clamp-2 w-full
                            <?php echo e($filterCategory === $cat->slug ? 'text-orange-600 font-semibold' : 'text-slate-600'); ?>">
                            <?php echo e($cat->name); ?>

                        </span>
                    </button>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>
        </section>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

    
    <section class="mb-5">
        <div class="flex items-center justify-between mb-3">
            <h2 class="text-base font-semibold text-slate-800">Filter</h2>
        </div>
        <div class="flex gap-2 overflow-x-auto pb-0.5 -mx-4 px-4 scrollbar-hide">
            <?php $allActive = $filterFeatured === '' && $filterPrice === ''; ?>

            <?php if (isset($component)) { $__componentOriginalfda6575b25d0d12e8bb6e883624b9441 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.store.filter-chip','data' => ['active' => $allActive,'wire:click' => '$set(\'filterFeatured\',\'\'); $set(\'filterPrice\',\'\')']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('store.filter-chip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($allActive),'wire:click' => '$set(\'filterFeatured\',\'\'); $set(\'filterPrice\',\'\')']); ?>
                Semua
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $attributes = $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $component = $__componentOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>

            <?php if (isset($component)) { $__componentOriginalfda6575b25d0d12e8bb6e883624b9441 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.store.filter-chip','data' => ['active' => $filterFeatured === 'featured','wire:click' => '$set(\'filterFeatured\',\'featured\'); $set(\'filterPrice\',\'\')','icon' => 'M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('store.filter-chip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($filterFeatured === 'featured'),'wire:click' => '$set(\'filterFeatured\',\'featured\'); $set(\'filterPrice\',\'\')','icon' => 'M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z']); ?>
                Unggulan
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $attributes = $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $component = $__componentOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>

            <?php if (isset($component)) { $__componentOriginalfda6575b25d0d12e8bb6e883624b9441 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.store.filter-chip','data' => ['active' => $filterPrice === 'under50k','wire:click' => '$set(\'filterPrice\',\'under50k\'); $set(\'filterFeatured\',\'\')']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('store.filter-chip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($filterPrice === 'under50k'),'wire:click' => '$set(\'filterPrice\',\'under50k\'); $set(\'filterFeatured\',\'\')']); ?>
                Di bawah 50rb
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $attributes = $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $component = $__componentOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>

            <?php if (isset($component)) { $__componentOriginalfda6575b25d0d12e8bb6e883624b9441 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.store.filter-chip','data' => ['active' => $filterPrice === '50k-100k','wire:click' => '$set(\'filterPrice\',\'50k-100k\'); $set(\'filterFeatured\',\'\')']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('store.filter-chip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($filterPrice === '50k-100k'),'wire:click' => '$set(\'filterPrice\',\'50k-100k\'); $set(\'filterFeatured\',\'\')']); ?>
                50rb – 100rb
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $attributes = $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $component = $__componentOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>

            <?php if (isset($component)) { $__componentOriginalfda6575b25d0d12e8bb6e883624b9441 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.store.filter-chip','data' => ['active' => $filterPrice === 'above100k','wire:click' => '$set(\'filterPrice\',\'above100k\'); $set(\'filterFeatured\',\'\')']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('store.filter-chip'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($filterPrice === 'above100k'),'wire:click' => '$set(\'filterPrice\',\'above100k\'); $set(\'filterFeatured\',\'\')']); ?>
                &gt;100rb
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $attributes = $__attributesOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__attributesOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441)): ?>
<?php $component = $__componentOriginalfda6575b25d0d12e8bb6e883624b9441; ?>
<?php unset($__componentOriginalfda6575b25d0d12e8bb6e883624b9441); ?>
<?php endif; ?>
        </div>
    </section>

    
    <div wire:loading.flex wire:target="search,filterCategory,filterPrice,filterFeatured"
         class="items-center justify-center gap-2 py-10 text-slate-400">
        <svg class="animate-spin w-5 h-5 text-orange-400" fill="none" viewBox="0 0 24 24">
            <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/>
            <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"/>
        </svg>
        <span class="text-sm">Memuat...</span>
    </div>

    <div wire:loading.remove wire:target="search,filterCategory,filterPrice,filterFeatured">

        
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($isFiltering): ?>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($search): ?>
                <p class="text-xs text-slate-500 mb-3">
                    Hasil untuk <strong class="text-slate-700">"<?php echo e($search); ?>"</strong>
                </p>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($products->isEmpty()): ?>
                <div class="py-16 flex flex-col items-center text-center">
                    <div class="w-16 h-16 bg-slate-100 rounded-full flex items-center justify-center mb-3">
                        <svg class="w-8 h-8 text-slate-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
                                  d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
                        </svg>
                    </div>
                    <p class="font-semibold text-slate-600 text-sm">Produk tidak ditemukan</p>
                    <p class="text-xs text-slate-400 mt-1 mb-4">Coba kata kunci yang berbeda</p>
                    <button type="button" wire:click="$set('search','')"
                        class="h-11 px-6 bg-orange-500 text-white text-sm font-semibold rounded-xl
                               hover:bg-orange-600 active:scale-95 transition-all">
                        Lihat Semua Produk
                    </button>
                </div>
            <?php else: ?>
                <div class="grid grid-cols-2 sm:grid-cols-3 gap-3 mb-4">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $products; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php echo $__env->make('livewire.store.partials.product-card', ['product'=>$product], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
                <?php echo e($products->links()); ?>

            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

        <?php else: ?>
            

            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($featuredProducts->isNotEmpty()): ?>
                <section class="mb-6">
                    <div class="flex items-center justify-between mb-3">
                        <h2 class="text-base font-semibold text-slate-800">Produk Unggulan</h2>
                        <button type="button" wire:click="$set('filterFeatured','featured')"
                            class="text-xs text-orange-500 font-medium">Lihat semua ›</button>
                    </div>
                    <div class="grid grid-cols-2 sm:grid-cols-3 gap-3">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $featuredProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php echo $__env->make('livewire.store.partials.product-card', ['product'=>$product], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                </section>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($newestProducts->isNotEmpty()): ?>
                <section class="mb-6">
                    <div class="flex items-center justify-between mb-3">
                        <h2 class="text-base font-semibold text-slate-800">Produk Terbaru</h2>
                        <a href="<?php echo e(route('store.products')); ?>" class="text-xs text-orange-500 font-medium">
                            Lihat semua ›
                        </a>
                    </div>
                    <div class="grid grid-cols-2 sm:grid-cols-3 gap-3">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $newestProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php echo $__env->make('livewire.store.partials.product-card', ['product'=>$product], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                </section>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($newestProducts->isEmpty() && $featuredProducts->isEmpty()): ?>
                <div class="py-16 flex flex-col items-center text-center">
                    <div class="w-16 h-16 bg-orange-50 rounded-full flex items-center justify-center mb-3">
                        <svg class="w-8 h-8 text-orange-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
                                  d="M13.5 21v-7.5a.75.75 0 01.75-.75h3a.75.75 0 01.75.75V21m-4.5 0H2.36m11.14 0H18m0 0h3.64m-1.39 0V9.349m-16.5 11.65V9.35m0 0a3.001 3.001 0 003.75-.615A2.993 2.993 0 009.75 9.75c.896 0 1.7-.393 2.25-1.016a2.993 2.993 0 002.25 1.016c.896 0 1.7-.393 2.25-1.016a3.001 3.001 0 003.75.614m-16.5 0a3.004 3.004 0 01-.621-4.72L4.318 3.44A1.5 1.5 0 015.378 3h13.243a1.5 1.5 0 011.06.44l1.19 1.189a3 3 0 01-.621 4.72m-13.5 8.65h3.75a.75.75 0 00.75-.75V13.5a.75.75 0 00-.75-.75H6.75a.75.75 0 00-.75.75v3.75c0 .415.336.75.75.75z"/>
                        </svg>
                    </div>
                    <p class="font-semibold text-slate-600 text-sm">Belum ada produk</p>
                    <p class="text-xs text-slate-400 mt-1">Kembali lagi nanti</p>
                </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($partners->isNotEmpty()): ?>
                <section class="mb-6">
                    <div class="flex items-center justify-between mb-3">
                        <h2 class="text-base font-semibold text-slate-800">Mitra Terdekat</h2>
                        <a href="<?php echo e(route('store.partners')); ?>" class="text-xs text-orange-500 font-medium">
                            Lihat semua ›
                        </a>
                    </div>
                    <div class="grid grid-cols-3 gap-3">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $partners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <a href="<?php echo e(route('store.partners.show', $partner->id)); ?>"
                               class="bg-white rounded-xl border border-slate-100 shadow-sm p-3 flex flex-col items-center gap-2
                                      hover:border-orange-200 hover:shadow-md active:scale-95 transition-all duration-200 text-center">
                                
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($partner->logo): ?>
                                    <img src="<?php echo e(Storage::url($partner->logo)); ?>" alt="<?php echo e($partner->name); ?>"
                                         class="w-12 h-12 rounded-full object-cover ring-2 ring-white shadow-sm" />
                                <?php else: ?>
                                    <div class="w-12 h-12 rounded-full bg-orange-100 ring-2 ring-white shadow-sm
                                                flex items-center justify-center">
                                        <span class="text-orange-600 font-bold text-lg leading-none">
                                            <?php echo e(strtoupper(substr($partner->name, 0, 1))); ?>

                                        </span>
                                    </div>
                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                                <div class="w-full min-w-0">
                                    <p class="font-semibold text-slate-800 text-xs truncate"><?php echo e($partner->name); ?></p>
                                    <p class="text-[10px] text-slate-400 mt-0.5"><?php echo e($partner->products_count); ?> produk</p>
                                </div>

                                <span class="<?php echo \Illuminate\Support\Arr::toCssClasses([
                                    'inline-flex items-center gap-1 text-[10px] font-semibold px-2 py-0.5 rounded-full w-full justify-center',
                                    'bg-green-50 text-green-700' => $partner->isOpenNow(),
                                    'bg-red-50 text-red-600'    => !$partner->isOpenNow(),
                                ]); ?>">
                                    <span class="<?php echo \Illuminate\Support\Arr::toCssClasses(['w-1.5 h-1.5 rounded-full shrink-0',
                                        'bg-green-500'=>$partner->isOpenNow(),
                                        'bg-red-400'=>!$partner->isOpenNow()]); ?>"></span>
                                    <?php echo e($partner->isOpenNow() ? 'Buka' : 'Tutup'); ?>

                                </span>
                            </a>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                </section>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

            
            <footer class="mt-8 pt-5 border-t border-slate-100 text-center pb-2">
                <p class="text-sm font-semibold text-slate-700">
                    <?php echo e(\App\Models\Setting::get('store_name', config('app.name'))); ?>

                </p>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(\App\Models\Setting::get('operating_hours')): ?>
                    <p class="text-xs text-slate-400 mt-1">
                        🕐 <?php echo e(\App\Models\Setting::get('operating_hours')); ?>

                    </p>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(\App\Models\Setting::get('wa_admin')): ?>
                    <a href="https://wa.me/<?php echo e(preg_replace('/^0/', '62', \App\Models\Setting::get('wa_admin'))); ?>"
                       target="_blank"
                       class="inline-flex items-center gap-1.5 mt-2 text-xs text-green-600 font-medium hover:text-green-700">
                        <svg class="w-3.5 h-3.5" fill="currentColor" viewBox="0 0 24 24">
                            <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/>
                        </svg>
                        Hubungi via WhatsApp
                    </a>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                <p class="text-[10px] text-slate-300 mt-3">&copy; <?php echo e(date('Y')); ?> <?php echo e(\App\Models\Setting::get('store_name', config('app.name'))); ?></p>
            </footer>
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
    </div>

</div>
<?php /**PATH C:\laragon\www\titipin-babe\resources\views/livewire/store/home.blade.php ENDPATH**/ ?>