You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
582 B
22 lines
582 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class HomeController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$data = [
|
||
|
'reminder' => \App\Models\asset_status::whereNull('enter_at')->count(),
|
||
|
'jumlahAsset' => \App\Models\m_asset::count(),
|
||
|
'jumlahPeminjaman' => \App\Models\asset_status::count(),
|
||
|
'jumlahPengembalian' => \App\Models\asset_status::whereNotNull('enter_at')->count(),
|
||
|
'active' => 'menu-dashboard',
|
||
|
];
|
||
|
|
||
|
return view('dashboard.index', $data);
|
||
|
}
|
||
|
}
|