@extends('layouts.public') @section('title', config('app.name') . ' - Trusted Study Abroad Partner') @section('meta_description', 'Study abroad counseling, admission help, and visa support. Explore destinations, events, and apply with free consultation.') @push('styles') @vite('resources/css/home.css') @endpush @push('scripts') @vite('resources/js/home.js') @endpush @php $home = $homeContent ?? \App\Models\HomePageContent::defaults(); $toImage = function (?string $image): string { if (! $image) { return ''; } if (str_starts_with($image, 'http://') || str_starts_with($image, 'https://')) { return $image; } return asset('storage/' . ltrim($image, '/')); }; $fallbackImages = $home['destinations']['fallback_images'] ?? []; $heroImage = $toImage($home['hero']['image'] ?? ($fallbackImages[0] ?? '')); $whyImage = $toImage($home['why']['image'] ?? ($fallbackImages[1] ?? $fallbackImages[0] ?? '')); $finalImage = $toImage($home['final']['image'] ?? ($fallbackImages[2] ?? $fallbackImages[0] ?? '')); $eventFallbackImage = $toImage($home['hero']['image'] ?? ($fallbackImages[0] ?? '')); $eventCards = []; foreach (($events ?? collect()) as $event) { $eventCards[] = ['type' => 'db', 'data' => $event]; } foreach (($home['events']['items'] ?? []) as $eventItem) { if (count($eventCards) >= 3) { break; } $eventCards[] = ['type' => 'fallback', 'data' => $eventItem]; } @endphp @section('content')
Global Admissions Support

{{ $home['hero']['title'] ?? '' }} {{ $home['hero']['highlight'] ?? '' }}

{{ $home['hero']['text'] ?? '' }}

{{ $home['hero']['secondary_cta'] ?? 'Explore Countries' }}
@if(!empty($home['why']['stats']))
@foreach(array_slice($home['why']['stats'], 0, 3) as $stat)
{{ $stat['number'] ?? '' }} {{ $stat['label'] ?? '' }}
@endforeach
@endif
Hero image
{{ $home['hero']['sticker_title'] ?? '' }} {{ $home['hero']['sticker_text'] ?? '' }}

{{ $home['why']['title'] ?? '' }} {{ $home['why']['highlight'] ?? '' }}

@foreach(($home['why']['items'] ?? []) as $index => $item)
{{ $index + 1 }}

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

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

@endforeach
Why us image
@foreach(($home['why']['stats'] ?? []) as $stat)
{{ $stat['number'] ?? '' }} {{ $stat['label'] ?? '' }}
@endforeach

{{ $home['accreditation']['title'] ?? '' }}

{{ $home['accreditation']['text'] ?? '' }}

{{ $home['accreditation']['seal_1'] ?? '' }}
{{ $home['accreditation']['seal_2'] ?? '' }}

{{ $home['destinations']['title'] ?? '' }} {{ $home['destinations']['highlight'] ?? '' }}

{{ $home['destinations']['text'] ?? '' }}

@if($countries->count()) @foreach($countries as $country) @php $fallback = $fallbackImages[$loop->index % max(count($fallbackImages), 1)] ?? ''; $image = $country->hero_image ? $country->hero_url : $fallback; @endphp {{ $country->name }} {{ $country->name }} @endforeach @else @foreach($fallbackImages as $index => $image)
Destination {{ $index + 1 }} Destination {{ $index + 1 }}
@endforeach @endif

{{ $home['events']['title'] ?? '' }} {{ $home['events']['highlight'] ?? '' }}

{{ $home['events']['text'] ?? '' }}

@forelse($eventCards as $eventCard) @if(($eventCard['type'] ?? '') === 'db') @php $event = $eventCard['data']; @endphp @else @php $event = $eventCard['data']; @endphp
{{ $event['title'] ?? 'Event' }}

{{ $event['date'] ?? 'Upcoming Event' }}

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

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

@endif @empty
Upcoming Event

Upcoming Event

New event will be announced soon

Check back shortly for seminar dates and application support sessions.

@endforelse
Browse All Events

{{ $home['institutions']['title'] ?? '' }} {{ $home['institutions']['highlight'] ?? '' }}

{{ $home['institutions']['text'] ?? '' }}

@php $institutionCards = isset($partnerInstitutions) && $partnerInstitutions->count() ? $partnerInstitutions : collect($home['institutions']['items'] ?? [])->map(fn ($name) => (object) ['name' => $name, 'logo_url' => null]); @endphp @foreach($institutionCards as $institution)
@if(!empty($institution->logo_url)) {{ $institution->name }} @else {{ strtoupper(substr($institution->name ?? 'PI', 0, 2)) }} @endif
{{ $institution->name }}
@endforeach

{{ $home['promo']['title'] ?? '' }}

{{ $home['promo']['text'] ?? '' }}

{{ $home['videos']['title'] ?? '' }} {{ $home['videos']['highlight'] ?? '' }}

{{ $home['videos']['text'] ?? '' }}

@if(isset($studentReviews) && $studentReviews->count()) @foreach($studentReviews as $review)
{{ $review->title }}
@if($review->video_url) Play @else
Play
@endif

{{ $review->title }}

@endforeach @else @foreach(($home['videos']['items'] ?? []) as $video)
{{ $video['title'] ?? '' }}
Play

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

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

{{ $home['partners']['title'] ?? '' }} {{ $home['partners']['highlight'] ?? '' }}

{{ $home['partners']['text'] ?? '' }}

@php $partnerItems = isset($ourPartners) && $ourPartners->count() ? $ourPartners : collect($home['partners']['items'] ?? [])->map(fn ($n) => (object) ['name' => $n, 'logo_url' => null, 'website_url' => null]); @endphp
{{-- render twice for seamless loop --}} @foreach([1,2] as $_) @foreach($partnerItems as $p) @if(!empty($p->website_url)) @else @endif @endforeach @endforeach

{{ $home['steps']['title'] ?? '' }} {{ $home['steps']['highlight'] ?? '' }}

{{ $home['steps']['text'] ?? '' }}

@foreach(($home['steps']['items'] ?? []) as $step)

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

    @foreach(($step['lines'] ?? []) as $line)
  • {{ $line }}
  • @endforeach
@endforeach

{{ $home['faq']['title'] ?? '' }} {{ $home['faq']['highlight'] ?? '' }}

{{ $home['faq']['text'] ?? '' }}

@if(isset($faqs) && $faqs->count()) @foreach($faqs as $faq)
{{ $faq->question }}

{{ $faq->answer }}

@endforeach @else @foreach(($home['faq']['items'] ?? []) as $faq)
{{ $faq['q'] ?? '' }}

{{ $faq['a'] ?? '' }}

@endforeach @endif

{{ $home['final']['title'] ?? '' }}

{{ $home['final']['text'] ?? '' }}

Final CTA image
@endsection