@php $alertCounts = $widget['data']['alertCounts']; $alertTypes = $widget['data']['alertTypes']; @endphp

{{ __('alert.dashboard_heading') }}

@if ($alertCounts['total'] === 0)
{{ __('alert.card_all_clear') }}
{{ __('alert.card_all_clear_body') }}
@else
@foreach ($alertTypes as $type => $config)
{{ __('alert.type_' . $type) }}
{{ $alertCounts[$type] }}
@if ($alertCounts[$type] > 0)
{{ __('alert.card_recent_jobs') }}
    @foreach ($config['recentJobs'] as $alertJob)
  • {{ $alertJob->customer->name }} — {{ $alertJob->started_at->format(__('alert.date_format')) }}
  • @endforeach
@endif
{{ __('alert.card_view_all') }} →
@endforeach
@endif