@extends('frontend.layouts.app') @section('title', $menu->name_en) @php use Carbon\Carbon; use App\Helpers\Helper; use Anuzpandey\LaravelNepaliDate\LaravelNepaliDate; @endphp @section('content') {{-- Hero Section --}} @include('frontend.partials.hero', [ 'mainHeading' => app()->getLocale() == 'en' ? 'Experience the Difference' : 'फरकपनको अनुभव गर्नुहोस्', 'subHeading' => app()->getLocale() == 'en' ? 'Join us and start your journey today.' : 'आजै हाम्रो यात्रा सुरु गर्नुहोस्।', 'breadcrumb1' => [ 'name' => __('route.home'), 'route' => route('home'), ], 'breadcrumb2' => [ 'name' => __('route.school_profile'), 'route' => route('about-us'), 'class' => 'text-gray-400', ], 'breadcrumb3' => null, 'breadcrumb4' => null, ]) {{-- Main Content --}}
{{-- Left Section (80%) --}}

{{ app()->getLocale() == 'en' ? $menu->page->title_en ?? '' : $menu->page->title_np ?? ($menu->page->title_en ?? '') }}

{!! Helper::stripInlineStyle( app()->getLocale() == 'en' ? $menu->page->short_description_en ?? '' : $menu->page->short_description_np ?? ($menu->page->short_description_en ?? ''), ) !!}

GBBS
{!! Helper::stripInlineStyle( app()->getLocale() == 'en' ? $menu->page->description_en ?? '' : $menu->page->description_np ?? ($menu->page->description_en ?? ''), ) !!}
{{-- Right Section (20%) --}}
{{-- About Section --}} @include('frontend.partials.about-section', ['socials' => $socials]) {{-- Explore Button --}} {{ __('pages.explore_news') }} {{-- News List --}}

{{ __('pages.all_news') }}

@foreach ($publication as $news)
{{ app()->getLocale() == 'en' ? $news->name_en ?? '' : $news->name_np ?? ($news->name_en ?? '') }}
{{ app()->getLocale() == 'en' ? $news->name_en ?? '' : $news->name_np ?? ($news->name_en ?? '') }}
{!! Helper::stripInlineStyle( app()->getLocale() == 'en' ? $news->short_description_en ?? '' : $news->short_description_np ?? ($news->short_description_en ?? ''), ) !!}
  {{ app()->getLocale() == 'en' ? $news->published_date : LaravelNepaliDate::from($news->published_date)->toNepaliDate(format: 'j F Y', locale: 'np') }}
@endforeach
@endsection