@include('icons.' . ($incident->status == 'resolved' ? 'check-circle-filled' : ($incident->status == 'unresolved' ? 'error-filled' : 'offline-bolt-filled')), ['class' => 'width-4 height-4 fill-current mt-1 flex-shrink-0 ' . ($incident->status == 'resolved' ? 'text-success' : ($incident->status == 'unresolved' ? 'text-danger' : 'text-warning')) . ' ' . (__('lang_dir') == 'rtl' ? 'ml-2' : 'mr-2')]) {{ __(Str::ucfirst($incident->status)) }}
@php \Carbon\Carbon::disableHumanDiffOption(\Carbon\Carbon::NO_ZERO_DIFF); @endphp
{{ __('Duration') }}: {{ $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'))->format(__('Y-m-d') . ' H:i:s') }}
{{ __('Ended at') }}: {{ ($incident->ended_at ? $incident->ended_at->tz(Auth::user()->timezone ?? config('settings.timezone'))->format(__('Y-m-d') . ' H:i:s') : __('Ongoing')) }}