@if (!session()->has('selectedDevice'))
{{ __('Please select a device first') }}
@else
{{ $record->name }}
{{ $record->country_name }} ({{ $record->country_code }}) {{ strtoupper($record->api_source) }} M {{ $record->min_magnitude }}+ {{ is_array($record->recipient_numbers) ? count($record->recipient_numbers) : 0 }} {{ __('recipients') }}
{{ __('Edit Monitor') }}
{{ __('Alerts Sent') }}
@if ($logs->isEmpty())

{{ __('No alerts have been sent yet.') }}

@else
@foreach ($logs as $log) @endforeach
{{ __('Event') }} {{ __('Type') }} {{ __('Magnitude') }} {{ __('Location') }} {{ __('Occurred At') }} {{ __('Recipients') }} {{ __('Status') }} {{ __('Sent At') }}
@if ($log->url) {{ $log->title ?? $log->event_id }} @else {{ $log->title ?? $log->event_id }} @endif @if ($log->event_type === 'tsunami') {{ __('Tsunami') }} @else {{ __('Earthquake') }} @endif {{ $log->magnitude !== null ? 'M ' . $log->magnitude : '—' }} {{ $log->place ?? '—' }} {{ $log->occurred_at ? $log->occurred_at->format('Y-m-d H:i') : '—' }} {{ $log->recipients_count }} @if ($log->delivery_status === 'sent') {{ __('Sent') }} @elseif ($log->delivery_status === 'failed') {{ __('Failed') }} @else {{ __('Partial') }} @endif {{ $log->created_at->diffForHumans() }}
@endif
@if ($logs->hasPages()) @endif
@endif