<?php $__env->startSection('title', $home['title'] ?? $ui['brand']); ?>

<?php $__env->startSection('content'); ?>
    <?php
        $statIcons = ['users-round', 'home', 'graduation-cap', 'badge-check'];
        $departmentIcons = ['scale', 'book-open-text', 'languages', 'book-marked', 'blocks', 'school', 'microscope', 'monitor'];
        $serviceIcons = ['bed', 'stethoscope', 'flask-conical', 'dumbbell', 'database', 'mic-2'];
        $mediaBase = 'images/madrasa/optimized/';
        $heroSlides = [
            ['image' => 'campus.jpg', 'title' => $home['title'], 'caption' => $home['lead']],
            ['image' => 'study-hall.jpg', 'title' => $home['departments_title'], 'caption' => $home['intro_body']],
            ['image' => 'students-line.jpg', 'title' => $home['services_title'], 'caption' => $home['services_body']],
        ];
        $departmentImages = ['study-hall.jpg', 'arabic-institute.jpg', 'lesson.jpg', 'gathering.jpg', 'classroom.jpg', 'campus.jpg', 'library.jpg', 'courtyard.jpg'];
    ?>

    <section class="hero">
        <section class="hero-slider" data-hero-slider data-interval="6800" aria-label="<?php echo e($home['title']); ?>">
            <div class="hero-slider__track">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $heroSlides; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <figure class="hero-slide <?php if($loop->first): ?> is-active <?php endif; ?>" data-hero-slide aria-hidden="<?php echo e($loop->first ? 'false' : 'true'); ?>">
                        <img src="<?php echo e(asset($mediaBase . $slide['image'])); ?>" alt="<?php echo e($slide['title']); ?>" <?php if($loop->first): ?> fetchpriority="high" <?php else: ?> loading="lazy" <?php endif; ?>>
                        <figcaption>
                            <span><?php echo e(str_pad($loop->iteration, 2, '0', STR_PAD_LEFT)); ?></span>
                            <strong><?php echo e($slide['title']); ?></strong>
                            <small><?php echo e($slide['caption']); ?></small>
                        </figcaption>
                    </figure>
                <?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 class="hero-slider__controls">
                <button type="button" data-hero-prev aria-label="Previous slide"><i data-lucide="chevron-left" aria-hidden="true"></i></button>
                <div class="hero-slider__dots" aria-label="Slider navigation">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $heroSlides; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $slide): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <button type="button" data-hero-dot class="<?php echo \Illuminate\Support\Arr::toCssClasses(['is-active' => $loop->first]); ?>" aria-label="Slide <?php echo e($loop->iteration); ?>" aria-current="<?php echo e($loop->first ? 'true' : 'false'); ?>"></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>
                <button type="button" data-hero-next aria-label="Next slide"><i data-lucide="chevron-right" aria-hidden="true"></i></button>
            </div>
            <span class="hero-slider__progress" aria-hidden="true"><span data-hero-progress></span></span>
        </section>

        <div class="container hero__grid">
            <div class="hero__copy">
                <p class="hero__eyebrow"><i data-lucide="sparkles" aria-hidden="true"></i> <?php echo e($home['eyebrow']); ?></p>
                <h1><?php echo e($home['title']); ?></h1>
                <p class="hero__lead"><?php echo e($home['lead']); ?></p>
                <div class="hero__actions">
                    <a class="btn btn-primary" href="<?php echo e(route('admissions')); ?>"><i data-lucide="book-open-check" aria-hidden="true"></i> <?php echo e($home['primary']); ?></a>
                    <a class="btn btn-ghost" href="<?php echo e(route('darul-ifta')); ?>"><i data-lucide="messages-square" aria-hidden="true"></i> <?php echo e($home['secondary']); ?></a>
                </div>
                <div class="hero__stats">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $stats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <div>
                            <i data-lucide="<?php echo e($statIcons[$loop->index]); ?>" aria-hidden="true"></i>
                            <strong><?php echo e($stat['value']); ?></strong>
                            <span><?php echo e($stat['label']); ?></span>
                        </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>

            <div class="hero__visual" aria-label="جامعه ریاض العلوم کابل">
                <?php echo $__env->make('site.partials.prayer-widget', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </div>
        </div>
    </section>

    <section class="intro-band">
        <div class="container intro-band__grid">
            <div>
                <span class="section-kicker"><?php echo e($home['intro_kicker']); ?></span>
                <h2><?php echo e($home['intro_title']); ?></h2>
            </div>
            <p><?php echo e($home['intro_body']); ?></p>
            <figure class="intro-photo">
                <img src="<?php echo e(asset($mediaBase . 'courtyard.jpg')); ?>" alt="<?php echo e($home['intro_title']); ?>" loading="lazy">
            </figure>
        </div>
    </section>

    <section class="section-pad" id="departments">
        <div class="container">
            <div class="section-heading">
                <span class="section-kicker"><?php echo e($home['departments_kicker']); ?></span>
                <h2><?php echo e($home['departments_title']); ?></h2>
                <a href="<?php echo e(route('departments')); ?>"><?php echo e($home['departments_link']); ?> <i data-lucide="arrow-up-left" aria-hidden="true"></i></a>
            </div>

            <div class="department-grid">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $departments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $department): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <article class="department-card" style="--i: <?php echo e($loop->index); ?>">
                        <figure class="department-card__media">
                            <img src="<?php echo e(asset($mediaBase . $departmentImages[$loop->index % count($departmentImages)])); ?>" alt="<?php echo e($department['title']); ?>" loading="lazy">
                        </figure>
                        <i data-lucide="<?php echo e($departmentIcons[$loop->index]); ?>" aria-hidden="true"></i>
                        <span><?php echo e($department['meta']); ?></span>
                        <h3><?php echo e($department['title']); ?></h3>
                        <p><?php echo e($department['summary']); ?></p>
                    </article>
                <?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>

    <section class="section-pad section-pad--light">
        <div class="container split-section">
            <div class="split-section__copy">
                <span class="section-kicker"><?php echo e($home['services_kicker']); ?></span>
                <h2><?php echo e($home['services_title']); ?></h2>
                <p><?php echo e($home['services_body']); ?></p>
                <figure class="service-showcase">
                    <img src="<?php echo e(asset($mediaBase . 'residence.jpg')); ?>" alt="<?php echo e($home['services_title']); ?>" loading="lazy">
                    <figcaption><?php echo e($home['services_kicker']); ?></figcaption>
                </figure>
                <a class="btn btn-primary" href="<?php echo e(route('about')); ?>"><i data-lucide="landmark" aria-hidden="true"></i> <?php echo e($home['about_link']); ?></a>
            </div>

            <div class="service-list">
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $services; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $service): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <article>
                        <i data-lucide="<?php echo e($serviceIcons[$loop->index]); ?>" aria-hidden="true"></i>
                        <div>
                            <h3><?php echo e($service['title']); ?></h3>
                            <p><?php echo e($service['body']); ?></p>
                        </div>
                    </article>
                <?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>

    <section class="section-pad">
        <div class="container feature-columns">
            <div class="fatwa-panel">
                <div class="section-heading section-heading--compact">
                    <div>
                        <span class="section-kicker"><?php echo e($home['ifta_kicker']); ?></span>
                        <h2><?php echo e($home['ifta_title']); ?></h2>
                    </div>
                    <a href="<?php echo e(route('darul-ifta')); ?>"><?php echo e($home['more']); ?> <i data-lucide="arrow-up-left" aria-hidden="true"></i></a>
                </div>
                <figure class="panel-media">
                    <img src="<?php echo e(asset($mediaBase . 'gathering.jpg')); ?>" alt="<?php echo e($home['ifta_title']); ?>" loading="lazy">
                </figure>
                <div class="question-list">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $fatwas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fatwa): $__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('darul-ifta')); ?>">
                            <span><?php echo e($fatwa['category']); ?></span>
                            <strong><?php echo e($fatwa['title']); ?></strong>
                            <small><?php echo e($fatwa['date']); ?></small>
                        </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>

            <div class="publication-panel">
                <div class="section-heading section-heading--compact">
                    <div>
                        <span class="section-kicker"><?php echo e($home['publications_kicker']); ?></span>
                        <h2><?php echo e($home['publications_title']); ?></h2>
                    </div>
                    <a href="<?php echo e(route('publications')); ?>"><?php echo e($home['more']); ?> <i data-lucide="arrow-up-left" aria-hidden="true"></i></a>
                </div>
                <figure class="panel-media panel-media--small">
                    <img src="<?php echo e(asset($mediaBase . 'library.jpg')); ?>" alt="<?php echo e($home['publications_title']); ?>" loading="lazy">
                </figure>
                <div class="publication-stack">
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $publications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $publication): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                        <article>
                            <i data-lucide="scroll-text" aria-hidden="true"></i>
                            <span><?php echo e($publication['type']); ?></span>
                            <h3><?php echo e($publication['title']); ?></h3>
                            <p><?php echo e($publication['caption']); ?></p>
                        </article>
                    <?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>
        </div>
    </section>

    <section class="goals">
        <div class="container goals__grid">
            <div>
                <span class="section-kicker"><?php echo e($home['goals_kicker']); ?></span>
                <h2><?php echo e($home['goals_title']); ?></h2>
                <figure class="goals__photo">
                    <img src="<?php echo e(asset($mediaBase . 'classroom.jpg')); ?>" alt="<?php echo e($home['goals_title']); ?>" loading="lazy">
                </figure>
            </div>
            <ol>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $goals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $goal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                    <li><?php echo e($goal); ?></li>
                <?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; ?>
            </ol>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('site.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Applications/MAMP/htdocs/jrk-website/resources/views/site/home.blade.php ENDPATH**/ ?>