@php $statusClass = match($monitor->last_status) { 'up' => 'badge-success', 'down' => 'badge-error', 'slow' => 'badge-warning', default => 'badge-neutral', }; @endphp @can('edit crm monitors') @endcan @can('delete crm monitors') @endcan
{{ ucfirst(__('laravel-crm::lang.status')) }}
{{ ucfirst(__('laravel-crm::lang.response_time')) }}
{{ $monitor->last_response_time !== null ? $monitor->last_response_time.' ms' : '—' }}
{{ ucfirst(__('laravel-crm::lang.status_code')) }}
{{ $monitor->last_status_code ?? '—' }}
{{ ucfirst(__('laravel-crm::lang.last_checked')) }}
{{ $monitor->last_checked_at?->format('Y-m-d H:i') ?? '—' }}
{{ ucfirst(__('laravel-crm::lang.type')) }}
{{ strtoupper($monitor->type ?? '') }}
{{ ucfirst(__('laravel-crm::lang.method')) }}
{{ $monitor->method }}
{{ ucfirst(__('laravel-crm::lang.expected_status_code')) }}
{{ $monitor->expected_status_code ?? '—' }}
{{ ucfirst(__('laravel-crm::lang.run_check_every')) }}
{{ $monitor->interval }} {{ __('laravel-crm::lang.minutes') }}
{{ ucfirst(__('laravel-crm::lang.minutes_downtime_before_notification')) }}
{{ $monitor->downtime_minutes_before_alert ?? '—' }} {{ __('laravel-crm::lang.minutes') }}
{{ ucfirst(__('laravel-crm::lang.monitor_performance_threshold')) }}
{{ $monitor->perf_threshold_ms ?? '—' }} {{ __('laravel-crm::lang.ms') }}
{{ ucfirst(__('laravel-crm::lang.owner')) }}
{{ $monitor->ownerUser?->name ?? '—' }}
{{ ucfirst(__('laravel-crm::lang.active')) }}
{{ $monitor->is_active ? __('laravel-crm::lang.yes') : __('laravel-crm::lang.no') }}
@scope('cell_status', $check) @php $rowClass = match($check->status) { 'up' => 'badge-success', 'down', 'error' => 'badge-error', 'slow' => 'badge-warning', default => 'badge-neutral', }; @endphp @endscope @scope('cell_response_time', $check) {{ $check->response_time !== null ? $check->response_time.' ms' : '—' }} @endscope @scope('cell_checked_at', $check) {{ $check->checked_at?->format('Y-m-d H:i:s') }} @endscope