feat: setup Docker production stack, Vite asset compilation, and resolve audit findings (P1/P2)

This commit is contained in:
Wahyudin
2026-10-15 13:53:52 +07:00
parent 9c00515a73
commit 38c70f9413
65 changed files with 13315 additions and 933 deletions
@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers\Employee;
use App\Http\Controllers\Controller;
use App\Models\Vehicle;
use Illuminate\Http\Request;
use Illuminate\View\View;
class DashboardController extends Controller
{
/**
* Tampilkan halaman dashboard utama karyawan / operator.
*/
public function index(): View
{
$employee = auth()->user()->employee;
$totalSupport = Vehicle::unitSupports()->count();
$totalLv = Vehicle::lightVehicles()->count();
return view('employee.dashboard', compact('employee', 'totalSupport', 'totalLv'));
}
}