@if ($type == 'no_reply') @foreach ($metaChatRooms as $message)

{{ $message->receiverUser->name ?? '' }}

{{ $message->receiverUser->full_mobile_number ?? '' }}

{{ date('d/m/Y', strtotime($message->created_at)) }} {{ date('h:i A', strtotime($message->created_at)) }}

@endforeach @else @foreach ($metaChatRooms as $message) @php $latestChat = $message->latestChat($message->user_id); @endphp

{{ $message->user->name ?? '' }}

{{--

{{ $message->user->userDetails->chapter->name ?? '' }}

--}}

{{ $message->user->full_mobile_number ?? '' }}

{{ $latestChat ? date('d/m/Y', strtotime($latestChat->created_at)) : '' }} {{ $latestChat ? date('h:i A', strtotime($latestChat->created_at)) : '' }}

@if ($message->is_expired == false)
{{ $message->remaining_expire_time }}
@endif
@endforeach @endif