@extends('frontend.layouts.app') @section('title', 'News & Events Title') @section('meta', 'News & Events Meta Description') @section('content')
Banner Image
@isset($events)

{{ app()->getLocale() == 'np' ? $events->name_np : $events->name_en }}

{{ \Carbon\Carbon::parse($events->published_date)->format('d M, Y') }}

{{-- Tags --}}
@foreach ($events->tags as $tag) {{ app()->getLocale() == 'np' ? $tag->name_np : $tag->name_en }} @endforeach

{!! app()->getLocale() == 'np' ? $events->description_np : $events->description_en !!}

@php $images = is_array($events->images) ? $events->images : json_decode($events->images, true); @endphp @if (!empty($images))
@endif @php $files = json_decode($events->files, true); @endphp @if (!empty($files))

{{ __('media-and-stories-detail.downloads') }}

@foreach ($files as $file) @php $filename = basename($file); $extension = pathinfo($filename, PATHINFO_EXTENSION); $filepath = public_path($file); $filesize = file_exists($filepath) ? round(filesize($filepath) / 1024 / 1024, 2) . ' MB' : ''; @endphp
{{ $filename }}
@endforeach
@endif
@endisset

{{ __('events-detail.all_events') }}

@foreach ($allEvents as $event)
Notice Image
{{ app()->getLocale() == 'np' ? $event->name_np : $event->name_en }}
Date

{{ \Carbon\Carbon::parse($event->published_date)->format('d M, Y') }}

@endforeach
@endsection @push('scripts') @include('frontend.layouts.partials.documents-format') @endpush