group(function () { Route::get('/', [AdminLoginController::class, 'create'])->name('login'); Route::post('/login', [AdminLoginController::class, 'store'])->middleware('throttle:6,1')->name('login.store'); }); Route::middleware(['auth', 'admin'])->group(function () { Route::get('/dashboard', DashboardController::class)->name('dashboard'); Route::post('/logout', [AdminLoginController::class, 'destroy'])->name('logout'); Route::get('/employees', [EmployeeController::class, 'index'])->name('employees.index'); Route::post('/employees', [EmployeeController::class, 'store'])->name('employees.store'); Route::get('/employees/{employee}', [EmployeeController::class, 'show'])->name('employees.show'); Route::get('/inventory', [InventoryController::class, 'index'])->name('inventory.index'); Route::post('/inventory/items', [InventoryController::class, 'storeItem'])->name('inventory.items.store'); Route::post('/inventory/restock', [InventoryController::class, 'restock'])->name('inventory.restock'); Route::get('/issues', [IssueController::class, 'index'])->name('issues.index'); Route::post('/issues', [IssueController::class, 'store'])->name('issues.store'); Route::get('/handovers', [HandoverController::class, 'index'])->name('handovers.index'); Route::get('/handovers/{employee}/create', [HandoverController::class, 'create'])->name('handovers.create'); Route::post('/handovers/{employee}', [HandoverController::class, 'store'])->name('handovers.store'); });