nicht nutzbarer stand, header menü ist nicht intertia initialisiert. aber schick. codex änderungen noch enthalten.

This commit is contained in:
Codex Agent
2025-10-06 13:46:29 +02:00
parent d70faf7a9d
commit 5ee510b05d
29 changed files with 493 additions and 784 deletions

View File

@@ -37,6 +37,12 @@ class MarketingController extends Controller
return $p->append(['features', 'limits']);
});
Log::info('Inertia render called for index', [
'url' => request()->url(),
'inertia_header' => request()->header('X-Inertia'),
'packages_count' => $packages->count()
]);
return Inertia::render('marketing/Home', compact('packages'));
}
@@ -440,13 +446,28 @@ class MarketingController extends Controller
return Inertia::render('marketing/Packages', compact('endcustomerPackages', 'resellerPackages'));
}
public function occasionsType($locale, $type)
public function occasionsType($type)
{
Log::info('OccasionsType hit', [
'type' => $type,
'locale' => app()->getLocale(),
'url' => request()->fullUrl(),
'route' => request()->route()->getName(),
'isInertia' => request()->header('X-Inertia')
]);
$validTypes = ['hochzeit', 'geburtstag', 'firmenevent'];
if (!in_array($type, $validTypes)) {
Log::warning('Invalid occasion type accessed', ['type' => $type]);
abort(404, 'Invalid occasion type');
}
Log::info('Inertia render called for occasionsType', [
'url' => request()->url(),
'inertia_header' => request()->header('X-Inertia'),
'type' => $type
]);
return Inertia::render('marketing/Occasions', ['type' => $type]);
}
}