@extends('layouts.app') @section('title', 'View Ticket') @section('content')
Ticket Details

Ticket ID: #{{ $ticket->id }}

Subject: {{ $ticket->subject }}

Status: {{ ucfirst(str_replace('_', ' ', $ticket->status)) }}

Submitted By: {{ $ticket->user->name }} ({{ $ticket->user->email }})

Description:

{{ $ticket->description }}

Attachments:

@if ($ticket->attachments->isNotEmpty()) @else

No attachments uploaded.

@endif
Replies
@forelse($ticket->replies as $reply)
{{ $reply->user ? $reply->user->name : 'Admin' }} {{ $reply->created_at->format('d M Y, H:i') }}

{{ $reply->message }}

@empty
No replies yet.
@endforelse
Send a Reply
@csrf
@endsection