@if(count($ticket->messages) > 0)
@foreach ($ticket->messages as $reply)
@if(!$reply->user_id)
@php
$admin = App\Admin::find($ticket->admin_id);
@endphp
{{convertUtf8($admin->username)}}
{{$admin->id == 1 ? 'Super Admin' : convertUtf8($admin->role->name)}}
{{$reply->created_at->format('d-m-Y')}} {{date("h.i A", strtotime($reply->created_at))}}
@if($reply->file)
{{__('Download')}}
@endif
{!! replaceBaseUrl(convertUtf8($reply->reply)) !!}
@else
@php
$user = Auth::user();
@endphp
@if (strpos($user->photo, 'facebook') !== false || strpos($user->photo, 'google'))
}})
@else
 : ''}})
@endif
{{convertUtf8($user->username)}}
{{__('Customer')}}
{{$reply->created_at->format('d-m-Y')}} {{date("h.i A", strtotime($reply->created_at))}}
@if($reply->file)
{{__('Download')}}
@endif
{!! replaceBaseUrl(convertUtf8($reply->reply))!!}
@endif
@endforeach
@else
{{__('NO Conversations')}}
@endif