diff --git a/app/controllers/HomeController.php b/app/controllers/HomeController.php index b09daa15..f325c063 100644 --- a/app/controllers/HomeController.php +++ b/app/controllers/HomeController.php @@ -6,6 +6,6 @@ * @return View */ public function showIndex() { - return View::make('index'); + return View::make('index', ['components' => Component::all()]); } } diff --git a/app/views/index.blade.php b/app/views/index.blade.php index 0e12f0ac..85ab1be3 100644 --- a/app/views/index.blade.php +++ b/app/views/index.blade.php @@ -7,9 +7,10 @@

You're logged in. This will be a link to the Dashboard.

@endif + @if(count($components) > 0) + @endif @for($i=0; $i <= 7; $i++) @include('incident', array('i', $i))