@if (session()->has('alert')) @slot('type', session('alert')['type']) @slot('msg', session('alert')['msg']) @endif @if ($errors->any()) @endif {{-- table --}}
{{ __('Messages History') }}
@if ($messages->total() > 0) {{ __('Delete All history?') }} @endif
@if ($messages->total() == 0) @endif @foreach ($messages as $msg) @endforeach
{{ __('Sender') }} {{ __('Number') }} {{ __('Message') }} {{ __('Status') }} {{ __('Via') }} {{ __('Last Updated') }} {{ __('Action') }}
{{ $msg->device->body }}
{{ $msg->number }}
{{ $msg->type }} {{ \Illuminate\Support\Str::limit(strip_tags($msg->message), 50) }}
@if ($msg->status === 'success') {{ __('Sent') }} @else {{ __('Failed') }} @endif @if ($msg->send_by === 'web') {{ __('Web') }} @else {{ __('API') }} @endif {{ $msg->updated_at->format('d M Y') }} {{ __('Resend') }}
{{ $messages->links('pagination::bootstrap-5') }}
{{-- end table --}}