Fixed translations of dashboard page title

This commit is contained in:
phecho
2015-11-11 15:10:57 +08:00
parent be1fccd682
commit 3b2359db1d
2 changed files with 2 additions and 0 deletions

View File

@@ -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);

View File

@@ -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);