{{ __('Ticket Details') }}

@if(session('success'))
{{ session('success') }}
@endif

{{ $ticket->subject }}

Ticket ID: {{ $ticket->id }} Category: {{ $ticket->category }} Status: @if($ticket->status === 'sent') Sent @elseif($ticket->status === 'in_progress') In Progress @elseif($ticket->status === 'closed') Closed @else {{ ucfirst(str_replace('_', ' ', $ticket->status)) }} @endif
Sender: {{ $ticket->sender->name }} ({{ ucfirst($ticket->sender->role) }}) Receiver: @if($ticket->receiver) {{ $ticket->receiver->name }} ({{ ucfirst($ticket->receiver->role) }}) @else Not assigned yet @endif
Created: {{ $ticket->created_at->format('Y-m-d H:i:s') }} @if($ticket->updated_at != $ticket->created_at) Last Updated: {{ $ticket->updated_at->format('Y-m-d H:i:s') }} @endif
@if(Auth::user()->role === 'admin')
@if(!$ticket->receiver)
@csrf
@endif @if($ticket->status !== 'closed')
@csrf
@endif
@endif ← Back to Tickets

Conversation

@forelse($ticket->messages as $msg)
{{ $msg->sender_type == 'ownerAdmin' ? 'Owner Admin' : ucfirst($msg->sender_type) }} {{ $msg->created_at->format('d M Y, H:i') }}

{{ $msg->message }}

Message ID: {{ substr($msg->id, 0, 8) }}...
@empty

No messages yet.

@endforelse

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

This ticket is closed

No further replies can be added to this ticket.

@else

Reply to this Ticket

@csrf @method('PUT')
@endif
@push('scripts') @endpush