@extends('admin.layouts.app') @section('content')
{{-- navbar - top --}} @include('admin.layouts.topbar')
{{-- navbar - side --}} @include('admin.layouts.nav')

{{ __('Support Center - Ticket #') }}{{ $supportTicket->ticket_id }}

{{ __("User ID : ") }}{{ $supportTicket->user_id }}
@if ($supportTicket->user()->exists())
{{ __("Name : ") }}{{ $supportTicket->user->name }}
@else
{{ __("Name : N/A") }}
@endif
@if ($supportTicket->user()->exists()) @if (!is_null($supportTicket->user()) && $supportTicket->user->user_type == 0)
{{ __("User Type : Customer") }}
@elseif (!is_null($supportTicket->user()) && $supportTicket->user->user_type == 1)
{{ __("User Type : Taxi Owner") }}
@elseif (!is_null($supportTicket->user()) && $supportTicket->user->user_type == 2)
{{ __("User Type : Company") }}
@endif @if (!is_null($supportTicket->user()) && !is_null($supportTicket->user->whatsapp_no))
{{ __("WhatsApp Number : ") }}{{ $supportTicket->user->whatsapp_no }}
@endif @else
{{ __("User Type : N/A") }}
{{ __("WhatsApp Number : N/A") }}
@endif
{{ __("Subject : ") }} {{ $supportTicket->subject }}
@foreach ($chats as $ticketChat)
@if ($ticketChat->sender_id == 0)
{{ __("You") }}
@elseif($ticketChat->sender_id != 0 && !is_null($ticketChat->sender()))
{{ $ticketChat->sender->name }}
@endif

{{ $ticketChat->message }}

{{ \Carbon\Carbon::parse($ticketChat->created_at)->format('M d, Y h:i:s A') }}

@endforeach
@endsection @extends('admin.layouts.footer')