@extends('layouts.app') @section('title', $exhibition->title) @section('content') @php use Carbon\Carbon; $today = Carbon::today(); $start = $exhibition->event_date ? Carbon::parse($exhibition->event_date) : null; $end = $exhibition->end_date ? Carbon::parse($exhibition->end_date) : null; if ($start && $start->isFuture()) { $statusText = 'Upcoming Exhibition'; $statusClass = 'badge-upcoming'; } elseif ($end && $end->isPast()) { $statusText = 'Exhibition Ended'; $statusClass = 'badge-ended'; } else { $statusText = 'Ongoing Exhibition'; $statusClass = 'badge-ongoing'; } @endphp
{{ $exhibition->title }}

{{ $exhibition->title }}

@if($exhibition->event_date)

📅 {{ Carbon::parse($exhibition->event_date)->format('F d, Y') }} @if($exhibition->end_date) – {{ Carbon::parse($exhibition->end_date)->format('F d, Y') }} @endif

@endif @if($exhibition->venue)

📍 {{ $exhibition->venue }}

@endif
@if($exhibition->description)

{{ $exhibition->description }}

@endif
@if($exhibition->images->count())
@endif {{-- SEO CONTENT (OPTIONAL – FROM ADMIN) --}} @if(!empty($pageContents['exhibitions']->content))
{!! $pageContents['exhibitions']->content !!}
@endif @endsection {{-- ================= STYLES ================= --}} {{-- ================= SCRIPT ================= --}}