@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->description }}
{{ $exhibition->title }}
@if($exhibition->description)