@section('site_title', formatTitle([$incident->monitor->name, __('Incident'), config('settings.title')])) @include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => request()->is('admin/*') ? route('admin.dashboard') : route('dashboard'), 'title' => request()->is('admin/*') ? __('Admin') : __('Home')], ['url' => request()->is('admin/*') ? route('admin.incidents') : route('incidents'), 'title' => __('Incidents')], ['title' => __('Incident')], ]])

{{ __('Incident') }}

{{ __('Summary') }}
{{ __('Status') }}
{{ __(Str::ucfirst(__($incident->status))) }}
{{ __('Cause') }}
{{ ($incident->cause ? __($incident->cause) : __('No data')) }}
{{ __('Location') }}
@if(!empty(explode(':', $incident->country)[1])) {{ explode(':', $incident->country)[1] }}@if(!empty(explode(':', $incident->city)[1])), {{ explode(':', $incident->city)[1] }}@endif @else {{ __('Unknown') }} @endif
@if (Auth::check() && $incident->user_id == Auth::user()->id)
@csrf
@if ($errors->has('comment')) {{ $errors->first('comment') }} @endif
{{ $incident->comment }} {{ ($incident->comment ? __('Edit') : __('Add')) }}
@endif
{{ __('Duration') }}
@php \Carbon\Carbon::disableHumanDiffOption(\Carbon\Carbon::NO_ZERO_DIFF); @endphp {{ $incident->started_at->diffForHumans($incident->ended_at ?? \Carbon\Carbon::now(), ['syntax' => true, 'parts' => 3, 'join' => true]) }} @php \Carbon\Carbon::enableHumanDiffOption(\Carbon\Carbon::NO_ZERO_DIFF); @endphp
{{ __('Started at') }}
{{ $incident->started_at->tz(Auth::user()->timezone ?? config('settings.timezone')) }}
{{ __('Ended at') }}
@if ($incident->ended_at) {{ $incident->ended_at->tz(Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d') . ' H:i:s') }} @else {{ __('Ongoing') }} @endif
{{ __('Monitor') }}
{{ __('Report generated on :date at :time (UTC :offset).', ['date' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')), 'time' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->format('H:i:s'), 'offset' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->getOffsetString()]) }} {{ __('Refresh report') }}
{{ __('Timeline') }}
@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')) }}
{{ __('Report generated on :date at :time (UTC :offset).', ['date' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d')), 'time' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->format('H:i:s'), 'offset' => (clone $now)->tz(Auth::user()->timezone ?? config('settings.timezone'))->getOffsetString()]) }} {{ __('Refresh report') }}