@extends('staff.layouts.app') @section('title', 'Dashboard') @section('content')
{{ $staff->staff_name ?? 'Staff' }}

Welcome,

{{ Session::get('user_name') }}

{{ $staff->designation ?? 'Staff Member' }}

Online

Dept

{{ $staff->department ?? '—' }}

Today's Overview

{{-- Standard 4-Column Overview Grid --}}

{{ $assignedClassesCount ?? 0 }}

Classes

{{ $pendingHomework ?? 0 }}

Homework

@if(($pendingHomework ?? 0) > 0) @endif

{{ $pendingAppsCount ?? 0 }}

Applications

@if(($pendingAppsCount ?? 0) > 0) @endif

{{ $totalUnreadChats ?? 0 }}

Chats

@if(($totalUnreadChats ?? 0) > 0) @endif

Quick Actions

{{-- 1. Homework Broadcast --}}

Homework

Broadcast

@if(($pendingHomework ?? 0) > 0)
{{ $pendingHomework > 9 ? '9+' : $pendingHomework }}
@endif
{{-- 2. Notices --}}

Notices

Announce

@if(isset($unreadNoticeCount) && $unreadNoticeCount > 0)
{{ $unreadNoticeCount > 9 ? '9+' : $unreadNoticeCount }}
@endif
{{-- 3. My Chats --}}

My Chats

Messages

@if(($totalUnreadChats ?? 0) > 0)
{{ $totalUnreadChats > 9 ? '9+' : $totalUnreadChats }}
@endif
{{-- 4. Applications with Notification Count --}}

Applications

Forms & Requests

@if(isset($pendingAppsCount) && $pendingAppsCount > 0)
{{ $pendingAppsCount > 9 ? '9+' : $pendingAppsCount }}
@endif
{{-- 5. My Students --}}

My Students

Class List

{{-- 5b. Online Classes --}}

Online Class

Zoom / Meet

{{-- 6. My Profile --}}

My Profile

View

@if(isset($notices) && $notices->isNotEmpty())

Latest Notices

View All
@foreach($notices as $notice)

{{ $notice->title }}

@if(empty($notice->is_read)) New @endif @if($notice->is_pinned) Pinned @endif

{{ $notice->content }}

{{ \Carbon\Carbon::parse($notice->published_at)->format('d M, Y') }} {{ $notice->category }}
@endforeach

@endif {{-- URGENT POPUP NOTICE --}} @if(isset($popupNotice) && $popupNotice) @endif @endsection