fix: share selected opportunity across simulator stages and land shortcuts

This commit is contained in:
2026-10-23 18:25:09 +02:00
parent bc84fbdb3e
commit 1afdfee8c0
17 changed files with 337 additions and 46 deletions
@@ -88,7 +88,8 @@ class InvestorPathController extends Controller
public function show(Request $request, string $id, InvestorPath $path): JsonResponse|Response
{
$data = $path->view($request->user(), $id);
$choice = $request->validate(['opportunity' => 'nullable|string|max:100'])['opportunity'] ?? null;
$data = $path->view($request->user(), $id, $choice);
return $request->expectsJson() ? response()->json($data) : Inertia::render('investor-path/show', $data);
}