@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'] }}
{{ $issue->issueType?->name }}
Issue Description
{{ $issue->description }}
@if($issue->assignment_history && count($issue->assignment_history) > 0)
Assignment History
@foreach(array_reverse($issue->assignment_history) as $record)
{{ \Carbon\Carbon::parse($record['assigned_at'])->format('d M Y, H:i') }}
Assigned by: {{ $record['assigned_by'] }}
From: {{ $record['old_assignee_name'] }}
@if($record['old_department_name'] !== 'Unassigned')
({{ $record['old_department_name'] }})
@endif
To: {{ $record['new_assignee_name'] }}
({{ $record['new_department_name'] }})
@if(!empty($record['remarks']))
Remarks:
{{ $record['remarks'] }}
@endif
@endforeach
@endif
@if($issue->internal_notes)
Internal Notes:
{{ $issue->internal_notes }}
@endif
- Approached By
- {{ $issue->approached_by ?? '—' }}
- School
- {{ $issue->school?->name }}
- Department
- {{ $issue->department?->name }}
- Issue Responder
- {{ $issue->responder?->name ?? 'Pending assignment' }}
- Assigned To
- {{ $issue->assignee?->name ?? 'Pending assignment' }}