@if (isset($result) && count($result) > 0) @php $i = pageIndex($result); @endphp @foreach ($result as $key => $row) @php // Encode the message for use in a URL $message = "Dear ".$row->name.", your invoice #".$row->id." is ready. Please review it ".route('share', $row->unique_code)." Feel free to reach out for any assistance. Best, JTMS Logistic"; $encodedMessage = urlencode($message); $phoneNumber = $row->dial_code.''.$row->phone; $whatsappUrl = 'https://web.whatsapp.com/send/?phone='. $phoneNumber .'&text='.$encodedMessage.'&type=phone_number&app_absent=0'; @endphp @endforeach @else @endif
{{ __('common.sr_no') }} {!! sorting('id', __('common.invoice_id'), $sortOrder, $sortEntity) !!} {!! sorting('total_weight', __('common.total_weight'), $sortOrder, $sortEntity) !!} {!! sorting('total_price', __('common.total_price'), $sortOrder, $sortEntity) !!} {!! sorting('client_id', __('common.client_name'), $sortOrder, $sortEntity) !!} {!! sorting('inventory_ids', __('common.inventory_ids'), $sortOrder, $sortEntity) !!} {!! sorting('created_at', __('common.created_at'), $sortOrder, $sortEntity) !!} {!! __('common.action') !!}
{!! $i++ !!} {!! '#'.$row->id !!} {!! $row->total_weight !!} {!! '$'.$row->total_price !!} {!! $row->name !!} {!! '#'.$row->inventory_ids !!} {{dateFormat($row->created_at, DISPLAY_DATETIME)}}
{!! $result->links('pagination::bootstrap-4') !!}
{!! pageDetail($result) !!}
{!! __('common.no_records') !!}