commit compras2 2711
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-27 18:11:02 +02:00
parent e709d900d1
commit 930064269e
74 changed files with 7506 additions and 40 deletions
@@ -0,0 +1,24 @@
<?php
namespace App\Http\Controllers;
use App\Models\SupplyRecord;
use App\Models\User;
use App\Services\ImportReadiness;
use Illuminate\Http\Request;
use Inertia\Inertia;
use Symfony\Component\HttpFoundation\Response;
final class ImportReadinessController extends Controller
{
public function index(Request $request, SupplyRecord $import, ImportReadiness $service): Response
{
$actor = $request->user('web');
abort_unless($actor instanceof User, 403);
Inertia::encryptHistory();
$response = Inertia::render('supply/import-readiness', $service->workspace($actor, $import))->toResponse($request);
$response->headers->set('Cache-Control', 'private, no-store, max-age=0');
return $response;
}
}