Marketing packages now use localized name/description data plus seeded placeholder-

driven breakdown tables, with frontend/cards/dialog updated accordingly (database/
  migrations/2025_10_17_000001_add_description_table_to_packages.php, database/
  migrations/2025_10_17_000002_add_translation_columns_to_packages.php, database/seeders/PackageSeeder.php, app/
  Http/Controllers/MarketingController.php, resources/js/pages/marketing/Packages.tsx).
  Filament Package resource gains locale tabs, markdown editor, numeric/toggle inputs, and simplified feature
  management (app/Filament/Resources/PackageResource.php, app/Filament/Resources/PackageResource/Pages/
  CreatePackage.php, .../EditPackage.php).
  Legal pages now render markdown-backed content inside the main layout via a new controller/view route setup and
  updated footer links (app/Http/Controllers/LegalPageController.php, routes/web.php, resources/views/partials/
  footer.blade.php, resources/js/pages/legal/Show.tsx, remove old static pages).
  Translation files and shared assets updated to cover new marketing/legal strings and styling tweaks (public/
  lang/*/marketing.json, resources/lang/*/marketing.php, resources/css/app.css, resources/js/admin/components/
  LanguageSwitcher.tsx).
This commit is contained in:
Codex Agent
2025-10-17 21:20:54 +02:00
parent 25e8f0511b
commit 48a2974152
30 changed files with 1702 additions and 711 deletions

View File

@@ -1,8 +1,9 @@
<?php
use App\Http\Controllers\MarketingController;
use App\Http\Controllers\CheckoutController;
use App\Http\Controllers\LocaleController;
use App\Http\Controllers\LegalPageController;
use App\Http\Controllers\MarketingController;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
@@ -17,13 +18,15 @@ Route::get('/contact', [MarketingController::class, 'contactView'])->name('conta
Route::post('/contact', [MarketingController::class, 'contact'])->name('contact.submit');
// Legal pages
Route::get('/datenschutz', function () {
return Inertia::render('legal/Datenschutz');
})->name('datenschutz');
Route::get('/impressum', function () {
return Inertia::render('legal/Impressum');
})->name('impressum');
Route::get('/impressum', [LegalPageController::class, 'show'])
->name('impressum')
->defaults('slug', 'impressum');
Route::get('/datenschutz', [LegalPageController::class, 'show'])
->name('datenschutz')
->defaults('slug', 'datenschutz');
Route::get('/agb', [LegalPageController::class, 'show'])
->name('agb')
->defaults('slug', 'agb');
Route::get('/kontakt', function () {
return Inertia::render('marketing/Kontakt');