@php $user = auth()->user(); @endphp
@foreach($match as $supportchat) @php if ($supportchat->user_id == $current_user->id) { if ($current_user->user_type == 'admin') { $current_user_class = 'mm-current-user'; $message_class = 'justify-content-end'; } elseif ($current_user->user_type == 'rider') { $current_user_class = 'mm-other-user'; $message_class = 'justify-content-start'; } } else { $current_user_class = 'mm-other-user'; $message_class = 'justify-content-start'; } @endphp
Dec 1,2022
chat-user
{{ optional($supportchat->user)->display_name }}, {{ date('h:i A', strtotime(dateAgoFormate($supportchat->datetime))) }}

{{ $supportchat->message }}

@endforeach