Fix auth form errors and redirects: Add React keys/useEffects for error rendering and scroll, Inertia::location in controllers for SPA navigation, extend RegistrationTest and add E2E. Update docs (changes/2025-10-02-registration-fixes.md, prp/13-backend-authentication.md). Add new UI components (accordion, carousel, progress, table, tabs), marketing/legal pages (Blog, Kontakt, Datenschutz, etc.), fonts, user migration (remove_name), views/css/package updates, seeders/factories.
This commit is contained in:
@@ -22,6 +22,7 @@ use App\Models\Package;
|
||||
use App\Models\TenantPackage;
|
||||
use App\Models\PackagePurchase;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Inertia\Inertia;
|
||||
|
||||
class MarketingController extends Controller
|
||||
{
|
||||
@@ -38,7 +39,7 @@ class MarketingController extends Controller
|
||||
['id' => 'premium', 'name' => 'Premium', 'events' => 50, 'price' => 199, 'description' => '50 Events, Support & Custom, Alle Features'],
|
||||
];
|
||||
|
||||
return view('marketing', compact('packages'));
|
||||
return Inertia::render('marketing/Home', compact('packages'));
|
||||
}
|
||||
|
||||
public function contact(Request $request)
|
||||
@@ -57,6 +58,11 @@ class MarketingController extends Controller
|
||||
return redirect()->back()->with('success', 'Nachricht gesendet!');
|
||||
}
|
||||
|
||||
public function contactView()
|
||||
{
|
||||
return Inertia::render('marketing/Kontakt');
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle package purchase flow.
|
||||
*/
|
||||
@@ -341,7 +347,7 @@ class MarketingController extends Controller
|
||||
return redirect('/admin')->with('success', __('marketing.success.welcome'));
|
||||
}
|
||||
|
||||
return view('marketing.success', compact('packageId'));
|
||||
return Inertia::render('marketing/Success', compact('packageId'));
|
||||
}
|
||||
|
||||
public function blogIndex(Request $request)
|
||||
@@ -377,7 +383,7 @@ class MarketingController extends Controller
|
||||
|
||||
Log::info('Blog Index Debug - Final Posts', ['count' => $posts->count(), 'total' => $posts->total()]);
|
||||
|
||||
return view('marketing.blog', compact('posts'));
|
||||
return Inertia::render('marketing/Blog', compact('posts'));
|
||||
}
|
||||
|
||||
public function blogShow($slug)
|
||||
@@ -394,26 +400,28 @@ class MarketingController extends Controller
|
||||
->whereJsonContains("translations->locale->title->{$locale}", true)
|
||||
->firstOrFail();
|
||||
|
||||
return view('marketing.blog-show', compact('post'));
|
||||
return Inertia::render('marketing/BlogShow', compact('post'));
|
||||
}
|
||||
|
||||
public function packagesIndex()
|
||||
{
|
||||
|
||||
$endcustomerPackages = Package::where('type', 'endcustomer')->orderBy('price')->get();
|
||||
$resellerPackages = Package::where('type', 'reseller')->orderBy('price')->get();
|
||||
$endcustomerPackages = Package::where('type', 'endcustomer')->orderBy('price')->get()->map(function ($p) {
|
||||
return $p->append(['features', 'limits']);
|
||||
});
|
||||
$resellerPackages = Package::where('type', 'reseller')->orderBy('price')->get()->map(function ($p) {
|
||||
return $p->append(['features', 'limits']);
|
||||
});
|
||||
|
||||
return view('marketing.packages', compact('endcustomerPackages', 'resellerPackages'));
|
||||
return Inertia::render('marketing/Packages', compact('endcustomerPackages', 'resellerPackages'));
|
||||
}
|
||||
|
||||
public function occasionsType($locale, $type)
|
||||
{
|
||||
|
||||
$validTypes = ['weddings', 'birthdays', 'corporate-events', 'family-celebrations'];
|
||||
if (!in_array($type, $validTypes)) {
|
||||
abort(404, 'Invalid occasion type');
|
||||
}
|
||||
|
||||
return view('marketing.occasions', ['type' => $type]);
|
||||
return Inertia::render('marketing/Occasions', ['type' => $type]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user