@extends('layouts.app') @section('content') @php $hero = isset($heroSections) ? $heroSections->first() : null; @endphp {!! 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->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.' !!} ๐ 1000+ Successful Placements ๐ Expert Trainers Study Destinations @if ($studyDestinations->count() > 0) @foreach ($studyDestinations as $dest) @if (!empty($dest->flag_image)) @endif {{ Str::startsWith($dest->title, 'Study in') ? $dest->title : 'Study in ' . $dest->title }} {!! $dest->description !!} View More @endforeach @endif 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) @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 @if ($testimonials->count() > 0) @foreach ($testimonials as $testimonial) @if ($testimonial->image) @else โ @endif {!! $testimonial->content !!} โ {{ $testimonial->client_name }}{{ $testimonial->position ? ', ' . $testimonial->position : '' }} @endforeach @endif @push('scripts') @endpush @endsection
{!! nl2br(optional($hero)->tag ?? '') !!}
{!! $dest->description !!}
{!! strip_tags($s->description) !!}
{!! $testimonial->content !!}