You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
373 B
PHTML
20 lines
373 B
PHTML
3 years ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Models\Product;
|
||
|
use App\Models\Payroll;
|
||
|
use App\Models\Employee;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class DashboardController extends Controller
|
||
|
{
|
||
|
public function __invoke()
|
||
|
{
|
||
|
return inertia('Dashboard', [
|
||
|
'product' => Product::count(),
|
||
|
'employee' => Employee::count(),
|
||
|
]);
|
||
|
}
|
||
|
}
|