<?php $__env->startSection('title', 'Home'); ?>
<?php use Illuminate\Support\Str; ?>
<?php $__env->startSection('content'); ?>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($sliders->count()): ?>
<?php
    $sliderData = $sliders->map(fn($s) => [
        'image' => asset('storage/'.$s->image),
        'title' => $s->title,
        'subtitle' => $s->subtitle,
        'description' => $s->description,
        'btn_text' => $s->btn_text,
        'btn_link' => $s->btn_link,
    ])->values();
?>
<section class="hero-slider" x-data="{ current: 0, count: <?php echo e($sliderData->count()); ?>, timer: null, init() { this.timer = setInterval(() => { this.current = (this.current + 1) % this.count }, 5000) }, destroy() { clearInterval(this.timer) } }">
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $sliderData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
    <div x-show="current === <?php echo e($index); ?>" x-cloak class="hero-slide" style="background-image: url('<?php echo e($slide['image']); ?>')">
        <div class="hero-overlay"></div>
        <div class="hero-content">
            <h1><?php echo e($slide['title']); ?></h1>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($slide['subtitle']): ?><p><?php echo e($slide['subtitle']); ?></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(!$slide['subtitle'] && $slide['description']): ?><p><?php echo e($slide['description']); ?></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($slide['btn_text']): ?>
            <div class="hero-buttons">
                <a href="<?php echo e($slide['btn_link']); ?>" class="btn btn-primary"><?php echo e($slide['btn_text']); ?></a>
            </div>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </div>
    <?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; ?>
    <div class="slider-dots">
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $sliderData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
        <button :class="{ active: current === <?php echo e($index); ?> }" @click="current = <?php echo e($index); ?>"><?php echo e($index + 1); ?></button>
        <?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; ?>
    </div>
</section>
<?php else: ?>
<section class="hero">
    <div class="hero-content">
        <h1><?php echo e(\App\Models\Setting::getValue('hero_title', 'Professional Auto Diagnostics & Repair')); ?></h1>
        <p><?php echo e(\App\Models\Setting::getValue('hero_subtitle', 'Expert diagnostics, calibration, maintenance, and reprogramming services for light vehicles, heavy vehicles, agricultural machinery, and more.')); ?></p>
        <div class="hero-buttons">
            <a href="<?php echo e(route('shop')); ?>" class="btn btn-primary">Explore Products</a>
            <a href="<?php echo e(route('contact')); ?>" class="btn btn-outline">Contact Us</a>
        </div>
    </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($updates->count()): ?>
<section class="section" style="background:var(--bg-card);border-bottom:1px solid var(--border)">
    <div class="section-inner" x-data="updatesSlider(<?php echo e($updates->count()); ?>)">
        <h2 class="section-title"><span>Latest</span> Updates</h2>
        <p class="section-subtitle">New products, version releases, and industry updates</p>
        <div class="metro-slider-container">
            <button class="metro-slider-arrow metro-slider-prev" @click="prev()" :disabled="atStart">&lsaquo;</button>
            <div class="metro-slider-viewport" x-ref="viewport" @mouseenter="pause()" @mouseleave="resume()">
                <div class="metro-updates-track" :style="trackStyle">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $updates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $update): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <a href="<?php echo e($update->link); ?>" class="metro-update-slide" target="_blank" rel="noopener">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($update->image): ?>
                        <div class="metro-update-image">
                            <img src="<?php echo e(asset('storage/'.$update->image)); ?>" alt="<?php echo e($update->title); ?>" loading="lazy">
                        </div>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        <div class="metro-update-info">
                            <h3><?php echo e($update->title); ?></h3>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($update->description): ?>
                            <p><?php echo e(Str::limit($update->description, 80)); ?></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($update->price > 0): ?>
                            <div class="metro-update-price">$<?php echo e(number_format($update->price, 2)); ?></div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </a>
                    <?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; ?>
                </div>
            </div>
            <button class="metro-slider-arrow metro-slider-next" @click="next()" :disabled="atEnd">&rsaquo;</button>
        </div>
        <div class="metro-slider-dots">
            <template x-for="(page, i) in pages" :key="i">
                <button :class="{ active: currentPage === i }" @click="goTo(i)">&bull;</button>
            </template>
        </div>
    </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($brands->count()): ?>
