@extends('layouts.app') @section('content') @php $hero = isset($heroSections) ? $heroSections->first() : null; @endphp
Hero Background
Plane

{!! optional($hero)->title !!}

{!! nl2br(optional($hero)->tag ?? '') !!}

@if ($hero && $hero->button_1_name) {{ $hero->button_1_name }} @endif @if ($hero && $hero->button_2_name) {{ $hero->button_2_name }} @endif
@if ($hero && $hero->destination_ids && is_array($hero->destination_ids)) @php $selectedDestinations = \App\Models\StudyDestination::whereIn( 'id', $hero->destination_ids, )->get(); @endphp @foreach ($selectedDestinations as $dest)
{{ $dest->title }} {{ $dest->short_title ?? str_replace('Study in ', '', $dest->title) }}
@endforeach @endif
@if ($hero && is_array($hero->stats) && count($hero->stats) > 0) @foreach ($hero->stats as $stat)
{{ $stat['title'] }}
{{ $stat['description'] }}
@endforeach @endif
@if ($aboutUs && $aboutUs->subtitle) {{ $aboutUs->subtitle }} @else About Us @endif

{{ $aboutUs->title ?? 'Study Abroad Consultancy in Nepal for Global Education | English Council' }}

{!! $aboutUs->description ?? 'Welcome to English Council.' !!}
About
๐Ÿ† 1000+ Successful
Placements
๐ŸŽ“ Expert
Trainers

Study Destinations

Services We Provide

@if (isset($services) && $services->count() > 0) @foreach ($services as $index => $s)
@if ($s->image) @else
@endif
@if ($s->icon && str_starts_with(trim($s->icon), ' {!! $s->icon !!}
@elseif($s->icon) @else @endif

{{ $s->title }}

{!! strip_tags($s->description) !!}

@endforeach @endif
{{ optional($whyChooseUsSetting)->title }}

{!! nl2br(optional($whyChooseUsSetting)->description ?? '') !!}

@if ($whyChooseUs->count() > 0) @php $limitedWhyChooseUs = $whyChooseUs->take(6); $hasCenterImage = $whyChooseUsSetting && $whyChooseUsSetting->center_image; $itemsCount = $limitedWhyChooseUs->count(); if ($itemsCount >= 2) { $take = ceil($itemsCount / 2); $firstHalf = $limitedWhyChooseUs->take($take); $secondHalf = $limitedWhyChooseUs->slice($take); } else { $firstHalf = $limitedWhyChooseUs; $secondHalf = collect(); } @endphp
{{-- Left Side Items --}}
@foreach ($firstHalf as $feature)
@if ($feature->icon && str_starts_with(trim($feature->icon), ' {!! $feature->icon !!}
@elseif($feature->icon) @else @endif

{{ $feature->title }}

{!! $feature->description !!}
@endforeach
{{-- Center Image --}}
@if ($hasCenterImage) Why Choose Us @else
@endif
{{-- Right Side Items --}}
@php // If we don't have enough items for two halves, use fallback for the second half if no center image $rightItems = $secondHalf->count() > 0 ? $secondHalf : collect(); @endphp @foreach ($rightItems as $feature)
@if ($feature->icon && str_starts_with(trim($feature->icon), ' {!! $feature->icon !!}
@elseif($feature->icon) @else @endif

{{ $feature->title }}

{!! $feature->description !!}
@endforeach
@endif
Testimonials

Our Satisfied Clients

@push('scripts') @endpush @endsection