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

<?php $__env->startSection('content'); ?>
    <?php echo $__env->make('layouts.partials.page_header', [
        'title' => $country->name,
        'breadcrumbs' => [
            ['label' => 'Home', 'url' => route('home')],
            ['label' => 'Countries', 'url' => route('countries.index')],
            ['label' => $country->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($country->code); ?></span>
                            </div>
                            <h2 class="section-title__title title-animation"><?php echo e($country->name); ?></h2>
                        </div>

                        <p class="about-one__text"><?php echo e($country->description ?? 'Explore study opportunities, universities, scholarships, and admission guidance for this destination.'); ?></p>

                        <div class="row g-4 mb-4">
                            <div class="col-md-4">
                                <div class="courses-two__single">
                                    <div class="courses-two__content text-center">
                                        <div class="courses-two__doller"><p><?php echo e($country->universities_count ?? 0); ?></p></div>
                                        <p class="courses-two__text">Universities</p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="courses-two__single">
                                    <div class="courses-two__content text-center">
                                        <div class="courses-two__doller"><p><?php echo e($country->scholarships_count ?? 0); ?></p></div>
                                        <p class="courses-two__text">Scholarships</p>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="courses-two__single">
                                    <div class="courses-two__content text-center">
                                        <div class="courses-two__doller"><p><?php echo e($country->admission_guides_count ?? 0); ?></p></div>
                                        <p class="courses-two__text">Guides</p>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($country->is_popular): ?>
                            <div class="course-grid__discount course-grid__single mb-4">
                                <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">Popular Destination</h4>
                                <p class="course-grid__discount-text">This country is one of the most searched destinations in our network.</p>
                                <div class="course-grid__discount-coupon">
                                    <a href="<?php echo e(route('universities.index', ['country' => $country->id])); ?>" class="thm-btn">Browse Universities</a>
                                </div>
                            </div>
                        <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                    </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">Country Profile</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="text-center mb-3">
                                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($country->flag_path): ?>
                                        <img src="<?php echo e(asset('storage/'.$country->flag_path)); ?>" alt="<?php echo e($country->name); ?>" style="max-height: 84px;">
                                    <?php else: ?>
                                        <div class="mx-auto d-flex align-items-center justify-content-center rounded-circle bg-light" style="width: 84px; height: 84px;"><?php echo e(strtoupper(substr($country->name, 0, 2))); ?></div>
                                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                                </div>
                                <ul class="list-unstyled course-grid__list-item">
                                    <li>Code: <?php echo e($country->code); ?></li>
                                    <li>Status: <?php echo e($country->is_active ? 'Active' : 'Inactive'); ?></li>
                                    <li>Popular: <?php echo e($country->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('assets/images/shapes/course-grid-discount-shape-bg.png')); ?>);"></div>
                                <h4 class="course-grid__discount-title">Need Help Choosing?</h4>
                                <p class="course-grid__discount-text">We can recommend universities and scholarships in this destination.</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($country->universities->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">Universities</span>
                        </div>
                        <h2 class="section-title__title title-animation">Top institutions in <?php echo e($country->name); ?></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 = $country->universities; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $university): $__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($university->ranking ?? 'N/A'); ?></p>
                                            </div>
                                            <div class="courses-two__review">
                                                <p><?php echo e($university->programs_count ?? 0); ?> Programs</p>
                                            </div>
                                        </div>
                                        <h3 class="courses-two__title">
                                            <a href="<?php echo e(route('universities.show', $university->slug ?? $university->id)); ?>"><?php echo e($university->name); ?></a>
                                        </h3>
                                        <p class="courses-two__text"><?php echo e(\Illuminate\Support\Str::limit($university->description ?? 'University profile and admission options.', 120)); ?></p>
                                        <div class="courses-two__btn-box mt-3">
                                            <a href="<?php echo e(route('universities.show', $university->slug ?? $university->id)); ?>" class="thm-btn-two">
                                                <span>View University</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(); ?><?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; ?>

            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($country->scholarships->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">Scholarships</span>
                        </div>
                        <h2 class="section-title__title title-animation">Funding opportunities in <?php echo e($country->name); ?></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 = $country->scholarships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $scholarship): $__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($scholarship->is_fully_funded ? 'Fully Funded' : '$'.number_format((float) $scholarship->amount)); ?></p>
                                            </div>
                                            <div class="courses-two__review">
                                                <p><?php echo e(ucfirst($scholarship->program_level)); ?></p>
                                            </div>
                                        </div>
                                        <h3 class="courses-two__title">
                                            <a href="<?php echo e(route('scholarships.show', $scholarship->slug)); ?>"><?php echo e($scholarship->title); ?></a>
                                        </h3>
                                        <p class="courses-two__text"><?php echo e(\Illuminate\Support\Str::limit($scholarship->meta_description ?? $scholarship->description, 120)); ?></p>
                                        <div class="courses-two__btn-box mt-3">
                                            <a href="<?php echo e(route('scholarships.show', $scholarship->slug)); ?>" class="thm-btn-two">
                                                <span>View Scholarship</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(); ?><?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 D:\Sasi\resources\views/countries/show.blade.php ENDPATH**/ ?>