From 8c68a5f598790573542ebfbf72e362c5bc51e4ca Mon Sep 17 00:00:00 2001 From: BackwardsUser Date: Mon, 24 Mar 2025 23:48:24 -0400 Subject: [PATCH] Inventory Items sent to dashboard --- app/Http/Controllers/DashboardController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/DashboardController.php b/app/Http/Controllers/DashboardController.php index bf15e2e..316206e 100644 --- a/app/Http/Controllers/DashboardController.php +++ b/app/Http/Controllers/DashboardController.php @@ -2,12 +2,14 @@ namespace App\Http\Controllers; +use App\Models\Inventory; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Models\Item; class DashboardController extends Controller { + public $TPL; public function __construct() { $this->TPL = []; @@ -21,6 +23,7 @@ class DashboardController extends Controller $this->TPL["name"] = $user->name; $this->TPL["failed"] = null; $this->TPL["token"] = null; + $this->TPL["items"] = Inventory::get(); return view("dashboard", $this->TPL); }