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
PHP
20 lines
373 B
PHP
<?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(),
|
|
]);
|
|
}
|
|
}
|