diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index 61acf172..0ad7497d 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -14,8 +14,11 @@ class DashboardController extends Controller { * @return \Illuminate\View\View */ public function showComponents() { + $components = Component::all(); + return View::make('dashboard.components')->with([ - 'pageTitle' => 'Components - Dashboard' + 'pageTitle' => 'Components - Dashboard', + 'components' => $components ]); } diff --git a/app/views/dashboard/components.blade.php b/app/views/dashboard/components.blade.php index 4be36cd0..d420bfa7 100644 --- a/app/views/dashboard/components.blade.php +++ b/app/views/dashboard/components.blade.php @@ -9,14 +9,38 @@
-
Foo
-
Bar
-
Baz
+
+
+
+

Components

+
+ +
+
+
    + @foreach($components as $component) +
  • +
    +
    + {{ $component->name }} +
    +
    + +
    +
    +
  • + @endforeach +
+
+