@if($incident->ended_at)
@include('icons.check-circle-filled', ['class' => 'width-4 height-4 fill-current text-success position-absolute'])
{{ __('Incident resolved.') }}
{{ $incident->ended_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}
@endif
@if($incident->acknowledged_at)
@include('icons.offline-bolt-filled', ['class' => 'width-4 height-4 fill-current text-warning position-absolute'])
{{ __('Incident acknowledged.') }}
{{ $incident->acknowledged_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}
@endif
@if ($incident->alerted)
@foreach($incident->alerted as $alert)
@if($alert->key == 'email')
@include('icons.notifications-circle-filled', ['class' => 'width-4 height-4 fill-current text-secondary position-absolute'])
{!! __('Sent out :service alert to :value.', ['service' => view('icons.email-filled', ['class' => 'width-4 height-4 fill-current text-info vertical-align-n0.5 mx-1']) .'
' . config('alert.channels')[$alert->key] . '', 'value' => '
' . $alert->value . '']) !!}
{{ $incident->started_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}
@endif
@endforeach
@endif
@if ($incident->alerted)
@foreach($incident->alerted as $alert)
@if($alert->key == 'sms')
@include('icons.notifications-circle-filled', ['class' => 'width-4 height-4 fill-current text-secondary position-absolute'])
{!! __('Sent out :service alert to :value.', ['service' => view('icons.sms-filled', ['class' => 'width-4 height-4 fill-current text-success vertical-align-n0.5 mx-1']) . '
' . config('alert.channels')[$alert->key] . '', 'value' => '
' . $alert->value . '']) !!}
{{ $incident->started_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}
@endif
@endforeach
@endif
@if ($incident->alerted)
@foreach($incident->alerted as $alert)
@if (in_array($alert->key, ['slack', 'teams', 'discord', 'flock', 'telegram', 'webhook']))
@include('icons.notifications-circle-filled', ['class' => 'width-4 height-4 fill-current text-secondary position-absolute'])
{!! __('Sent out :service alert.', ['service' => '
' . config('alert.channels')[$alert->key] . '']) !!}
{{ $incident->started_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}
@endif
@endforeach
@endif
@include('icons.error-filled', ['class' => 'width-4 height-4 fill-current text-danger position-absolute'])
{{ __('Incident started.') }}
{{ $incident->started_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}
@include('icons.error-filled', ['class' => 'width-4 height-4 fill-current text-danger position-absolute'])
{!! __('Received :cause response from :location on :url.', ['cause' => '
' . ($incident->cause ? e(__($incident->cause)) : __('No data')) . '', 'url' => '
' . $incident->displayUrl .'',
'location' => '
' . ((!empty(explode(':', $incident->country)[1])) ? explode(':', $incident->country)[1] . ((!empty(explode(':', $incident->city)[1])) ? ', ' . explode(':', $incident->city)[1] : '') : __('Unknown')) .'']) !!}
{{ $incident->started_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}