@if (!session()->has('selectedDevice'))
{{ __('Please select a device first') }}
@else
@if (session()->has('alert')) @endif

{{ $stats['total'] }}

{{ __('Total Monitors') }}

{{ $stats['active'] }}

{{ __('Active Monitors') }}

{{ $stats['alerts_today'] }}

{{ __('Alerts Today') }}

{{ $stats['alerts_total'] }}

{{ __('Total Alerts Sent') }}
{{ __('Disaster Alerts') }}
@if ($settings->isEmpty())
{{ __('No monitors yet') }}

{{ __('Create your first disaster alert monitor to start receiving earthquake and tsunami notifications on WhatsApp.') }}

{{ __('Create First Monitor') }}
@else
@foreach ($settings as $record)
{{ $record->name }}
{{ $record->status === 'active' ? __('Active') : __('Inactive') }}
{{ $record->country_name }} {{ $record->country_code }}
@if ($record->notify_earthquake) {{ __('Earthquake') }} @endif @if ($record->notify_tsunami) {{ __('Tsunami') }} @endif M {{ $record->min_magnitude }}+
{{ strtoupper($record->api_source) }} {{ $record->check_interval }} {{ __('min') }} {{ is_array($record->recipient_numbers) ? count($record->recipient_numbers) : 0 }}
@if ($record->last_checked_at)
{{ __('Last checked') }}: {{ $record->last_checked_at->diffForHumans() }}
@endif
status === 'active' ? 'checked' : '' }}>
@endforeach
{{ $settings->links() }}
@endif @endif