@extends('layout.dashboard') @section('content')
@includeWhen(isset($subMenu), 'dashboard.partials.sub-sidebar')
{{ trans('dashboard.incidents.incidents') }} {{ trans('dashboard.incidents.add.title') }}
@include('partials.errors')

{!! trans_choice('dashboard.incidents.logged', $incidents->count(), ['count' => $incidents->count()]) !!}

@foreach($incidents as $incident)
{{ $incident->name }} {{ trans_choice('dashboard.incidents.updates.count', $incident->updates()->count()) }} @if($incident->message)

{{ Str::words($incident->message, 5) }}

@endif @if ($incident->user)

— {{ trans('dashboard.incidents.reported_by', ['timestamp' => $incident->created_at_diff, 'user' => $incident->user->username]) }}

@endif
@endforeach
@stop