{{ __('Messages') }}

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

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

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

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

@if ($message?->documents) @endif
@endif @endforeach
@if ($ticket->status != 'closed')
@csrf
{{ __('Maximum file size 2MB') }}
@adminCan('support.ticket.manage') @endadminCan
@endif
{{ __('Ticket Information') }}

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

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

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

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

{{ __('User Information') }}

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

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

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

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

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

@else

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

{{ __('User Type') }} : {{ __('Influencer') }}

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

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

@endif @adminCan('support.ticket.delete') {{ __('Delete') }} @endadminCan @adminCan('support.ticket.close') @if ($ticket->status != 'closed') {{ __('Closed') }} @endif @endadminCan