<?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 $__env->startSection('title', $product->seo_title ?: $product->name); ?>
    <?php $__env->startSection('meta_description', $product->seo_description ?: $product->short_description); ?>

    <?php
        $productImage = $product->getFirstMediaUrl('images');
        $effectivePrice = $product->effective_price;
        $availability = $product->quantity > 0 ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock';
        $siteName = \App\Models\Setting::getValue('site_name', 'Sawdabazar');
    ?>

     <?php $__env->slot('extraHead', null, []); ?> 
        <link rel="canonical" href="<?php echo e(route('products.show', $product)); ?>">
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($productImage): ?>
            <meta property="og:image" content="<?php echo e($productImage); ?>">
        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        <script type="application/ld+json">
        {
            "@context": "https://schema.org/",
            "@type": "Product",
            "name": "<?php echo e($product->name); ?>",
            "description": "<?php echo e($product->seo_description ?: $product->short_description); ?>",
            "sku": "<?php echo e($product->sku); ?>",
            "image": <?php echo $productImage ? json_encode([$productImage]) : '[]'; ?>,
            "brand": {
                "@type": "Brand",
                "name": "<?php echo e($product->brand?->name ?? $siteName); ?>"
            },
            "offers": {
                "@type": "Offer",
                "url": "<?php echo e(route('products.show', $product)); ?>",
                "priceCurrency": "BDT",
                "price": "<?php echo e(number_format($effectivePrice, 2, '.', '')); ?>",
                "availability": "<?php echo e($availability); ?>",
                "seller": {
                    "@type": "Organization",
                    "name": "<?php echo e($siteName); ?>"
                }
            }
        }
        </script>
     <?php $__env->endSlot(); ?>

    <?php
$__split = function ($name, $params = []) {
    return [$name, $params];
};
[$__name, $__params] = $__split('storefront.product-detail', ['product' => $product]);

$__keyOuter = $__key ?? null;

$__key = null;
$__componentSlots = [];

$__key ??= \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::generateKey('lw-1995458922-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);
?>
 <?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/detail.blade.php ENDPATH**/ ?>