@php($user= $admin) @php($user->id = 0) @if($user) @php($unchecked=($admin_conversation?->last_message?->sender_id == $user->id) ? $admin_conversation?->unread_message_count : 0)
@php($restaurant_logo = \App\Models\BusinessSetting::where(['key' => 'logo'])->first())
Image Description
@php($admin_name = \App\Models\BusinessSetting::where('key', 'business_name')->first())
{{ $admin_name->value ?? translate('admin') }} {{$unchecked ? $unchecked : ''}} @if ($admin_conversation?->last_message?->created_at) {{ Carbon\Carbon::parse($admin_conversation?->last_message?->created_at)->diffForHumans() }} @endif
{{ $user['phone'] }}
{{ $admin_conversation->last_message?->message ? Str::limit($admin_conversation->last_message?->message ??'', 35, '...') : (count($admin_conversation?->last_message?->file_full_url ?? []) > 0 ? count($admin_conversation?->last_message?->file_full_url) .' '. translate('messages.Attachments') :'' )}}
@endif