Calendar
Entry Details
{{ $calendar->title }}
@php $badgeMap = [ 'holiday' => 'success', 'event' => 'primary', 'exam' => 'danger', 'meeting' => 'info', 'workshop' => 'warning', 'other' => 'secondary', ]; $badgeClass = $badgeMap[$calendar->category] ?? 'secondary'; @endphp {{ $calendar->category }}
{!! $calendar->details !!}
Date From: {{ \Carbon\Carbon::parse($calendar->date_from)->format('d M Y') }}
Date To: {{ \Carbon\Carbon::parse($calendar->date_to)->format('d M Y') }}
Created: {{ $calendar->created_at->format('d M Y') }}
Updated: {{ $calendar->updated_at->format('d M Y') }}