{{ __('Replies') }}
@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
@else
@php
$user = App\Models\User::where('id', $ticket->user_id)->first();
@endphp
@endif
@endforeach
@else
@if ($ticket->status == 2)
{{ $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
{!! $reply->reply !!}
@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
{!! $reply->reply !!}
{{ __('No Message Found') }}
@endif