@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $typeByName = $types->keyBy('name'); @endphp
Manage Types @if($session) @if($countryLabel)
@csrf
@endif @endif
@if($session && $types->isEmpty())
No calendar event types yet. Add one before creating events.
@endif @if($session && !$countryLabel)
Set a country on the Branding page to auto-suggest public holidays here.
@endif @if($session && count($suggestedHolidays) > 0)

{{ count($suggestedHolidays) }} {{ $countryLabel }} public {{ \Illuminate\Support\Str::plural('holiday', count($suggestedHolidays)) }} not yet on this calendar:

@foreach($suggestedHolidays as $holiday) {{ $holiday['title'] }} — {{ \Illuminate\Support\Carbon::parse($holiday['date'])->format('M j, Y') }} @endforeach

Click "Sync {{ $countryLabel }} Holidays" above to add these. Fixed-date holidays only — Islamic/lunar holidays (Eid, etc.) shift each year and must be added manually via "Add Event."

@endif
@if($session)
@endif @if(!$session)
No academic sessions yet. Create one first under Academic Sessions.
@else
@foreach($types as $type) @continue(($summary['by_type'][$type->name] ?? 0) === 0) @endforeach
@forelse($events as $event) @empty @endforelse
SL Title Type Applies To Start End Days
{{ $loop->iteration }} {{ $event->title }} {{ $event->type }} {{ $appliesToOptions[$event->applies_to] ?? $event->applies_to }} {{ $event->start_date->format('M j, Y') }} {{ $event->end_date->format('M j, Y') }} {{ $event->dayCount() }}
No calendar events for this session yet.
@csrf
@endif