@extends('frontend.layouts.app') @section('title', 'About Us') @section('content') @php use Carbon\Carbon; use App\Helpers\Helper; // Sections below render only when they have content (rich-text fields count as empty when they hold only tags/whitespace) $isEn = app()->getLocale() == 'en'; $mission = $isEn ? $aboutUs?->mission_en : $aboutUs?->mission_np ?? $aboutUs?->mission_en; $vision = $isEn ? $aboutUs?->vision_en : $aboutUs?->vision_np ?? $aboutUs?->vision_en; $hasMission = trim(strip_tags($mission ?? '')) !== ''; $hasVision = trim(strip_tags($vision ?? '')) !== ''; $mapUrl = Helper::mapUrl($setting?->map ?? ''); @endphp {{-- Hero Section --}} @include('frontend.partials.hero', [ 'mainHeading' => Helper::contentText('aboutUs.experience_the_differnece'), 'subHeading' => Helper::contentText('aboutUs.hero_subheading'), 'breadcrumb1' => [ 'name' => __('route.home'), 'route' => route('home'), ], 'breadcrumb2' => [ 'name' => __('route.school_profile'), 'route' => route('about-us'), 'class' => 'text-gray-400', ], 'breadcrumb3' => null, 'breadcrumb4' => null, ]) @include('frontend.homepage.partials.about-us', ['displayButton' => false, 'isHome' => false]) @if ($cards->isNotEmpty())

{!! Helper::content('aboutUs.know_more') !!}

{!! Helper::content('aboutUs.our_journey_throuth_the_years') !!}

@endif @if ($hasMission || $hasVision)
@if ($hasMission)

{!! Helper::content('aboutUs.mission') !!}

{!! Helper::stripInlineStyle($mission) !!}

Mission Image
@endif @if ($hasVision)
Vision Image

{!! Helper::content('aboutUs.vision') !!}

{!! Helper::stripInlineStyle($vision) !!}

@endif
@endif @if ($cronologies->isNotEmpty())

{!! Helper::content('aboutUs.chronology') !!}

{!! Helper::content('aboutUs.chronology_heading') !!}

@foreach ($cronologies as $cronology)
{{ app()->getLocale() == 'en' ? $cronology->name_en : $cronology->name_np ?? $cronology->name_en }}
{!! Helper::stripInlineStyle( app()->getLocale() == 'en' ? $cronology->description_en : $cronology->description_np ?? $cronology->description_en, ) !!}
@endforeach
@endif @if ($setting?->youtube_video || $mapUrl)
@if ($setting?->youtube_video)
@endif @if ($mapUrl)
@endif
@endif @endsection @push('scripts') @endpush