@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; $navGroups = \App\Support\Navigation\ParentNav::groups('notices', $guardian); $focusStudent = \App\Support\Navigation\ParentNav::focusStudent($guardian); $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp @include('tenant.parent-panel.partials.child-switcher')
@forelse($notices as $notice) @php $acknowledged = $acknowledgedIds->contains($notice->id); @endphp

{{ $notice->title }}

By {{ $notice->createdBy->name }} ยท {{ $local($notice->published_at)?->format('M j, Y g:ia') }}

@if($notice->requires_acknowledgement) {{ $acknowledged ? 'Acknowledged' : 'Acknowledgement required' }} @endif

{{ $notice->body }}

@if($notice->requires_acknowledgement && ! $acknowledged)
@csrf
@endif
@empty
No notices yet.
@endforelse