From 3b2359db1d7d30f1683ed59e0b7111984020c07d Mon Sep 17 00:00:00 2001 From: phecho Date: Wed, 11 Nov 2015 15:10:57 +0800 Subject: [PATCH] Fixed translations of dashboard page title --- app/Http/Controllers/Dashboard/IncidentController.php | 1 + app/Http/Controllers/Dashboard/ScheduleController.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Http/Controllers/Dashboard/IncidentController.php b/app/Http/Controllers/Dashboard/IncidentController.php index deba5960..e1b484ea 100644 --- a/app/Http/Controllers/Dashboard/IncidentController.php +++ b/app/Http/Controllers/Dashboard/IncidentController.php @@ -70,6 +70,7 @@ class IncidentController extends Controller public function showIncidents() { $incidents = Incident::notScheduled()->orderBy('created_at', 'desc')->get(); + return View::make('dashboard.incidents.index') ->withPageTitle(trans('dashboard.incidents.incidents').' - '.trans('dashboard.dashboard')) ->withIncidents($incidents); diff --git a/app/Http/Controllers/Dashboard/ScheduleController.php b/app/Http/Controllers/Dashboard/ScheduleController.php index 2199d681..dd66fe5f 100644 --- a/app/Http/Controllers/Dashboard/ScheduleController.php +++ b/app/Http/Controllers/Dashboard/ScheduleController.php @@ -69,6 +69,7 @@ class ScheduleController extends Controller public function showIndex() { $schedule = Incident::scheduled()->orderBy('created_at')->get(); + return View::make('dashboard.schedule.index') ->withPageTitle(trans('dashboard.schedule.schedule').' - '.trans('dashboard.dashboard')) ->withSchedule($schedule);