@include('admin.common.meta') @include('admin.common.scripts')
@php $getUserRoleData = Session::get('userRoleData'); $Customers = explode(",",$getUserRoleData->Customers); $Meta = explode(",",$getUserRoleData->Meta); @endphp

{{ trans('Whatsapp Messages') }}

@if(Auth::guard('admin')->check() && Auth::guard('admin')->user()->role_id == 19) @endif
@if (count($errors) > 0) @if($errors->any()) @endif @endif
{{ trans('labels.WhatsappId') }}
@if ($whatsapp['count'] > 0) @foreach ($whatsapp['list'] as $key => $whatsapp_list) @php if($whatsapp_list->message_sender_id == "16479432566" || $whatsapp_list->message_recipient_id == "16479432566") { $product = "16479432566"; $product_name = "GuruTv"; } else if ($whatsapp_list->message_sender_id == "17783722112" || $whatsapp_list->message_recipient_id == "17783722112") { $product = "17783722112"; $product_name = "BossTv"; } else if ($whatsapp_list->message_sender_id == "16479430707" || $whatsapp_list->message_recipient_id == "16479430707") { $product = "16479430707"; $product_name = "TashanTv"; } else if ($whatsapp_list->message_sender_id == "14037752000" || $whatsapp_list->message_recipient_id == "14037752000") { $product = "14037752000"; $product_name = "VoisTv"; } $last_time = $whatsapp_list->created_at; $time_only = date('h:i A', strtotime($last_time)); $button_status = $whatsapp_list->message_status === "read" ? "Unread" : "Read"; @endphp @endforeach @else @endif

{{ $product_name }}

+{{ $whatsapp_list->message_sender_id }} ({{ $whatsapp_list->message_sender_name }})

{{ $time_only }}

{{ $whatsapp_list->user_name ?? '' }}

{{ trans('labels.NoRecordFound') }}
{{--@if (count($customers['result']) > 0)
{{$customers['result']->links('vendor.pagination.default')}}
@endif--}}
Click on the number to start chating