@extends('layouts.public') @section('title', $country->seo_title ?: ('Study in ' . $country->name . ' - ' . config('app.name'))) @section('meta_description', $country->seo_description ?: $country->short_description) @if($country->hero_image) @section('og_image', $country->hero_url) @endif @push('styles') @vite('resources/css/country-show.css') @endpush @push('scripts') @vite('resources/js/country-show.js') @endpush @section('content') {{-- ══════════════════════════════════════════════════════ HERO ══════════════════════════════════════════════════════ --}}
@if($country->hero_image) {{ $country->name }} @endif
@if($country->flag_image) {{ $country->name }} flag @endif

Study in
{{ $country->name }}

@if($country->short_description)

{{ $country->short_description }}

@endif
Explore Guide ↓
{{-- Floating stats strip --}} @if(!empty($sections['quick_facts']['items']))
@foreach(array_slice($sections['quick_facts']['items'] ?? [], 0, 4) as $fact)
{{ $fact['value'] ?? '' }} {{ $fact['label'] ?? '' }}
@endforeach
@endif
{{-- ══════════════════════════════════════════════════════ HIGHLIGHTS + QUICK FACTS ══════════════════════════════════════════════════════ --}}
{{-- Left: Highlights --}}
@if($sections['highlights']['title'] ?? '')

Why {{ $country->name }}?

{{ $sections['highlights']['title'] }}

@if($sections['highlights']['subtitle'] ?? '')

{{ $sections['highlights']['subtitle'] }}

@endif @endif
@foreach(($sections['highlights']['items'] ?? []) as $item)

{{ $item['title'] ?? '' }}

{{ $item['text'] ?? '' }}

@endforeach
{{-- Right: Quick Facts sidebar --}}
{{-- ══════════════════════════════════════════════════════ RICH CONTENT (moved to top as requested) ══════════════════════════════════════════════════════ --}} @if($country->content)
Country Guide
{!! $country->content !!}
@endif {{-- ══════════════════════════════════════════════════════ STUDY AREAS ══════════════════════════════════════════════════════ --}} @if(!empty($sections['courses']['items']))

What You Can Study

{{ $sections['courses']['title'] ?? 'Popular Study Areas' }}

@foreach($sections['courses']['items'] as $course) {{ $course }} @endforeach
@endif {{-- ══════════════════════════════════════════════════════ COST OF STUDY ══════════════════════════════════════════════════════ --}} @if(!empty($sections['costs']['tuition']) || !empty($sections['costs']['living']))

Budget Planning

{{ $sections['costs']['title'] ?? 'Cost of Studying' }}

@php $costItems = [ ['icon' => '🎓', 'label' => 'Tuition Fee', 'value' => $sections['costs']['tuition'] ?? ''], ['icon' => '🏠', 'label' => 'Living Cost', 'value' => $sections['costs']['living'] ?? ''], ['icon' => '📄', 'label' => 'Visa / Insurance', 'value' => $sections['costs']['visa'] ?? ''], ['icon' => '🏅', 'label' => 'Scholarship', 'value' => $sections['costs']['scholarship'] ?? ''], ]; @endphp @foreach($costItems as $ci) @if($ci['value'])
{{ $ci['icon'] }}

{{ $ci['label'] }}

{{ $ci['value'] }}

@endif @endforeach
@endif {{-- ══════════════════════════════════════════════════════ ENTRY REQUIREMENTS (simple list) ══════════════════════════════════════════════════════ --}} @if(!empty($sections['requirements']['items']))

Before You Apply

{{ $sections['requirements']['title'] ?? 'Entry Requirements' }}

Make sure you have these documents and qualifications ready before submitting your application.

@endif {{-- ══════════════════════════════════════════════════════ APPLICATION ROADMAP ══════════════════════════════════════════════════════ --}} @if(!empty($sections['timeline']['items']))

Step by Step

{{ $sections['timeline']['title'] ?? 'Application Roadmap' }}

@foreach($sections['timeline']['items'] as $i => $step)
{{ str_pad($i+1, 2, '0', STR_PAD_LEFT) }}

{{ $step }}

