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

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

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

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

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

@php $images = is_array($activities->images) ? $activities->images : json_decode($activities->images, true); @endphp @if (!empty($images))
@endif @php $files = json_decode($activities->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

{{ __('activities-detail.all_news') }}

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

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

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