@extends('frontend.layouts.app') @section('title', 'Notice Title') @section('meta', 'Notice Meta Description') @section('content')
Banner Image
@isset($notices)

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

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

{{-- Tags --}}
@foreach ($notices->tags as $tag) {{ app()->getLocale() == 'np' ? $tag->name_np : $tag->name_en }} @endforeach
@php $images = is_array($notices->images) ? $notices->images : json_decode($notices->images, true); @endphp @if (!empty($images))
@endif

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

@php $files = json_decode($notices->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

{{ __('notices-detail.all_notices') }}

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

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

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