{{ __('Device') }} #{{ $device->id }}
{{ $device->device_name ?: __('Device #:id', ['id' => $device->id]) }}
{{ $phone !== '' ? mask_phone($phone) : '—' }}
{{ optional($device->workspace)->name ?: '—' }}
{{ optional($device->workspace)->plan ?: '—' }}
{{ $device->region ?: '—' }}
{{ __('Status') }}: {{ $device->status }}
{{ __('Owner') }}: {{ optional($device->user)->name ?: '—' }}
{{ __('Paired') }} {{ optional($device->created_at)->diffForHumans() ?: '—' }}
{{ __('Sent (24h)') }}
{{ number_format($sent) }}{{ __('outgoing') }}
{{ __('Delivered') }}{{ __('healthy') }}
{{ $delivPct }}%{{ number_format($ok) }} ok
{{ __('Read rate') }}
{{ $readRate }}%{{ number_format($lifeRead) }} {{ __('read') }}
{{ __('Failed') }}{{ $failedPct }}%
{{ number_format($lifeFailed) }}{{ __('all time') }}
{{ __('Total sent') }}
{{ number_format($lifeTotal) }}{{ __('all time') }}
@php
$rangeLabel = ['24h' => __('last 24h'), '7d' => __('last 7 days'), '30d' => __('last 30 days')][$range] ?? __('last 7 days');
@endphp
{{ __('Activity') }}
{{ __('Sent vs failed') }} · {{ $rangeLabel }}
{{ __('Status mix') }}
{{ __('Delivery breakdown') }}
{{ __('Read') }}{{ number_format($analytics['status']['read']) }}
{{ __('Delivered') }}{{ number_format($analytics['status']['delivered']) }}
{{ __('Pending') }}{{ number_format($analytics['status']['pending']) }}
{{ __('Failed') }}{{ number_format($analytics['status']['failed']) }}
{{ __('When it fires') }}
{{ __('Hour-of-day heatmap') }}
{{ __('Recent events') }}
{{ __('Session log') }}
| {{ __('When') }} | {{ __('Event') }} | {{ __('Detail') }} | By |
|---|---|---|---|
| {{ optional($ev->created_at)->diffForHumans() ?: '—' }} | {{ $short }} | {{ $meta ? json_encode($meta) : $act }} | {{ optional($ev->actor)->name ?: __('system') }} |
| {{ __('No recorded events for this device yet.') }} | |||
{{ $events->links() }}
@endif
{{ __('Admin audit') }}
{{ __('Action log') }}
-
@forelse ($events as $ev)
@php
$dot = str_contains((string) $ev->action, 'destroy')
? 'bg-accent-coral'
: (str_contains((string) $ev->action, 'disconnect') ? 'bg-accent-amber' : 'bg-wa-green');
@endphp
- {{ optional($ev->actor)->name ?: __('system') }} {{ \Illuminate\Support\Str::afterLast((string) $ev->action, '.') }} · {{ optional($ev->created_at)->format('Y-m-d H:i') }} @empty
- {{ __('No admin actions recorded for this device yet.') }} @endforelse