@extends('layout') @section('content')
{{ __('WhatsApp Message List') }}
@if (session('success')) @endif @if (session('error')) @endif @foreach($messages as $message) @endforeach
ID Customer Name Mobile Number Amount Payment Link Link Status Search Date Whatsapp Message Status Sent At Error Message Created At Actions
{{ $message->id }} {{ $message->customer->customer_name ?? 'N/A' }} {{ $message->customer->phone_number ?? 'N/A' }} {{ $message->amount }} {{ $message->payment_link }} @if(!is_null($message->payment_link)) @endif {{ $message->link_generate_status ?? '' }} {{ $message->search_date }} {{ $message->status }} {{ $message->sent_at }} {{ $message->error_message }} {{ $message->created_at }} @if($message->status !== 'sent')
@csrf
@if(is_null($message->payment_link))
@csrf
@endif @endif
{{ $messages->links() }}
@endsection @section('script') @endsection