@extends('layouts.app') @section('title', 'Dashboard') @section('content') @include('partials.alerts') @php $currentFilter = $filter ?? 'all'; @endphp
{{ $currentFilter === 'my' ? 'My Dashboard' : 'All Issues Overview' }}
{{ $dueSoonCount }}
Issues due within 48 hours{{ $overdueCount }}
Escalations needed{{ $totalSchools }}
Active institutions{{ $issueTypes->count() }}
Configured SLA profiles| 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. | ||||
Set up issue types to track SLA expectations.
@endforelse