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

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

    <section class="about-one" style="padding: 80px 0 40px;">
        <div class="container">
            <div class="row">
                <div class="col-xl-8">
                    <div class="about-one__right">
                        <div class="section-title text-left sec-title-animation animation-style2">
                            <div class="section-title__tagline-box">
                                <div class="section-title__tagline-shape"></div>
                                <span class="section-title__tagline"><?php echo e(strtoupper($exam->code)); ?></span>
                            </div>
                            <h2 class="section-title__title title-animation"><?php echo e($exam->name); ?></h2>
                        </div>

                        <p class="about-one__text"><?php echo e($exam->short_description ?? 'Exam overview and preparation details.'); ?></p>

                        <div class="courses-two__single mb-4">
                            <div class="courses-two__content">
                                <div class="courses-two__doller-and-review">
                                    <div class="courses-two__doller">
                                        <p><?php echo e($exam->fee ? '$'.number_format((float) $exam->fee) : 'No fee listed'); ?></p>
                                    </div>
                                    <div class="courses-two__review">
                                        <p><?php echo e(ucfirst($exam->type)); ?></p>
                                    </div>
                                </div>
                                <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 valid' : '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>
                        </div>

                        <div class="blog-details__text-content">
                            <h3 class="blog-details__title-1">Full Description</h3>
                            <p><?php echo nl2br(e($exam->full_description ?? $exam->short_description ?? '')); ?></p>
                        </div>

                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($exam->sections): ?>
                            <div class="course-grid__categories course-grid__single mt-4">
                                <div class="course-grid__title-box">
                                    <h3 class="course-grid__title">Sections</h3>
                                    <div class="course-grid__title-shape-1">
                                        <img src="<?php echo e(asset('images/shapes/course-grid-title-shape-1.png')); ?>" alt="">
                                    </div>
                                </div>
                                <div class="d-flex flex-wrap gap-2">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $exam->sections; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $section): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
                                        <span class="badge bg-light text-dark border px-3 py-2"><?php echo e($section); ?></span>
                                    <?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>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                        <div class="d-flex flex-wrap gap-3 mt-4">
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($exam->website_url): ?>
                                <a href="<?php echo e($exam->website_url); ?>" target="_blank" rel="noopener" class="thm-btn">
                                    <span class="icon-angles-right"></span> Official Website
                                </a>
                            <?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($exam->registration_url): ?>
                                <a href="<?php echo e($exam->registration_url); ?>" target="_blank" rel="noopener" class="thm-btn-two">
                                    <span>Register</span>
                                    <i class="icon-angles-right"></i>
                                </a>
                            <?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($exam->sample_paper_url): ?>
                                <a href="<?php echo e($exam->sample_paper_url); ?>" target="_blank" rel="noopener" class="thm-btn-two">
                                    <span>Sample Paper</span>
                                    <i class="icon-angles-right"></i>
                                </a>
                            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>
                </div>

                <div class="col-xl-4">
                    <div class="course-grid__left">
                        <div class="course-grid__sidebar">
                            <div class="course-grid__search course-grid__single">
                                <div class="course-grid__title-box">
                                    <h3 class="course-grid__title">Key Facts</h3>
                                    <div class="course-grid__title-shape-1">
                                        <img src="<?php echo e(asset('images/shapes/course-grid-title-shape-1.png')); ?>" alt="">
                                    </div>
                                </div>
                                <ul class="list-unstyled course-grid__list-item">
                                    <li>Type: <?php echo e(ucfirst($exam->type)); ?></li>
                                    <li>Code: <?php echo e($exam->code); ?></li>
                                    <li>Passing Score: <?php echo e($exam->passing_score ?? 'N/A'); ?></li>
                                    <li>Total Score: <?php echo e($exam->total_score ?? 'N/A'); ?></li>
                                    <li>Popular: <?php echo e($exam->is_popular ? 'Yes' : 'No'); ?></li>
                                </ul>
                            </div>

                            <div class="course-grid__discount course-grid__single">
                                <div class="course-grid__discount-shape-bg" style="background-image: url(<?php echo e(asset('images/shapes/course-grid-discount-shape-bg.png')); ?>);"></div>
                                <h4 class="course-grid__discount-title">Need Prep Help?</h4>
                                <p class="course-grid__discount-text">We can guide you toward universities and scholarships that accept this exam.</p>
                                <div class="course-grid__discount-coupon">
                                    <a href="<?php echo e(route('contact')); ?>" class="thm-btn">Contact Us</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($related->count()): ?>
                <section class="courses-one mt-5" style="padding-top: 0;">
                    <div class="section-title text-center sec-title-animation animation-style1">
                        <div class="section-title__tagline-box">
                            <div class="section-title__tagline-shape"></div>
                            <span class="section-title__tagline">Related Exams</span>
                        </div>
                        <h2 class="section-title__title title-animation">Other exams you may need</h2>
                    </div>

                    <div class="row">
                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $related; $__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; ?>
                            <div class="col-xl-4 col-md-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($item->code); ?></p>
                                            </div>
                                            <div class="courses-two__review">
                                                <p><?php echo e(ucfirst($item->type)); ?></p>
                                            </div>
                                        </div>
                                        <h3 class="courses-two__title">
                                            <a href="<?php echo e(route('exams.show', $item->slug)); ?>"><?php echo e($item->name); ?></a>
                                        </h3>
                                        <p class="courses-two__text"><?php echo e(\Illuminate\Support\Str::limit($item->short_description ?? '', 110)); ?></p>
                                    </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(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                    </div>
                </section>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/insightg/public_html/resources/views/exams/show.blade.php ENDPATH**/ ?>