{{ $ticket->subject }}
#{{ $ticket->id }} · {{ $ticket->customer?->full_name ?? '—' }} @if($ticket->customer?->email) ({{ $ticket->customer?->email }}) @endif
{{ __('Status') }}
{{ ucfirst($ticket->status) }}
{{ __('Priority') }}
{{ ucfirst($ticket->priority) }}
{{ __('Created') }}
{{ $ticket->created_at?->format('M d, Y') }}
{{ __('Last update') }}
{{ ($ticket->last_message_at ?? $ticket->updated_at)->diffForHumans() }}
@admincan('admin.support_tickets.edit')
@csrf
{{ __('Update') }}
@csrf
{{ __('Update') }}
@endadmincan
{{ __('Conversation') }}
@foreach($messages as $message) @php $sender = $message->sender; $isCustomer = $sender instanceof \App\Models\Customer; @endphp
{{ $isCustomer ? ($ticket->customer?->full_name ?? __('Customer')) : __('Admin') }}
{{ $message->created_at->format('h:i A · d M Y') }}
{!! $message->body_for_display !!}
@endforeach
@admincan('admin.support_tickets.edit') @if($ticket->status !== 'closed')
@csrf @php($inputId = 'reply_body_' . $ticket->id)
{{ __('Send Reply') }}
@endif @endadmincan