@extends('layout.layout') @section('content') @include('components.alert')
Back to Requests
@csrf @method('PUT')
{{ strtoupper(substr($auth->first_name ?? 'S', 0, 1) . substr($auth->last_name ?? '', 0, 1)) }}
Requester Name
{{ $auth->first_name }} {{ $auth->last_name }}
Edit Request
@php $escalationStatusClass = static function (?string $status) { return match ($status) { 'pending' => 'ui-pill--warn', 'assigned', 'in_progress' => 'ui-pill--info', 'resolved', 'closed' => 'ui-pill--success', 'rejected' => 'ui-pill--danger', default => 'ui-pill--neutral', }; }; @endphp
Request Classification

Update the request type, related category, and priority level.

@error('type')
{{ $message }}
@enderror
@error('related_to')
{{ $message }}
@enderror
@error('priority')
{{ $message }}
@enderror
Request Content

Update the request subject, description, and supporting files.

@error('subject')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
{{ $studentRequest->status_note ?: '-' }}
Upload new attachments
You can upload one or more files. Existing attachments will remain visible below.
@error('attachments')
{{ $message }}
@enderror @error('attachments.*')
{{ $message }}
@enderror
@if ($studentRequest->attachments && count($studentRequest->attachments))
Existing Attachments

Files already uploaded for this request.

{{ count($studentRequest->attachments) }} File(s)
@foreach ($studentRequest->attachments as $file)
Attachment
@endforeach
@endif
@if ($studentRequest->escalationRequests->isNotEmpty())
Escalations

Current escalation status and student-visible replies attached to this request.

@foreach ($studentRequest->escalationRequests as $escalation)
{{ $escalation->title ?: 'Escalation #' . $escalation->id }}
{{ $escalation->fromDepartment?->name ?? 'N/A' }} to {{ $escalation->toDepartment?->name ?? 'N/A' }} • {{ $escalation->created_at?->format('d M Y, h:i A') }}
{{ ucfirst(str_replace('_', ' ', $escalation->status)) }}
@if ($escalation->description)
{!! nl2br(e($escalation->description)) !!}
@endif @if ($escalation->notes->isNotEmpty())
@foreach ($escalation->notes as $note)
{{ $note->staff?->full_name ?? trim(($note->staff?->first_name ?? '') . ' ' . ($note->staff?->last_name ?? '')) ?: 'Staff' }} {{ $note->created_at?->format('d M Y, h:i A') }}
{!! nl2br(e($note->content)) !!}
@endforeach
@else
No student-visible escalation notes yet.
@endif
@endforeach
@endif
Cancel
@endsection