<section class="section" style="background:var(--bg-dark);border-bottom:1px solid var(--border)">
    <div class="section-inner" x-data="brandsSlider(<?php echo e($brands->count()); ?>)">
        <h2 class="section-title"><span>Brands</span> We Offer</h2>
        <p class="section-subtitle">Trusted by leading manufacturers worldwide</p>
        <div class="metro-slider-container">
            <button class="metro-slider-arrow metro-slider-prev" @click="prev()" :disabled="atStart">&lsaquo;</button>
            <div class="metro-slider-viewport" x-ref="viewport" @mouseenter="pause()" @mouseleave="resume()">
                <div class="metro-slider-track" :style="trackStyle">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $brands; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $brand): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <a href="<?php echo e(route('shop.brand', $brand->slug)); ?>" class="metro-slide" title="<?php echo e($brand->name); ?>">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($brand->logo): ?>
                        <img src="<?php echo e(asset('storage/'.$brand->logo)); ?>" alt="<?php echo e($brand->name); ?>" class="metro-slide-logo" loading="lazy">
                        <?php else: ?>
                        <span class="metro-slide-name"><?php echo e($brand->name); ?></span>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </a>
                    <?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; ?>
                </div>
            </div>
            <button class="metro-slider-arrow metro-slider-next" @click="next()" :disabled="atEnd">&rsaquo;</button>
        </div>
        <div class="metro-slider-dots">
            <template x-for="(page, i) in pages" :key="i">
                <button :class="{ active: currentPage === i }" @click="goTo(i)">&bull;</button>
            </template>
        </div>
    </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($interfaces->count()): ?>
<section class="section" style="background:var(--bg-elevated);border-bottom:1px solid var(--border)">
    <div class="section-inner" x-data="updatesSlider(<?php echo e($interfaces->count()); ?>)">
        <h2 class="section-title"><span>Search</span> by Interface</h2>
        <p class="section-subtitle">Browse software compatible with your diagnostic interface</p>
        <div class="metro-slider-container">
            <button class="metro-slider-arrow metro-slider-prev" @click="prev()" :disabled="atStart">&lsaquo;</button>
            <div class="metro-slider-viewport" x-ref="viewport" @mouseenter="pause()" @mouseleave="resume()">
                <div class="metro-slider-track" :style="trackStyle">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $interfaces; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $interface): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <a href="<?php echo e(route('shop.interface', $interface->slug)); ?>" class="metro-slide" title="<?php echo e($interface->name); ?>">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($interface->image): ?>
                        <img src="<?php echo e(asset('storage/'.$interface->image)); ?>" alt="<?php echo e($interface->name); ?>" class="metro-slide-logo" loading="lazy">
                        <?php else: ?>
                        <span class="metro-slide-name"><?php echo e($interface->name); ?></span>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </a>
                    <?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; ?>
                </div>
            </div>
            <button class="metro-slider-arrow metro-slider-next" @click="next()" :disabled="atEnd">&rsaquo;</button>
        </div>
        <div class="metro-slider-dots">
            <template x-for="(page, i) in pages" :key="i">
                <button :class="{ active: currentPage === i }" @click="goTo(i)">&bull;</button>
            </template>
        </div>
    </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($featuredProducts->count()): ?>
<section class="section" style="background:var(--bg-card)">
    <div class="section-inner">
        <h2 class="section-title"><span>Featured</span> Products</h2>
        <p class="section-subtitle">Top quality parts and equipment for your vehicles</p>
        <div class="products-grid">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $featuredProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $product): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <a href="<?php echo e(route('product.show', $product->slug)); ?>" class="product-card" style="text-decoration:none">
                <img src="<?php echo e($product->primaryImage ? asset('storage/'.$product->primaryImage->image) : 'https://placehold.co/400x300/1a1a2e/f0c040?text='.$product->name); ?>" class="product-image" alt="<?php echo e($product->name); ?>">
                <div class="product-info">
                    <div class="category"><?php echo e($product->category->name ?? 'General'); ?></div>
                    <h3><?php echo e($product->name); ?></h3>
                    <div class="price">
                        $<?php echo e(number_format($product->displayPrice, 2)); ?>

                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($product->sale_price): ?> <s>$<?php echo e(number_format($product->price, 2)); ?></s> <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </div>
                </div>
            </a>
            <?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; ?>
        </div>
    </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($topSellers->count()): ?>
