@if (count($ticket->messages) > 0)
@foreach ($ticket->messages as $reply)
@if ($reply->type == 2)
@php
$admin = App\Models\Admin::where(
'id',
$reply->user_id,
)->first();
@endphp
{{ $admin->username }}
{{ $admin->id == 1 ? __('Super Admin') : $admin->role->name }}
{{ \Carbon\Carbon::parse($reply->created_at)->format('d-M-Y H:s a') }}
@if ($reply->file != null)
{{ __('Download') }}
@endif
@else
@php
$user = App\Models\User::where('id', $ticket->user_id)->first();
@endphp
@if ($user->image != null)
 }})
@else
 }})
@endif
{{ $user->username }}
{{ \Carbon\Carbon::parse($reply->created_at)->format('d-M-Y H:s a') }}
@if ($reply->file != null)
{{ __('Download') }}
@endif
@endif
@endforeach
@else
{{ __('No Message Found') }}
@endif
@if ($ticket->status == 2)