{{__('admin.Support Ticket')}}

@foreach ($messages as $message) @if ($message->admin_id == 0)
{{ $ticket->user->name }} ({{__('admin.Author')}})
{{ $message->created_at->diffForHumans() }}

{!! html_decode(clean(nl2br($message->message))) !!}

@if ($message->documents) @endif
@else
{{ $message->admin ? $message->admin->name : '' }} ({{__('admin.Administrator')}})
{{ $message->created_at->diffForHumans() }}

{!! html_decode(clean(nl2br($message->message))) !!}

@if ($message->documents) @endif
@endif @endforeach
@csrf
{{__('admin.Maximum file size 2MB')}}
{{__('admin.Ticket Information')}}

{{__('admin.Subject')}}: {{ html_decode($ticket->subject) }}

{{__('admin.Ticket Id')}}: {{ $ticket->ticket_id }}

{{__('admin.Booking Id')}}: {{ $ticket->order->order_id }}

{{__('admin.Created')}}: {{ $ticket->created_at->format('h:m A, d-M-Y') }}

{{__('admin.Status')}}: @if($ticket->status == 'pending') {{__('admin.Pending')}} @elseif ($ticket->status == 'in_progress') {{__('admin.In Progress')}} @elseif ($ticket->status == 'closed') {{__('admin.Closed')}} @endif

{{__('admin.User Information')}}

@if ($ticket->ticket_from == 'Client')

{{__('admin.Name')}}: {{ $ticket->user->name }}

{{__('admin.User Type')}} : {{__('admin.Client')}}

{{__('admin.Email')}} : {{ $ticket->user->email }}

{{__('admin.Phone')}} : {{ $ticket->user->Phone }}

@else

{{__('admin.Name')}}: {{ $ticket->user->name }}

{{__('admin.User Type')}} : {{__('admin.Provider')}}

{{__('admin.Email')}} : {{ $ticket->user->email }}

{{__('admin.Phone')}} : {{ $ticket->user->Phone }}

@endif {{__('admin.Delete')}} @if ($ticket->status != 'closed') {{__('admin.Closed')}} @endif