@extends('layouts.horizontalLayout') @section('title', $event->event_name ?? 'Event Details') @push('styles') @endpush @section('content')

{{ $event->event_name }}

@if($event->event_cover) {{ $event->event_name }} @else No Cover @endif
{{ $event->is_public ? 'Published' : 'Unpublished' }}
Date: {{ \Carbon\Carbon::parse($event->event_date)->format('l, F d, Y') }}
Location: {{ $event->event_location ?? 'N/A' }}
Created By: {{ $event->user->name ?? 'You' }}
Photos: {{ isset($photos) ? $photos->count() : 0 }}
Details

{{ $event->event_details ?? 'No description available.' }}


Photos & Media
@if(isset($photos) && $photos->isEmpty())
No photos have been uploaded yet. Start by uploading some memories!
@elseif(isset($photos))
@foreach($photos as $photo) @php try { $photoUrl = Storage::disk('s3')->temporaryUrl($photo->s3_path, now()->addMinutes(60)); } catch (\Exception $e) { $photoUrl = Storage::disk('s3')->url($photo->s3_path); } $photoName = basename($photo->s3_path); @endphp @endforeach
@endif
@endsection