Inventory Items sent to dashboard
This commit is contained in:
parent
bfaf20dd94
commit
8c68a5f598
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user