@extends('layouts.app') @section('title', 'Ticket #'.$ticket->id) @section('content')

Ticket #{{ $ticket->id }} - {{ ucfirst($ticket->category) }}

Initial Message:

{{ $ticket->message }}

@if ($ticket->file_path)

📎 Download Attachment

@endif @if($ticket->admin_response)

Admin Response:

{{ $ticket->admin_response }}

@endif

Status: {{ ucfirst($ticket->status) }}

Conversation

@forelse($ticket->messages as $msg)
{{ $msg->user->name }} ({{ ucfirst(optional($msg->user->roles->first())->name ?? 'User') }}) {{ $msg->created_at->format('M d, Y H:i') }}

{{ $msg->message }}

@empty

No replies yet.

@endforelse
@if($ticket->status !== 'closed')

Send a Reply

@csrf
@else

This ticket is closed and no longer accepts replies.

@endif
@endsection