@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 = [ ['label' => 'MY PANEL', 'items' => [ ['label' => 'Dashboard', 'icon' => 'home', 'url' => route('tenant.staff.dashboard'), 'active' => false], ['label' => 'My Payslips', 'icon' => 'wallet', 'url' => route('tenant.staff.payslips'), 'active' => false], ['label' => 'My Leave Requests', 'icon' => 'clock', 'url' => route('tenant.staff.leave-requests.index'), 'active' => false], ['label' => 'Notices', 'icon' => 'document', 'url' => route('tenant.staff.notices.index'), 'active' => true], ['label' => 'Chat', 'icon' => 'phone', 'url' => route('tenant.chat.threads.index'), 'active' => false], ]], ]; $tenantTimezone = $tenant->timezone ?? config('app.timezone'); $local = fn ($carbon) => $carbon?->copy()->setTimezone($tenantTimezone); @endphp
@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