@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('seo')
@php
$countryFaqEntities = collect($sections['faq']['items'] ?? [])->map(function ($faq) {
return [
'@type' => 'Question',
'name' => $faq['q'] ?? '',
'acceptedAnswer' => [
'@type' => 'Answer',
'text' => strip_tags((string) ($faq['a'] ?? '')),
],
];
})->filter(fn ($item) => !empty($item['name']) && !empty($item['acceptedAnswer']['text']))->values()->all();
$countrySchema = [
'@context' => 'https://schema.org',
'@type' => 'WebPage',
'name' => $country->seo_title ?: ('Study in ' . $country->name),
'description' => $country->seo_description ?: $country->short_description,
'url' => url()->current(),
'image' => $country->hero_image ? $country->hero_url : null,
];
$countryBreadcrumbSchema = [
'@context' => 'https://schema.org',
'@type' => 'BreadcrumbList',
'itemListElement' => [
['@type' => 'ListItem', 'position' => 1, 'name' => 'Home', 'item' => url('/')],
['@type' => 'ListItem', 'position' => 2, 'name' => 'Countries', 'item' => route('countries.index')],
['@type' => 'ListItem', 'position' => 3, 'name' => $country->name, 'item' => url()->current()],
],
];
@endphp
@if(!empty($countryFaqEntities))
@endif
@endpush
@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)
@endif
Home
Countries
{{ $country->name }}
@if($country->flag_image)
@endif
Study in{{ $country->name }}
@if($country->short_description)
{{ $country->short_description }}
@endif
{{-- 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 --}}
{{ $sections['quick_facts']['title'] ?? 'Quick Facts' }}
@foreach(($sections['quick_facts']['items'] ?? []) as $fact)
{{ $fact['label'] ?? '' }}
{{ $fact['value'] ?? '' }}
@endforeach
{{-- ══════════════════════════════════════════════════════
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.
@foreach($sections['requirements']['items'] as $req)
{{ $req }}
@endforeach
@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) }}
@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)
{{ $item['icon'] ?? ($loop->index + 1) }}
{{ $item['title'] ?? '' }}
@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']))
@endif
@endforeach
@foreach(($countrySections['entry']['items'] ?? []) as $item)
@endforeach
@endif
{{-- ══════════════════════════════════════════════════════
SUBJECTS (countrySections)
══════════════════════════════════════════════════════ --}}
@if(!empty($countrySections['subjects']['items']))
Disciplines
{{ $countrySections['subjects']['title'] ?? '' }}
@foreach(($countrySections['subjects']['items'] ?? []) as $subject)
@if(!empty($subject['image']))
@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']))
@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))
@else
{{ strtoupper(substr($inst->name ?? 'PI', 0, 2)) }}
@endif
{{ $inst->name }}
@endforeach
@endif
{{-- ══════════════════════════════════════════════════════
FAQ
══════════════════════════════════════════════════════ --}}
@if(!empty($sections['faq']['items']))
@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)
@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'] ?? '' }}
{{ $sections['cta']['button'] ?? 'Book Free Consultation' }}
@include('partials.visa-success-slider', ['visaStories' => $visaStories ?? collect()])
Apply For {{ $country->name }}
@endsection