<section class="section" style="background:var(--bg-dark);border-bottom:1px solid var(--border)">
    <div class="section-inner" x-data="updatesSlider(<?php echo e($topSellers->count()); ?>)">
        <h2 class="section-title"><span>Top</span> Seller</h2>
        <p class="section-subtitle">Most popular diagnostic software solutions</p>
        <div class="metro-slider-container">
            <button class="metro-slider-arrow metro-slider-prev" @click="prev()" :disabled="atStart">&lsaquo;</button>
            <div class="metro-slider-viewport" x-ref="viewport" @mouseenter="pause()" @mouseleave="resume()">
                <div class="metro-updates-track" :style="trackStyle">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $topSellers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <a href="<?php echo e($item->link); ?>" class="metro-update-slide" target="_blank" rel="noopener">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($item->image): ?>
                        <div class="metro-update-image">
                            <img src="<?php echo e(asset('storage/'.$item->image)); ?>" alt="<?php echo e($item->title); ?>" loading="lazy">
                        </div>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        <div class="metro-update-info">
                            <h3><?php echo e($item->title); ?></h3>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($item->description): ?>
                            <p><?php echo e(Str::limit($item->description, 80)); ?></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($item->price > 0): ?>
                            <div class="metro-update-price">$<?php echo e(number_format($item->price, 2)); ?></div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </a>
                    <?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; ?>
                </div>
            </div>
            <button class="metro-slider-arrow metro-slider-next" @click="next()" :disabled="atEnd">&rsaquo;</button>
        </div>
        <div class="metro-slider-dots">
            <template x-for="(page, i) in pages" :key="i">
                <button :class="{ active: currentPage === i }" @click="goTo(i)">&bull;</button>
            </template>
        </div>
    </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($paymentProcesses->count()): ?>
<?php $pp = $paymentProcesses->first(); ?>
<section class="section" style="background:#ffffff;padding:30px 0">
    <div class="section-inner text-center">
        <h2 class="section-title"><span>Payment</span> Process</h2>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($pp->image_desktop): ?>
        <picture>
            <source media="(max-width: 640px)" srcset="<?php echo e(asset('storage/'.$pp->image_mobile ?: $pp->image_desktop)); ?>">
            <img src="<?php echo e(asset('storage/'.$pp->image_desktop)); ?>" alt="<?php echo e($pp->title ?? 'Payment Process'); ?>" style="max-width:100%;height:auto;margin:0 auto" loading="lazy">
        </picture>
        <?php endif; ?><?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($howItWorks->count()): ?>
<?php $hwBg = $howItWorks->first()->background_image; ?>
<section class="section" style="position:relative;overflow:hidden;<?php echo e($hwBg ? 'background:linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url('.asset('storage/'.$hwBg).') center/cover no-repeat' : 'background:var(--bg-dark)'); ?>;padding:60px 0">
    <div class="section-inner text-center" style="position:relative;z-index:1">
        <h2 class="section-title" style="color:#fff"><span>How</span> It Works</h2>
        <p class="section-subtitle" style="color:#ccc">Simple steps to get your diagnostic software</p>
        <div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:30px;margin-top:40px">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $howItWorks; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $step): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <div style="background:rgba(255,255,255,0.08);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.12);border-radius:16px;padding:30px 20px;text-align:center">
                <div style="font-size:3rem;margin-bottom:15px"><?php echo e($step->icon ?? '&#9733;'); ?></div>
                <h3 style="color:#fff;font-size:1.2rem;font-weight:600;margin-bottom:10px"><?php echo e($step->title); ?></h3>
                <p style="color:#aaa;font-size:0.9rem;line-height:1.6"><?php echo e($step->description); ?></p>
            </div>
            <?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; ?>
        </div>
    </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($premiumFeatures->count()): ?>
