Added all balde files related to production order screen and routes and controllers
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled

This commit is contained in:
dhanabalan
2026-04-30 15:03:43 +05:30
parent 82e3980379
commit a3fb3c38f5
4 changed files with 229 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\CharacteristicApprovalController;
use App\Http\Controllers\ProductionOrderController;
// use App\Http\Controllers\FileUploadController;
use App\Models\EquipmentMaster;
use App\Models\User;
@@ -52,6 +53,10 @@ Route::get('/approval/approve-success', function () {
return view('approval.approve-success');
})->name('approval.approve.success');
Route::get('/production-orders/print/{production_order}',
[ProductionOrderController::class, 'print']
)->name('production-orders.print');
// Route::get('/characteristic/approve', [CharacteristicApprovalController::class, 'approve'])
// ->name('characteristic.approve')
// ->middleware('signed');
@@ -67,6 +72,7 @@ Route::get('/approval/approve-success', function () {
// ->middleware('signed');
// routes/web.php
Route::post('/save-serials-to-session', function (Request $request) {
session(['serial_numbers' => $request->serial_numbers]);
@@ -86,6 +92,16 @@ Route::get('/part-validation-image/{filename}', function ($filename) {
return response()->file($path);
})->name('part.validation.image');
Route::get('/workflow-image/{filename}', function ($filename) {
$path = storage_path("app/private/uploads/LaserDocs/{$filename}");
if (! file_exists($path)) {
abort(404, 'Image not found');
}
return response()->file($path);
})->name('workflow.image');
// web.php
Route::post('/temp-upload', function (Request $request) {
if (! $request->hasFile('photo')) {