<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>

    <?php
        $homePage = null;
        try {
            if (\Illuminate\Support\Facades\Schema::hasTable('pages')) {
                $homePage = \App\Models\Page::with('sections')->where('slug', 'home')->where('is_active', true)->first();
            }
        } catch (\Exception $e) {
            $homePage = null;
        }
    ?>

    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($homePage): ?>
        <?php $__env->startSection('title', $homePage->meta_title ?: $homePage->title); ?>
        <?php $__env->startSection('meta_description', $homePage->meta_description); ?>
    <?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($homePage && $homePage->sections->isNotEmpty()): ?>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $homePage->sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <?php if ($__env->exists('storefront.blocks.' . $section->block_type, $section->content)) echo $__env->make('storefront.blocks.' . $section->block_type, $section->content, array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
    <?php else: ?>
        <!-- Fallback Static Homepage (Aesthetic Default Layout) -->
        <!-- Hero Banner -->
        <div class="relative bg-gray-900 overflow-hidden min-h-[500px] flex items-center">
            <!-- Background graphics -->
            <div class="absolute inset-0 opacity-20">
                <div class="absolute -top-40 -left-45 w-96 h-96 rounded-full bg-indigo-500 blur-3xl"></div>
                <div class="absolute -bottom-40 -right-45 w-96 h-96 rounded-full bg-violet-500 blur-3xl"></div>
            </div>

            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 py-16 sm:py-24 text-center sm:text-left">
                <div class="max-w-xl space-y-6">
                    <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-bold bg-indigo-500/10 text-indigo-400 border border-indigo-500/20 uppercase tracking-widest">
                        New Season Arrivals
                    </span>
                    <h1 class="text-4xl sm:text-5xl font-extrabold text-white leading-tight tracking-tight">
                        Premium Quality Products. <br>
                        <span class="bg-gradient-to-r from-indigo-400 to-violet-400 bg-clip-text text-transparent">Direct to Your Door.</span>
                    </h1>
                    <p class="text-gray-300 text-base sm:text-lg leading-relaxed">
                        Discover our exclusive collection of premium items. Enjoy cash on delivery, secure local payment gateways, and fast shipping all over Bangladesh.
                    </p>
                    <div class="pt-4 flex flex-col sm:flex-row items-center justify-center sm:justify-start gap-4">
                        <a 
                            href="/shop" 
                            class="w-full sm:w-auto inline-flex items-center justify-center px-6 py-3.5 border border-transparent text-sm font-bold rounded-xl shadow-lg text-white bg-indigo-600 hover:bg-indigo-650 transition-all text-center"
                        >
                            Explore Catalog
                        </a>
                        <a 
                            href="/shop?featured=1" 
                            class="w-full sm:w-auto inline-flex items-center justify-center px-6 py-3.5 border border-gray-700 text-sm font-bold rounded-xl text-gray-300 hover:text-white hover:bg-gray-800 transition-all text-center"
                        >
                            Featured Deals
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <!-- Dynamic Catalog Grid Preview -->
        <div class="bg-white py-16 border-t border-b border-gray-100">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="text-center max-w-xl mx-auto space-y-3 mb-12">
                    <h2 class="text-3xl font-extrabold text-gray-900 tracking-tight">Featured Collections</h2>
                    <p class="text-sm text-gray-500">
                        Handpicked products recommended for you this week.
                    </p>
                </div>
                
                <?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('storefront.product-list');

$__keyOuter = $__key ?? null;

$__key = null;
$__componentSlots = [];

$__key ??= \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::generateKey('lw-973441015-0', $__key);

$__html = app('livewire')->mount($__name, $__params, $__key, $__componentSlots);

echo $__html;

unset($__html);
unset($__key);
$__key = $__keyOuter;
unset($__keyOuter);
unset($__name);
unset($__params);
unset($__componentSlots);
unset($__split);
?>
            </div>
        </div>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\laragon\www\Sawdabazar\resources\views/storefront/home.blade.php ENDPATH**/ ?>