<section class="section" style="background:var(--bg-dark);padding:60px 0">
    <div class="section-inner text-center">
        <h2 class="section-title" style="color:#fff"><span>Premium</span> Features</h2>
        <p class="section-subtitle" style="color:#aaa">Exclusive capabilities for professional diagnostics</p>
        <div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:25px;margin-top:40px">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $premiumFeatures; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $feature): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <div style="background:var(--bg-card);border:1px solid var(--border-color);border-radius:16px;padding:35px 25px;text-align:center;transition:transform .3s,box-shadow .3s" onmouseover="this.style.transform='translateY(-5px)';this.style.boxShadow='0 10px 30px rgba(0,0,0,0.3)'" onmouseout="this.style.transform='';this.style.boxShadow=''">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($feature->image): ?>
                <img src="<?php echo e(asset('storage/'.$feature->image)); ?>" alt="<?php echo e($feature->title); ?>" style="width:64px;height:64px;object-fit:contain;margin-bottom:15px" loading="lazy">
                <?php elseif($feature->icon): ?>
                <div style="font-size:2.5rem;margin-bottom:15px"><?php echo $feature->icon; ?></div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                <h3 style="color:#fff;font-size:1.1rem;font-weight:600;margin-bottom:10px"><?php echo e($feature->title); ?></h3>
                <p style="color:#aaa;font-size:0.9rem;line-height:1.6"><?php echo e($feature->description); ?></p>
            </div>
            <?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; ?>
        </div>
    </div>
</section>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

<?php
    $subBgDesktop = \App\Models\Setting::getValue('subscription_bg_desktop');
    $subBgMobile = \App\Models\Setting::getValue('subscription_bg_mobile');
    $subHeading = \App\Models\Setting::getValue('subscription_heading', 'VIEW OUR ANALYTICAL SOFTWARE LIST');
    $subDescription = \App\Models\Setting::getValue('subscription_description', 'Subscribe to receive updates about new software, exclusive offers, and access to our complete analytical software catalog.');
    $subIcon = \App\Models\Setting::getValue('subscription_icon');
?>
<section class="section" style="position:relative;overflow:hidden;padding:0">
    <div style="position:relative;max-width:1200px;margin:0 auto">
        <div style="position:absolute;inset:0;background:<?php echo e($subBgDesktop ? 'url('.asset('storage/'.$subBgDesktop).') center/cover no-repeat' : 'linear-gradient(135deg,#0a0a14,#1a1a2e)'); ?>;display:none" class="subscription-bg-desktop"></div>
        <div style="position:absolute;inset:0;background:<?php echo e($subBgMobile ? 'url('.asset('storage/'.$subBgMobile).') center/cover no-repeat' : 'linear-gradient(135deg,#0a0a14,#1a1a2e)'); ?>" class="subscription-bg-mobile"></div>
        <div style="position:relative;border:1px solid rgba(195,83,11,0.6);border-radius:4px;margin:30px 20px;padding:30px 20px">
            <div style="display:grid;grid-template-columns:1fr;gap:20px;align-items:center;max-width:90%;margin:0 auto">
                <div style="text-align:center">
                    <h2 style="font-size:1.5rem;font-weight:800;text-transform:uppercase;color:#fff;margin-bottom:10px"><?php echo e($subHeading); ?></h2>
                    <p style="color:#aaa;font-size:0.9rem;margin-bottom:20px"><?php echo e($subDescription); ?></p>
                    <form method="POST" action="<?php echo e(route('subscribe')); ?>" style="display:flex;gap:10px;max-width:500px;margin:0 auto;flex-wrap:wrap;justify-content:center">
                        <?php echo csrf_field(); ?>
                        <input type="email" name="email" placeholder="Email" required style="flex:1;min-width:200px;padding:10px 15px;border:1px solid var(--border-color);border-radius:4px;background:var(--bg-card);color:#fff;font-size:0.9rem">
                        <button type="submit" style="padding:10px 25px;background:var(--primary-color);color:#fff;border:none;border-radius:4px;font-weight:600;cursor:pointer;text-transform:uppercase;font-size:0.85rem">Subscribe</button>
                    </form>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('success')): ?>
                        <p style="color:#6fcf97;margin-top:10px;font-size:0.9rem"><?php echo e(session('success')); ?></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(isset($errors) && $errors->has('email')): ?>
                        <p style="color:#e74c3c;margin-top:10px;font-size:0.9rem"><?php echo e($errors->first('email')); ?></p>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                </div>
            </div>
        </div>
    </div>
</section>

<style>
@media (min-width:768px) {
    .subscription-bg-desktop { display:block !important; }
    .subscription-bg-mobile { display:none !important; }
}
</style>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('front.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\diag\autodiag\resources\views/front/home.blade.php ENDPATH**/ ?>