Fixed translations of dashboard page title
This commit is contained in:
@@ -69,8 +69,9 @@ class ScheduleController extends Controller
|
||||
public function showIndex()
|
||||
{
|
||||
$schedule = Incident::scheduled()->orderBy('created_at')->get();
|
||||
|
||||
return View::make('dashboard.schedule.index')->withSchedule($schedule);
|
||||
return View::make('dashboard.schedule.index')
|
||||
->withPageTitle(trans('dashboard.schedule.schedule').' - '.trans('dashboard.dashboard'))
|
||||
->withSchedule($schedule);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,6 +84,7 @@ class ScheduleController extends Controller
|
||||
$incidentTemplates = IncidentTemplate::all();
|
||||
|
||||
return View::make('dashboard.schedule.add')
|
||||
->withPageTitle(trans('dashboard.schedule.add.title').' - '.trans('dashboard.dashboard'))
|
||||
->withIncidentTemplates($incidentTemplates);
|
||||
}
|
||||
|
||||
@@ -123,6 +125,7 @@ class ScheduleController extends Controller
|
||||
$incidentTemplates = IncidentTemplate::all();
|
||||
|
||||
return View::make('dashboard.schedule.edit')
|
||||
->withPageTitle(trans('dashboard.schedule.edit.title').' - '.trans('dashboard.dashboard'))
|
||||
->withIncidentTemplates($incidentTemplates)
|
||||
->withSchedule($schedule);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user