Flesh out the incidents page

This commit is contained in:
James Brooks
2014-12-13 11:40:34 +00:00
parent 7fa5331cb6
commit b5657aa497
2 changed files with 24 additions and 7 deletions

View File

@@ -27,8 +27,11 @@ class DashboardController extends Controller {
* @return \Illuminate\View\View
*/
public function showIncidents() {
$incidents = Incident::all();
return View::make('dashboard.incidents')->with([
'pageTitle' => 'Incidents - Dashboard'
'pageTitle' => 'Incidents - Dashboard',
'incidents' => $incidents
]);
}