diff --git a/resources/lang/en/dashboard.php b/resources/lang/en/dashboard.php index d99fbc61..3707fc05 100644 --- a/resources/lang/en/dashboard.php +++ b/resources/lang/en/dashboard.php @@ -35,6 +35,7 @@ return [ 'failure' => 'Something went wrong updating the incident update', ], ], + 'reported_by' => 'Reported by :user', '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 78e62cf4..0f49b862 100644 --- a/resources/views/dashboard/incidents/index.blade.php +++ b/resources/views/dashboard/incidents/index.blade.php @@ -24,7 +24,10 @@
{{ $incident->name }} {{ trans_choice('dashboard.incidents.updates.count', $incident->updates()->count()) }} @if($incident->message) -

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

+

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

+ @endif + @if ($incident->user) +

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

@endif