@extends('frontend.layouts.app') @push('stylepush') @endpush @section('content') @php $user = auth()->user(); @endphp

{{ translate('Chat List') }}

{{translate('Dashboard')}}
{{ translate('Chat list') }}
@forelse ($deliverymen as $deliveryman) @php $isSeen = true; if($deliveryman->latestConversation && $deliveryman->latestConversation->sender_role == 'deliveryman' && $deliveryman->latestConversation->is_seen == 0 ){ $isSeen = false; } @endphp
profile.jpg
{{ $deliveryman->first_name . ' ' . $deliveryman->last_name }}
{{ $deliveryman->latestConversation->created_at->diffForHumans()}}

{{ $deliveryman->latestConversation->message }}

@if(!$isSeen) {{translate("New")}} @endif
@empty @include("frontend.partials.empty",['message' => translate('No Deliveryman found')]) @endforelse
@include("frontend.partials.empty",['message' => translate('Please select a deliveryman')])
@endsection @push('script-include') @endpush @push('scriptpush') @endpush