<?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">
                            <?php echo $__env->make('exams.partials.sidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        </div>
                    </div>
                </div>

                <div class="col-xl-8 col-lg-7">
                    <div class="course-grid__right">
                        <?php echo $__env->make('exams.partials.topbar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

                        <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**/ ?>