@extends('layouts.staff') @section('title', 'Staff Workspace') @section('content') @php $greeting = now()->format('H') < 12 ? 'Good morning' : (now()->format('H') < 17 ? 'Good afternoon' : 'Good evening'); @endphp

{{ $greeting }}, {{ $user->first_name ?? $user->name }}.

Here is your day at {{ $school->name }} — {{ now()->format('l, j F Y') }}.

{{ $user->role->label() }}
{{-- Today's classes --}}

Today's Classes

Inbox
@if ($todayClasses->isEmpty())

No classes scheduled for today.

Timetable entries for your subjects will appear here.

@else @endif
{{-- My subjects --}}

My Subjects

@if ($mySubjects->isEmpty())

No subjects assigned to you yet.

@else @endif
{{-- Notices --}}

Notices & Messages

@if ($unreadNotifications > 0) {{ $unreadNotifications }} unread @endif
@if ($notifications->isEmpty() && $messages->isEmpty())

You're all caught up — no notices or messages.

@else @endif
{{-- Quick links --}}

Quick Links

@if ($myProfile)

My Staff Record

Staff No
{{ $myProfile->staff_no }}
Designation
{{ $myProfile->designation?->name ?? '—' }}
Department
{{ $myProfile->department?->name ?? '—' }}
Status
{{ str_replace('_', ' ', ucfirst($myProfile->status)) }}
@if ($myAttendance->isNotEmpty())

My Recent Attendance

@foreach ($myAttendance as $rec) {{ $rec->date->format('d M') }} @endforeach
@endif
@endif
@endsection