@extends('layouts.admin') @section('title','Grievance Detail') @section('breadcrumb')@endsection @section('admin-content')
{{ $grievance->subject }}
{{ ucfirst(str_replace('_',' ',$grievance->status)) }}

{{ $grievance->description }}

Submitted by {{ optional($grievance->student)->name }} on {{ $grievance->created_at->format('d M Y h:i A') }}
@foreach($grievance->responses as $r)

{{ $r->response }}

By {{ optional($r->respondedBy)->name }} — {{ $r->created_at->format('d M Y h:i A') }}
@endforeach
Add Response
@csrf
Student Info
@php $s = $grievance->student; @endphp
Name
{{ optional($s)->name }}
Enrollment
{{ optional($s)->enrollment_no }}
Course
{{ optional(optional($s)->course)->name }}
Phone
{{ optional($s)->phone ?? '-' }}
@endsection