{{ trans('Whatsapp Messages') }}
@if (count($errors) > 0)
@if($errors->any())
{{$errors->first()}}
@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
|
{{$customers['result']->links('vendor.pagination.default')}}
@endif--}}
Click on the number to start chating