@extends('layouts.front-end.app') @section('title') {{ Request::is('chat/seller') ? \App\CPU\translate('chat_with_seller') : \App\CPU\translate('chat_with_delivery-man')}} @endsection @push('css_or_js') @endpush @section('content')

{{ Request::is('chat/seller') ? \App\CPU\translate('chat_with_seller') : \App\CPU\translate('chat_with_delivery-man')}}

@include('web-views.partials._profile-aside') {{-- Seller List start --}} @if (isset($unique_shops))

@if (isset($unique_shops)) @foreach($unique_shops as $key=>$shop)
{{$shop->f_name? $shop->f_name. ' ' . $shop->l_name: $shop->name}}
@endForeach @endif
@if (isset($chattings)) @foreach($chattings as $key => $chat) @if ($chat->sent_by_seller? $chat->sent_by_seller : $chat->sent_by_delivery_man)
sunil

{{$chat->message}}

{{$chat->created_at->format('h:i A')}} | {{$chat->created_at->format('M d')}}
@else

{{$chat->message}}

{{$chat->created_at->format('h:i A')}} | {{$chat->created_at->format('M d')}}
@endif @endForeach {{-- for scroll down --}}
@endif
@csrf @if( Request::is('chat/seller') ) @if($last_chat->shop) @endif @elseif( Request::is('chat/delivery-man') ) @endif
@else

{{\App\CPU\translate('No conversation found')}}

@endif
@endsection @push('script') @endpush