@extends('merchant.layout') @section('title','Ticket Details') @section('content')
{{-- HEADER --}}

Ticket #{{ $ticket->id }}

{{ $ticket->subject }}
{{ ucfirst($ticket->status) }}
{{-- LEFT: CONVERSATION --}}
Conversation
{{-- ORIGINAL MESSAGE --}}
You {{ $ticket->created_at->format('d M Y, h:i A') }}
{{ $ticket->message }}
{{-- REPLIES --}} @foreach($ticket->replies as $reply)
{{ $reply->sender_type === 'admin' ? 'Support Team' : 'You' }} {{ $reply->created_at->format('d M Y, h:i A') }}
{{ $reply->message }}
@endforeach
{{-- REPLY FORM --}} @if($ticket->status !== 'closed')
@csrf
@csrf
@endif
{{-- RIGHT: DETAILS --}}
Ticket Info

Subject: {{ $ticket->subject }}

Priority: {{ ucfirst($ticket->priority ?? 'normal') }}

Created: {{ $ticket->created_at->format('d M Y') }}

Last Update: {{ $ticket->updated_at->format('d M Y') }}

@endsection