{{ session('status') }}
@endif
@if ($errors->any())
{{ $errors->first() }}
@endif
{{ __('Admin · Platform devices') }}
{{ __('All') }} {{ __('devices') }}
{{ __('Every paired WhatsApp number across the platform. Force re-pair, disconnect, or transfer ownership without leaving the admin console.') }}
{{ number_format($counts['connected']) }} {{ __('connected') }}
{{-- Bulk re-sync: pulls live status for every device from the
bridge. data-confirm is handled by lib/ui-modal (app.js). --}}
{{-- Export honours the current status + search filters. --}}
{{ __('Export CSV') }}
{{ __('Total devices') }}{{ $newThisWeek > 0 ? '+' . number_format($newThisWeek) : '0' }} {{ __('this week') }}
{{ number_format($counts['all']) }}{{ __('across :n wks', ['n' => number_format($workspacesWithDevices)]) }}
{{ __('Connected') }}{{ $pctOf($counts['connected']) }}
{{ number_format($counts['connected']) }}{{ __('healthy') }}
{{ __('Needs re-pair') }}{{ __('action req') }}
{{ number_format($counts['needs_pair']) }}{{ __('expired QR') }}
{{ __('Disconnected') }}{{ __('offline') }}
{{ number_format($counts['disconnected']) }}{{ __('offline') }}
{{ __('Sent (24h)') }}{{ __('live') }}
{{ number_format($sent24hTotal) }}{{ __('across all') }}
| {{ __('Device & number') }} | {{ __('Workspace') }} | {{ __('Owner') }} | {{ __('Last sync') }} | {{ __('Sent 24h') }} | {{ __('Status') }} | |||
|---|---|---|---|---|---|---|---|---|
|
{{ $d->device_name ?: __('Device #:id', ['id' => $d->id]) }}
{{ $phone !== '' ? mask_phone($phone) : '—' }}{{ $d->region ? ' · ' . $d->region : '' }}
|
{{ optional($d->workspace)->name ?: '—' }}
{{ optional($d->workspace)->plan ?: '—' }}
|
{{ $initials }}{{ $ownerNm !== '' ? $ownerNm : '—' }}
|
{{ $d->last_seen_at ? $d->last_seen_at->diffForHumans(null, true) : '—' }} | {{ number_format((int) $d->sent_24h) }} | {{ $pill[2] }} |
|
||
| {{ $q !== '' || $status !== 'all' ? __('No devices match this filter.') : __('No devices have been paired on the platform yet.') }} | ||||||||
{{ __('Showing') }} {{ $devices->firstItem() ?? 0 }}–{{ $devices->lastItem() ?? 0 }} {{ __('of') }} {{ number_format($devices->total()) }} {{ __('devices') }}
{{ $devices->onEachSide(1)->links() }}