<?php $__env->startSection('title', 'Exams'); ?>

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('layouts.partials.page_header', [
        'title' => 'Exams',
        'breadcrumbs' => [
            ['label' => 'Home', 'url' => route('home')],
            ['label' => 'Exams', 'url' => ''],
        ]
    ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

    <section class="course-grid">
        <div class="container">
            <div class="row">
                <div class="col-xl-4 col-lg-5">
                    <div class="course-grid__left">
                        <div class="course-grid__sidebar">
                            <form action="<?php echo e(route('exams.index')); ?>" method="GET">
                                <div class="course-grid__search course-grid__single">
                                    <div class="course-grid__title-box">
                                        <h3 class="course-grid__title">Search Exams</h3>
                                        <div class="course-grid__title-shape-1">
                                            <img src="<?php echo e(asset('assets/images/shapes/course-grid-title-shape-1.png')); ?>" alt="">
                                        </div>
                                    </div>
                                    <div class="course-grid__search-form">
                                        <input type="search" name="search" class="form-control" placeholder="Search by name or code" value="<?php echo e(request('search')); ?>">
                                        <button type="submit" class="thm-btn"><i class="icon-search"></i> Search</button>
                                    </div>
                                </div>

                                <div class="course-grid__skill course-grid__single">
                                    <div class="course-grid__title-box">
                                        <h3 class="course-grid__title">Filters</h3>
                                        <div class="course-grid__title-shape-1">
                                            <img src="<?php echo e(asset('assets/images/shapes/course-grid-title-shape-1.png')); ?>" alt="">
                                        </div>
                                    </div>
                                    <ul class="list-unstyled course-grid__list-item">
                                        <li>
                                            <label class="custom-checkbox">
                                                <input type="checkbox" name="popular" value="1" <?php echo e(request('popular') ? 'checked' : ''); ?> onchange="this.form.submit()">
                                                <span class="checkmark"></span>
                                                <span class="radio-text">Popular exams only</span>
                                            </label>
                                        </li>
                                    </ul>
                                </div>
                            </form>

                            <div class="course-grid__discount course-grid__single">
                                <div class="course-grid__discount-shape-bg" style="background-image: url(<?php echo e(asset('assets/images/shapes/course-grid-discount-shape-bg.png')); ?>);"></div>
                                <h4 class="course-grid__discount-title">Need Preparation Help?</h4>
                                <p class="course-grid__discount-text">We can help you choose the right exam for your target university.</p>
                                <div class="course-grid__discount-coupon">
                                    <a href="<?php echo e(route('contact')); ?>" class="thm-btn">Contact Us</a>
                                </div>
                            </div>

                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($popularExams->count()): ?>
                                <div class="course-grid__search course-grid__single mt-4">
                                    <div class="course-grid__title-box">
                                        <h3 class="course-grid__title">Popular Exams</h3>
                                        <div class="course-grid__title-shape-1">
                                            <img src="<?php echo e(asset('assets/images/shapes/course-grid-title-shape-1.png')); ?>" alt="">
                                        </div>
                                    </div>
                                    <ul class="list-unstyled course-grid__list-item">
                                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $popularExams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popular): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                                            <li>
                                                <a href="<?php echo e(route('exams.show', $popular->slug)); ?>"><?php echo e($popular->name); ?></a>
                                            </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; ?>
                                    </ul>
                                </div>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>
                </div>

                <div class="col-xl-8 col-lg-7">
                    <div class="course-grid__right">
                        <div class="course-list__right-top">
                            <p class="course-list__right-top-text">
                                Showing <?php echo e($exams->firstItem() ?? 0); ?> - <?php echo e($exams->lastItem() ?? 0); ?> of <?php echo e($exams->total()); ?> exams
                            </p>
                            <div class="course-list__showing-sort">
                                <p>Search results are sorted by order.</p>
                            </div>
                        </div>

                        <div class="course-grid__right-content-box">
                            <div class="row">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $exams; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $exam): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                                    <div class="col-xl-6">
                                        <div class="courses-two__single">
                                            <div class="courses-two__content">
                                                <div class="courses-two__doller-and-review">
                                                    <div class="courses-two__doller">
                                                        <p><?php echo e($exam->code); ?></p>
                                                    </div>
                                                    <div class="courses-two__review">
                                                        <p><?php echo e(ucfirst($exam->type)); ?></p>
                                                    </div>
                                                </div>
                                                <h3 class="courses-two__title">
                                                    <a href="<?php echo e(route('exams.show', $exam->slug)); ?>"><?php echo e($exam->name); ?></a>
                                                </h3>
                                                <p class="courses-two__text"><?php echo e(\Illuminate\Support\Str::limit($exam->short_description ?? '', 120)); ?></p>
                                                <ul class="courses-two__meta list-unstyled">
                                                    <li>
                                                        <div class="icon"><span class="icon-clock"></span></div>
                                                        <p><?php echo e($exam->duration ? $exam->duration.' min' : 'Flexible'); ?></p>
                                                    </li>
                                                    <li>
                                                        <div class="icon"><span class="icon-book"></span></div>
                                                        <p><?php echo e($exam->validity_months ? $exam->validity_months.' months' : 'No expiry'); ?></p>
                                                    </li>
                                                    <li>
                                                        <div class="icon"><span class="icon-comment"></span></div>
                                                        <p><?php echo e($exam->views); ?> views</p>
                                                    </li>
                                                </ul>
                                                <div class="courses-two__btn-box mt-3">
                                                    <a href="<?php echo e(route('exams.show', $exam->slug)); ?>" class="thm-btn-two">
                                                        <span>View Exam</span>
                                                        <i class="icon-angles-right"></i>
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                                    <div class="col-12 text-center py-5">
                                        <h4>No exams found.</h4>
                                    </div>
                                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </div>
                        </div>

                        <div class="blog-list__pagination">
                            <?php echo e($exams->appends(request()->except('page'))->links('vendor.pagination.custom')); ?>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\Sasi\resources\views\exams\index.blade.php ENDPATH**/ ?>