Added laser stop approval route page
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
This commit is contained in:
@@ -17,42 +17,6 @@ Route::get('/', function () {
|
|||||||
return redirect('/admin');
|
return redirect('/admin');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Route::get('/admin', function () {
|
|
||||||
// return redirect('/admin/welcome');
|
|
||||||
// });
|
|
||||||
|
|
||||||
// Route::get('/password-reset/approve/{token}', function ($token) {
|
|
||||||
|
|
||||||
// // $workerId = cache()->pull("password-reset-approval-{$token}");
|
|
||||||
|
|
||||||
// $workerId = cache()->get("password-reset-approval-{$token}");
|
|
||||||
|
|
||||||
// if (! $workerId) {
|
|
||||||
// return response()->view('errors.password-reset-expired', [], 410);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// $worker = User::findOrFail($workerId);
|
|
||||||
|
|
||||||
|
|
||||||
// $resetToken = Password::broker()->createToken($worker);
|
|
||||||
|
|
||||||
|
|
||||||
// $resetUrl = URL::temporarySignedRoute(
|
|
||||||
// 'filament.admin.auth.password-reset.reset',
|
|
||||||
// Carbon::now()->addMinutes(60),
|
|
||||||
// [
|
|
||||||
// 'email' => $worker->email,
|
|
||||||
// 'token' => $resetToken,
|
|
||||||
// ]
|
|
||||||
// );
|
|
||||||
|
|
||||||
|
|
||||||
// return redirect()->to($resetUrl);
|
|
||||||
|
|
||||||
// })->middleware('signed')->name('password-reset.approve');
|
|
||||||
|
|
||||||
//..
|
|
||||||
|
|
||||||
Route::get('/sticker/preview/{path}', function ($path) {
|
Route::get('/sticker/preview/{path}', function ($path) {
|
||||||
$file = storage_path('app/' . $path);
|
$file = storage_path('app/' . $path);
|
||||||
|
|
||||||
@@ -101,6 +65,21 @@ Route::get('/approval/approve-success', function () {
|
|||||||
return view('approval.approve-success');
|
return view('approval.approve-success');
|
||||||
})->name('approval.approve.success');
|
})->name('approval.approve.success');
|
||||||
|
|
||||||
|
//..Laser Stop Approval
|
||||||
|
|
||||||
|
Route::get('/laser/stop/approve', [CharacteristicApprovalController::class, 'laserApproveForm'])
|
||||||
|
->name('laser.approve')
|
||||||
|
->middleware('signed');
|
||||||
|
|
||||||
|
Route::post('/laser/approve-save', [CharacteristicApprovalController::class, 'laserApproveSave'])
|
||||||
|
->name('laser.approve.save');
|
||||||
|
|
||||||
|
Route::get('/laser/stop/approval/approve-success', function () {
|
||||||
|
return view('approval.laser-approve-success');
|
||||||
|
})->name('approval.laser.approve.success');
|
||||||
|
|
||||||
|
//..
|
||||||
|
|
||||||
Route::get('/production-orders/print/{production_order}',
|
Route::get('/production-orders/print/{production_order}',
|
||||||
[ProductionOrderController::class, 'print']
|
[ProductionOrderController::class, 'print']
|
||||||
)->name('production-orders.print');
|
)->name('production-orders.print');
|
||||||
|
|||||||
Reference in New Issue
Block a user