{{__('The given data was invalid.')}}
| {{ __('Sender') }} | {{ __('Recipient') }} | {{ __('Message') }} | {{ __('Type') }} | {{ __('Status') }} | {{ __('Via') }} | {{ __('Message ID') }} | {{ __('Provider') }} | {{ __('Time') }} | {{ __('Action') }} |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $msg->device->body ?? '-' }}
|
{{-- Recipient --}}
{{ $msg->number }} | {{-- Message --}}
{{ strip_tags($msg->message) }}
@if ($msg->note)
{{ \Illuminate\Support\Str::limit($msg->note, 60) }}
@endif
|
{{-- Type --}}
@php $typeColors = [ 'text' => 'info', 'media' => 'primary', 'image' => 'primary', 'video' => 'purple', 'audio' => 'secondary', 'document' => 'secondary', 'sticker' => 'warning', 'button' => 'success', 'template' => 'success', 'list' => 'cyan', 'poll' => 'indigo', 'location' => 'danger', 'vcard' => 'teal', 'product' => 'orange', ]; $tColor = $typeColors[$msg->type] ?? 'secondary'; @endphp {{ strtoupper($msg->type) }} | {{-- Status --}}@if ($msg->status === 'success') {{ __('Sent') }} @elseif ($msg->status === 'unknown') {{ __('Unknown') }} @elseif ($msg->status === 'delivered') {{ __('Delivered') }} @elseif ($msg->status === 'read') {{ __('Read') }} @else {{ __('Failed') }} @endif | {{-- Via --}}@if ($msg->send_by === 'web') {{ __('Web') }} @else {{ __('API') }} @endif | {{-- Message ID --}}
@if ($msg->provider_message_id)
{{ \Illuminate\Support\Str::limit($msg->provider_message_id, 18) }}
@else
—
@endif
|
{{-- Provider --}}
@if ($msg->provider) {{ $msg->provider === 'legacy' ? 'Baileys' : ($msg->provider === 'meta_cloud_api' ? 'Meta Cloud' : $msg->provider) }} @else — @endif | {{-- Time --}}
{{ $msg->created_at->format('d M Y') }}
{{ $msg->created_at->format('H:i') }} |
{{-- Action --}}
{{-- Payload collapse --}}
|