@extends('layouts.dashboard') @section('title', $ticket->ticket_no) @section('page_title', __('Support Tickets')) @section('content')
{{ __('All tickets') }}
@if($ticket->status !== 'closed')
@csrf
@else
@csrf
@endif
{{ $ticket->subject }}
{{ status_label($ticket->status) }}
{{ $ticket->ticket_no }} · {{ $ticket->user->name ?? '—' }} ({{ $ticket->user->email ?? '' }}) · {{ status_label($ticket->category) }} · {{ status_label($ticket->priority) }}
@foreach($ticket->replies as $reply)
@if($reply->is_staff){{ __('Staff') }}{{ $reply->user->name ?? '' }}@else{{ $reply->user->name ?? __('Student') }}@endif {{ $reply->created_at->format('M d, Y H:i') }}
{!! nl2br(e($reply->body)) !!}
@endforeach @if($ticket->status !== 'closed')
@csrf
@error('message')
{{ $message }}
@enderror
@endif @endsection