@extends('layouts.app') @section('title', 'Dashboard') @section('content') @include('partials.alerts') @php $currentFilter = $filter ?? 'all'; @endphp

Dashboard

{{ $currentFilter === 'my' ? 'My Dashboard' : 'All Issues Overview' }}

All Dashboard @if(auth()->user()->employee_id) My Dashboard @endif
Total Issues

{{ $totalIssues }}

Active monitoring
Not Started

{{ $issuesByStatus[\App\Models\Issue::STATUS_NOT_STARTED] }}

Awaiting assignment
Assigned

{{ $issuesByStatus[\App\Models\Issue::STATUS_ASSIGNED] }}

Assigned to team
In Progress

{{ $issuesByStatus[\App\Models\Issue::STATUS_IN_PROGRESS] }}

Being handled now
Completed

{{ $issuesByStatus[\App\Models\Issue::STATUS_COMPLETED] }}

Resolved cases
Due Soon

{{ $dueSoonCount }}

Issues due within 48 hours
Overdue

{{ $overdueCount }}

Escalations needed
Schools Served

{{ $totalSchools }}

Active institutions
Issue Types

{{ $issueTypes->count() }}

Configured SLA profiles
Recent Issues
View All
@forelse($recentIssues as $issue) @empty @endforelse
S.No School Type Due Status
{{ $issue->serial_no }} {{ $issue->school?->name }} {{ $issue->issueType?->name }} {{ optional($issue->expected_due_date)->format('d M Y H:i') ?? '—' }} @php $statusBadges = [ \App\Models\Issue::STATUS_NOT_STARTED => ['class' => 'warning', 'label' => 'Not Started'], \App\Models\Issue::STATUS_ASSIGNED => ['class' => 'info', 'label' => 'Assigned'], \App\Models\Issue::STATUS_IN_PROGRESS => ['class' => 'primary', 'label' => 'In Progress'], \App\Models\Issue::STATUS_COMPLETED => ['class' => 'success', 'label' => 'Completed'], ]; $statusInfo = $statusBadges[$issue->status] ?? ['class' => 'secondary', 'label' => ucfirst(str_replace('_', ' ', $issue->status))]; @endphp {{ $statusInfo['label'] }}
No issues recorded yet.
Issue Type Profiles
@forelse($issueTypes as $type)
{{ $type->name }}
SLA: {{ $type->min_resolution_hours }}h - {{ $type->max_resolution_hours }}h
{{ $type->issues_count }} issues
@empty

Set up issue types to track SLA expectations.

@endforelse
@endsection