@extends('admin.layout') @section('content')
{{ $ticket->ticket_number }}
{{ $ticket->subject }}
Back
Conversation
{{ str_replace('_', ' ', ucwords($ticket->status, '_')) }} • {{ ucfirst($ticket->priority) }}
@foreach ($ticket->messages as $m) @php($isAdmin = $m->sender_type === 'admin')
{{ $isAdmin ? ($m->user?->name ?? 'Admin') : ($m->customer?->name ?? 'Customer') }}
{{ $m->created_at?->format('d M Y, h:i A') }}
{{ $m->message }}
@endforeach
@csrf
Customer
{{ $ticket->customer?->name ?? 'Guest' }}
{{ $ticket->customer?->phone ?? '-' }}
{{ $ticket->customer?->email ?? '-' }}
Manage
@csrf @method('PATCH')
@endsection