diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index cf3842f3..893777d3 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -18,10 +18,10 @@ return [ 'incidents' => [ 'title' => 'Incidents & Schedule', 'incidents' => 'Incidents', - 'logged' => '{0} There are no incidents, good work.|You have logged one incident.|You have reported :count incidents.', + 'logged' => '{0} There are no incidents, good work.|[1] You have logged one incident.|[2, Inf] You have reported :count incidents.', 'incident-create-template' => 'Create Template', 'incident-templates' => 'Incident Templates', - 'updates' => '{0} Zero Updates|One Update|:count Updates', + 'updates' => '{0} Zero Updates|[1] One Update|[2] Two Updates|[3,Inf] Several Updates', 'add' => [ 'title' => 'Report an incident', 'success' => 'Incident added.', diff --git a/resources/views/dashboard/incidents/index.blade.php b/resources/views/dashboard/incidents/index.blade.php index 4ab86edc..3607fff3 100644 --- a/resources/views/dashboard/incidents/index.blade.php +++ b/resources/views/dashboard/incidents/index.blade.php @@ -24,7 +24,7 @@ @foreach($incidents as $incident)
- {{ $incident->name }} {{ trans_choice('dashboard.incidents.updates', $incident->updates->count()) }} + {{ $incident->name }} {{ trans_choice('dashboard.incidents.updates', $incident->updates()->count()) }} @if($incident->message)

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

@endif