@if(!$loop->last)
@endif
@endforeach
@endif {{-- ══════════════════════════════════════════════════════ MAJOR ADMISSION INTAKES (countrySections) ══════════════════════════════════════════════════════ --}} @if(!empty($countrySections['intakes']['items']))

Admission Calendar

{{ $countrySections['intakes']['title'] ?? 'Major Admission Intakes' }}

@foreach(($countrySections['intakes']['items'] ?? []) as $item)
{{ $item['title'] ?? '' }}

{{ $item['text'] ?? '' }}

@endforeach
@endif {{-- ══════════════════════════════════════════════════════ ENTRY REQUIREMENTS TABS (countrySections) ══════════════════════════════════════════════════════ --}} @if(!empty($countrySections['entry']['items']))

Detailed Requirements

{{ $countrySections['entry']['title'] ?? 'Entry Requirements' }}

{{-- Left: vertical sidebar tabs --}}
@foreach(($countrySections['entry']['items'] ?? []) as $item) @endforeach
{{-- Right: content area --}}
@foreach(($countrySections['entry']['items'] ?? []) as $item)
{{ str_pad($loop->index + 1, 2, '0', STR_PAD_LEFT) }}

{{ $item['title'] ?? '' }}

{{ $item['text'] ?? '' }}

@if(!empty($item['image']))
{{ $item['title'] ?? '' }}
@endif
@endforeach
@endif {{-- ══════════════════════════════════════════════════════ SUBJECTS (countrySections) ══════════════════════════════════════════════════════ --}} @if(!empty($countrySections['subjects']['items']))

Disciplines

{{ $countrySections['subjects']['title'] ?? '' }}

@foreach(($countrySections['subjects']['items'] ?? []) as $subject)
@if(!empty($subject['image'])) {{ $subject['title'] ?? '' }} @endif {{ $subject['title'] ?? '' }}
@endforeach
@endif {{-- ══════════════════════════════════════════════════════ PROCESS (countrySections) ══════════════════════════════════════════════════════ --}} @if(!empty($countrySections['process']['items']))

Our Process

{{ $countrySections['process']['title'] ?? '' }}

@if($countrySections['process']['subtitle'] ?? '')

{{ $countrySections['process']['subtitle'] }}

@endif
@foreach(($countrySections['process']['items'] ?? []) as $item)
@if(!empty($item['image'])) {{ $item['title'] ?? '' }} @endif

{{ $item['title'] ?? '' }}

{{ $item['text'] ?? '' }}

@endforeach
@endif {{-- ══════════════════════════════════════════════════════ PARTNER INSTITUTIONS ══════════════════════════════════════════════════════ --}} @if(!empty($partnerInstitutions) && $partnerInstitutions->count())

Trusted Partners

Our Partner Institutions

@foreach($partnerInstitutions as $inst)
@if(!empty($inst->logo_url)) {{ $inst->name }} @else {{ strtoupper(substr($inst->name ?? 'PI', 0, 2)) }} @endif

{{ $inst->name }}

@endforeach
@endif {{-- ══════════════════════════════════════════════════════ FAQ ══════════════════════════════════════════════════════ --}} @if(!empty($sections['faq']['items']))

Got Questions?

{{ $sections['faq']['title'] ?? 'Common Questions' }}

@foreach(($sections['faq']['items'] ?? []) as $i => $faq)
{{ $faq['q'] ?? '' }}
{{ $faq['a'] ?? '' }}
@endforeach
@endif {{-- ══════════════════════════════════════════════════════ STUDENT REVIEWS ══════════════════════════════════════════════════════ --}} @if(($studentReviews ?? collect())->count())

Real Students

Hear From Our Students

@foreach($studentReviews as $review)
@if($review->thumbnail_path)
{{ $review->title }} @if($review->video_url) @endif
@endif
{{ $review->title }} @if($review->video_url) Watch video → @endif
@endforeach
@endif {{-- ══════════════════════════════════════════════════════ FINAL CTA ══════════════════════════════════════════════════════ --}}
@if($country->hero_image) @endif

{{ $sections['cta']['title'] ?? 'Ready to Study in '.$country->name.'?' }}

{{ $sections['cta']['text'] ?? '' }}

@include('partials.visa-success-slider', ['visaStories' => $visaStories ?? collect()])
@endsection