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:
@@ -4,22 +4,26 @@ namespace App\Filament\Resources;
|
|||||||
|
|
||||||
use App\Filament\Resources\PackageResource\Pages;
|
use App\Filament\Resources\PackageResource\Pages;
|
||||||
use App\Models\Package;
|
use App\Models\Package;
|
||||||
use Filament\Forms;
|
|
||||||
use Filament\Resources\Resource;
|
|
||||||
use Filament\Tables;
|
|
||||||
use Filament\Tables\Table;
|
|
||||||
use Filament\Actions\Action;
|
|
||||||
use Filament\Forms\Components\TextInput;
|
|
||||||
use Filament\Forms\Components\Select;
|
|
||||||
use Filament\Forms\Components\Toggle;
|
|
||||||
use Filament\Forms\Components\Repeater;
|
|
||||||
use Filament\Schemas\Schema;
|
|
||||||
use Filament\Tables\Columns\TextColumn;
|
|
||||||
use Filament\Tables\Columns\IconColumn;
|
|
||||||
use Filament\Actions\EditAction;
|
|
||||||
use Filament\Actions\DeleteAction;
|
|
||||||
use Filament\Actions\BulkActionGroup;
|
use Filament\Actions\BulkActionGroup;
|
||||||
|
use Filament\Actions\DeleteAction;
|
||||||
use Filament\Actions\DeleteBulkAction;
|
use Filament\Actions\DeleteBulkAction;
|
||||||
|
use Filament\Actions\EditAction;
|
||||||
|
use Filament\Actions\ViewAction;
|
||||||
|
use Filament\Forms\Components\CheckboxList;
|
||||||
|
use Filament\Forms\Components\MarkdownEditor;
|
||||||
|
use Filament\Forms\Components\Repeater;
|
||||||
|
use Filament\Schemas\Components\Section;
|
||||||
|
use Filament\Forms\Components\Select;
|
||||||
|
use Filament\Schemas\Components\Tabs as SchemaTabs;
|
||||||
|
use Filament\Schemas\Components\Tabs\Tab as SchemaTab;
|
||||||
|
use Filament\Forms\Components\TextInput;
|
||||||
|
use Filament\Forms\Components\Toggle;
|
||||||
|
use Filament\Resources\Resource;
|
||||||
|
use Filament\Schemas\Schema;
|
||||||
|
use Filament\Tables;
|
||||||
|
use Filament\Tables\Columns\BadgeColumn;
|
||||||
|
use Filament\Tables\Columns\TextColumn;
|
||||||
|
use Filament\Tables\Table;
|
||||||
use UnitEnum;
|
use UnitEnum;
|
||||||
use BackedEnum;
|
use BackedEnum;
|
||||||
|
|
||||||
@@ -35,190 +39,141 @@ class PackageResource extends Resource
|
|||||||
|
|
||||||
public static function form(Schema $schema): Schema
|
public static function form(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
|
$featureOptions = static::featureLabelMap();
|
||||||
|
|
||||||
return $schema->schema([
|
return $schema->schema([
|
||||||
TextInput::make('name')
|
SchemaTabs::make('translations')
|
||||||
->label('Name')
|
->columnSpanFull()
|
||||||
->required()
|
->tabs([
|
||||||
->maxLength(255),
|
SchemaTab::make('Deutsch')
|
||||||
Select::make('type')
|
->schema([
|
||||||
->label('Type')
|
TextInput::make('name_translations.de')
|
||||||
->options([
|
->label('Name (DE)')
|
||||||
'endcustomer' => 'Endcustomer',
|
->required()
|
||||||
'reseller' => 'Reseller',
|
->maxLength(255),
|
||||||
])
|
MarkdownEditor::make('description_translations.de')
|
||||||
->required(),
|
->label('Beschreibung (DE)')
|
||||||
TextInput::make('price')
|
->required()
|
||||||
->label('Price')
|
->columnSpanFull(),
|
||||||
->prefix('€')
|
]),
|
||||||
->numeric()
|
SchemaTab::make('English')
|
||||||
->step(0.01)
|
->schema([
|
||||||
->required()
|
TextInput::make('name_translations.en')
|
||||||
->default(0),
|
->label('Name (EN)')
|
||||||
TextInput::make('max_photos')
|
->required()
|
||||||
->label('Max Photos')
|
->maxLength(255),
|
||||||
->numeric()
|
MarkdownEditor::make('description_translations.en')
|
||||||
->nullable(),
|
->label('Description (EN)')
|
||||||
TextInput::make('max_guests')
|
->required()
|
||||||
->label('Max Guests')
|
->columnSpanFull(),
|
||||||
->numeric()
|
]),
|
||||||
->nullable(),
|
]),
|
||||||
TextInput::make('gallery_days')
|
Section::make('Allgemeine Einstellungen')
|
||||||
->label('Gallery Days')
|
->columns(3)
|
||||||
->numeric()
|
->schema([
|
||||||
->nullable(),
|
TextInput::make('slug')
|
||||||
TextInput::make('max_tasks')
|
->label('Slug')
|
||||||
->label('Max Tasks')
|
->required()
|
||||||
->numeric()
|
->maxLength(191)
|
||||||
->nullable(),
|
->unique(ignoreRecord: true),
|
||||||
Toggle::make('watermark_allowed')
|
Select::make('type')
|
||||||
->label('Watermark Allowed')
|
->label('Paket-Typ')
|
||||||
->default(true),
|
->options([
|
||||||
Toggle::make('branding_allowed')
|
'endcustomer' => 'Endkunde',
|
||||||
->label('Branding Allowed')
|
'reseller' => 'Reseller',
|
||||||
->default(false),
|
])
|
||||||
TextInput::make('max_events_per_year')
|
->required(),
|
||||||
->label('Max Events per Year')
|
TextInput::make('price')
|
||||||
->numeric()
|
->label('Preis')
|
||||||
->nullable(),
|
->numeric()
|
||||||
Repeater::make('features')
|
->step(0.01)
|
||||||
->label('Features')
|
->prefix('€')
|
||||||
->schema([
|
->required(),
|
||||||
TextInput::make('key')
|
TextInput::make('max_photos')
|
||||||
->label('Feature Key'),
|
->label('Max. Fotos')
|
||||||
TextInput::make('value')
|
->numeric()
|
||||||
->label('Feature Value'),
|
->minValue(0)
|
||||||
])
|
->nullable(),
|
||||||
->columns(2)
|
TextInput::make('max_guests')
|
||||||
->defaultItems(0),
|
->label('Max. Gäste')
|
||||||
]);
|
->numeric()
|
||||||
}
|
->minValue(0)
|
||||||
|
->nullable(),
|
||||||
|
TextInput::make('gallery_days')
|
||||||
public static function featuresToRepeaterItems(mixed $features): array
|
->label('Galeriedauer (Tage)')
|
||||||
{
|
->numeric()
|
||||||
if (is_string($features)) {
|
->minValue(0)
|
||||||
$decoded = json_decode($features, true);
|
->nullable(),
|
||||||
|
TextInput::make('max_tasks')
|
||||||
if (is_string($decoded)) {
|
->label('Max. Fotoaufgaben')
|
||||||
$decoded = json_decode($decoded, true);
|
->numeric()
|
||||||
}
|
->minValue(0)
|
||||||
|
->nullable(),
|
||||||
$features = json_last_error() === JSON_ERROR_NONE ? $decoded : null;
|
TextInput::make('max_events_per_year')
|
||||||
}
|
->label('Events pro Jahr')
|
||||||
|
->numeric()
|
||||||
if ($features === null) {
|
->minValue(0)
|
||||||
return [];
|
->nullable()
|
||||||
}
|
->visible(fn ($get) => $get('type') === 'reseller'),
|
||||||
|
Toggle::make('watermark_allowed')
|
||||||
if (! is_array($features)) {
|
->label('Wasserzeichen erlaubt')
|
||||||
return [];
|
->default(true),
|
||||||
}
|
Toggle::make('branding_allowed')
|
||||||
|
->label('Eigenes Branding erlaubt')
|
||||||
if (! array_is_list($features)) {
|
->default(false),
|
||||||
return collect($features)
|
]),
|
||||||
->map(function ($value, $key) {
|
Section::make('Features & Kennzahlen')
|
||||||
return [
|
->columns(1)
|
||||||
'key' => (string) $key,
|
->schema([
|
||||||
'value' => is_bool($value) ? ($value ? 'true' : 'false') : (string) $value,
|
CheckboxList::make('features')
|
||||||
];
|
->label('Aktive Features')
|
||||||
})
|
->options($featureOptions)
|
||||||
->values()
|
->columns(2)
|
||||||
->all();
|
->default([]),
|
||||||
}
|
Repeater::make('description_table')
|
||||||
|
->label('Kenndaten')
|
||||||
return collect($features)
|
->schema([
|
||||||
->map(function ($item) {
|
TextInput::make('title')
|
||||||
if (is_array($item)) {
|
->label('Titel')
|
||||||
return [
|
->maxLength(255),
|
||||||
'key' => (string) ($item['key'] ?? ''),
|
TextInput::make('value')
|
||||||
'value' => (string) ($item['value'] ?? ''),
|
->label('Wert / Beschreibung')
|
||||||
];
|
->maxLength(255),
|
||||||
}
|
])
|
||||||
|
->addActionLabel('Eintrag hinzufügen')
|
||||||
return [
|
->reorderable()
|
||||||
'key' => (string) $item,
|
->columnSpanFull()
|
||||||
'value' => 'true',
|
->default([]),
|
||||||
];
|
]),
|
||||||
})
|
]);
|
||||||
->values()
|
|
||||||
->all();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function featuresFromRepeaterItems(mixed $items): array
|
|
||||||
{
|
|
||||||
if (! is_array($items)) {
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$features = [];
|
|
||||||
|
|
||||||
foreach ($items as $item) {
|
|
||||||
if (! is_array($item)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$key = isset($item['key']) ? trim((string) $item['key']) : '';
|
|
||||||
|
|
||||||
if ($key === '') {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$value = $item['value'] ?? true;
|
|
||||||
|
|
||||||
if (is_string($value)) {
|
|
||||||
$normalized = strtolower(trim($value));
|
|
||||||
|
|
||||||
if (in_array($normalized, ['1', 'true', 'yes', 'on'], true)) {
|
|
||||||
$value = true;
|
|
||||||
} elseif (in_array($normalized, ['0', 'false', 'no', 'off'], true)) {
|
|
||||||
$value = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (is_array($value)) {
|
|
||||||
$value = $value['value'] ?? $value['enabled'] ?? true;
|
|
||||||
}
|
|
||||||
|
|
||||||
$features[$key] = (bool) $value;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $features;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function formatFeaturesForDisplay(mixed $features): string
|
public static function formatFeaturesForDisplay(mixed $features): string
|
||||||
{
|
{
|
||||||
$map = $features;
|
if (is_string($features)) {
|
||||||
|
$decoded = json_decode($features, true);
|
||||||
if (! is_array($map)) {
|
if (json_last_error() === JSON_ERROR_NONE) {
|
||||||
if (is_string($map)) {
|
$features = $decoded;
|
||||||
$decoded = json_decode($map, true);
|
|
||||||
|
|
||||||
if (is_string($decoded)) {
|
|
||||||
$decoded = json_decode($decoded, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
$map = json_last_error() === JSON_ERROR_NONE ? $decoded : [];
|
|
||||||
} else {
|
|
||||||
$map = [];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! array_is_list($map)) {
|
if (! is_array($features)) {
|
||||||
return collect($map)
|
return '';
|
||||||
->filter(fn ($value) => (bool) $value)
|
}
|
||||||
->keys()
|
|
||||||
|
$labels = static::featureLabelMap();
|
||||||
|
|
||||||
|
if (array_is_list($features)) {
|
||||||
|
return collect($features)
|
||||||
|
->filter(fn ($value) => is_string($value) && $value !== '')
|
||||||
|
->map(fn ($value) => $labels[$value] ?? $value)
|
||||||
->implode(', ');
|
->implode(', ');
|
||||||
}
|
}
|
||||||
|
|
||||||
return collect($map)
|
return collect($features)
|
||||||
->map(function ($item) {
|
->filter(fn ($value) => (bool) $value)
|
||||||
if (is_array($item)) {
|
->keys()
|
||||||
return (string) ($item['key'] ?? '');
|
->map(fn ($value) => $labels[$value] ?? $value)
|
||||||
}
|
|
||||||
|
|
||||||
return (string) $item;
|
|
||||||
})
|
|
||||||
->filter()
|
|
||||||
->implode(', ');
|
->implode(', ');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,35 +181,45 @@ class PackageResource extends Resource
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('name')
|
TextColumn::make('name_translations.de')
|
||||||
->label('Name')
|
->label('Name (DE)')
|
||||||
->searchable()
|
->searchable()
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('type')
|
TextColumn::make('name_translations.en')
|
||||||
->label('Type')
|
->label('Name (EN)')
|
||||||
->badge()
|
->toggleable(isToggledHiddenByDefault: true),
|
||||||
->color(fn (string $state): string => match ($state) {
|
BadgeColumn::make('type')
|
||||||
'endcustomer' => 'info',
|
->label('Typ')
|
||||||
'reseller' => 'warning',
|
->colors([
|
||||||
default => 'gray',
|
'info' => 'endcustomer',
|
||||||
}),
|
'warning' => 'reseller',
|
||||||
|
]),
|
||||||
TextColumn::make('price')
|
TextColumn::make('price')
|
||||||
->label('Price')
|
->label('Preis')
|
||||||
->money('EUR')
|
->money('EUR')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
IconColumn::make('max_photos')
|
TextColumn::make('max_photos')
|
||||||
->label('Max Photos')
|
->label('Fotos')
|
||||||
->icon('heroicon-o-photo')
|
->sortable(),
|
||||||
->color('primary'),
|
TextColumn::make('max_guests')
|
||||||
|
->label('Gäste')
|
||||||
|
->sortable()
|
||||||
|
->toggleable(isToggledHiddenByDefault: true),
|
||||||
TextColumn::make('features')
|
TextColumn::make('features')
|
||||||
->label('Features')
|
->label('Features')
|
||||||
->formatStateUsing(fn ($state) => static::formatFeaturesForDisplay($state))
|
->wrap()
|
||||||
->limit(50),
|
->formatStateUsing(fn ($state) => static::formatFeaturesForDisplay($state)),
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
//
|
Tables\Filters\SelectFilter::make('type')
|
||||||
|
->label('Typ')
|
||||||
|
->options([
|
||||||
|
'endcustomer' => 'Endkunde',
|
||||||
|
'reseller' => 'Reseller',
|
||||||
|
]),
|
||||||
])
|
])
|
||||||
->actions([
|
->actions([
|
||||||
|
ViewAction::make(),
|
||||||
EditAction::make(),
|
EditAction::make(),
|
||||||
DeleteAction::make(),
|
DeleteAction::make(),
|
||||||
])
|
])
|
||||||
@@ -265,13 +230,6 @@ class PackageResource extends Resource
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getRelations(): array
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
//
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function getPages(): array
|
public static function getPages(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
@@ -280,4 +238,19 @@ class PackageResource extends Resource
|
|||||||
'edit' => Pages\EditPackage::route('/{record}/edit'),
|
'edit' => Pages\EditPackage::route('/{record}/edit'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static function featureLabelMap(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'basic_uploads' => 'Basis-Uploads',
|
||||||
|
'unlimited_sharing' => 'Unbegrenztes Teilen',
|
||||||
|
'no_watermark' => 'Kein Wasserzeichen',
|
||||||
|
'custom_branding' => 'Eigenes Branding',
|
||||||
|
'custom_tasks' => 'Eigene Aufgaben',
|
||||||
|
'advanced_analytics' => 'Erweiterte Analytics',
|
||||||
|
'advanced_reporting' => 'Erweiterte Reports',
|
||||||
|
'live_slideshow' => 'Live-Slideshow',
|
||||||
|
'priority_support' => 'Priorisierter Support',
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,12 +8,4 @@ use Filament\Resources\Pages\CreateRecord;
|
|||||||
class CreatePackage extends CreateRecord
|
class CreatePackage extends CreateRecord
|
||||||
{
|
{
|
||||||
protected static string $resource = PackageResource::class;
|
protected static string $resource = PackageResource::class;
|
||||||
|
|
||||||
protected function mutateFormDataBeforeCreate(array $data): array
|
|
||||||
{
|
|
||||||
$data['features'] = PackageResource::featuresFromRepeaterItems($data['features'] ?? []);
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,19 +17,4 @@ class EditPackage extends EditRecord
|
|||||||
Actions\DeleteAction::make(),
|
Actions\DeleteAction::make(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function mutateFormDataBeforeFill(array $data): array
|
|
||||||
{
|
|
||||||
$data['features'] = PackageResource::featuresToRepeaterItems($data['features'] ?? null);
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function mutateFormDataBeforeSave(array $data): array
|
|
||||||
{
|
|
||||||
$data['features'] = PackageResource::featuresFromRepeaterItems($data['features'] ?? []);
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
90
app/Http/Controllers/LegalPageController.php
Normal file
90
app/Http/Controllers/LegalPageController.php
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\LegalPage;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
use Inertia\Inertia;
|
||||||
|
use Inertia\Response;
|
||||||
|
use League\CommonMark\Environment\Environment;
|
||||||
|
use League\CommonMark\Extension\Autolink\AutolinkExtension;
|
||||||
|
use League\CommonMark\Extension\CommonMark\CommonMarkCoreExtension;
|
||||||
|
use League\CommonMark\Extension\Strikethrough\StrikethroughExtension;
|
||||||
|
use League\CommonMark\Extension\Table\TableExtension;
|
||||||
|
use League\CommonMark\Extension\TaskList\TaskListExtension;
|
||||||
|
use League\CommonMark\MarkdownConverter;
|
||||||
|
|
||||||
|
class LegalPageController extends Controller
|
||||||
|
{
|
||||||
|
public function show(?string $slug = null): Response
|
||||||
|
{
|
||||||
|
$resolvedSlug = $this->resolveSlug($slug);
|
||||||
|
|
||||||
|
$page = LegalPage::query()
|
||||||
|
->where('slug', $resolvedSlug)
|
||||||
|
->where('is_published', true)
|
||||||
|
->orderByDesc('version')
|
||||||
|
->first();
|
||||||
|
|
||||||
|
if (! $page) {
|
||||||
|
abort(404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$locale = app()->getLocale();
|
||||||
|
$title = $page->title[$locale]
|
||||||
|
?? $page->title[$page->locale_fallback]
|
||||||
|
?? $page->title['de']
|
||||||
|
?? $page->title['en']
|
||||||
|
?? Str::title($resolvedSlug);
|
||||||
|
|
||||||
|
$bodyMarkdown = $page->body_markdown[$locale]
|
||||||
|
?? $page->body_markdown[$page->locale_fallback]
|
||||||
|
?? reset($page->body_markdown)
|
||||||
|
?? '';
|
||||||
|
|
||||||
|
$effectiveFrom = optional($page->effective_from);
|
||||||
|
|
||||||
|
return Inertia::render('legal/Show', [
|
||||||
|
'seoTitle' => $title . ' - ' . config('app.name', 'Fotospiel'),
|
||||||
|
'title' => $title,
|
||||||
|
'content' => $this->convertMarkdownToHtml($bodyMarkdown),
|
||||||
|
'effectiveFrom' => $effectiveFrom ? $effectiveFrom->toDateString() : null,
|
||||||
|
'effectiveFromLabel' => $effectiveFrom
|
||||||
|
? __('legal.effective_from', ['date' => $effectiveFrom->translatedFormat('d. F Y')])
|
||||||
|
: null,
|
||||||
|
'versionLabel' => __('legal.version', ['version' => $page->version]),
|
||||||
|
'slug' => $resolvedSlug,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function resolveSlug(?string $slug): string
|
||||||
|
{
|
||||||
|
$slug = strtolower($slug ?? '');
|
||||||
|
|
||||||
|
$aliases = [
|
||||||
|
'imprint' => 'impressum',
|
||||||
|
'privacy' => 'datenschutz',
|
||||||
|
'terms' => 'agb',
|
||||||
|
];
|
||||||
|
|
||||||
|
return $aliases[$slug] ?? $slug ?: 'impressum';
|
||||||
|
}
|
||||||
|
|
||||||
|
private function convertMarkdownToHtml(string $markdown): string
|
||||||
|
{
|
||||||
|
$environment = new Environment([
|
||||||
|
'html_input' => 'strip',
|
||||||
|
'allow_unsafe_links' => false,
|
||||||
|
]);
|
||||||
|
|
||||||
|
$environment->addExtension(new CommonMarkCoreExtension());
|
||||||
|
$environment->addExtension(new TableExtension());
|
||||||
|
$environment->addExtension(new AutolinkExtension());
|
||||||
|
$environment->addExtension(new StrikethroughExtension());
|
||||||
|
$environment->addExtension(new TaskListExtension());
|
||||||
|
|
||||||
|
$converter = new MarkdownConverter($environment);
|
||||||
|
|
||||||
|
return trim((string) $converter->convert($markdown));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -480,14 +480,22 @@ class MarketingController extends Controller
|
|||||||
|
|
||||||
public function packagesIndex()
|
public function packagesIndex()
|
||||||
{
|
{
|
||||||
$endcustomerPackages = Package::where('type', 'endcustomer')->orderBy('price')->get()->map(function ($p) {
|
$endcustomerPackages = Package::where('type', 'endcustomer')
|
||||||
return $p->append(['features', 'limits']);
|
->orderBy('price')
|
||||||
});
|
->get()
|
||||||
$resellerPackages = Package::where('type', 'reseller')->orderBy('price')->get()->map(function ($p) {
|
->map(fn (Package $package) => $this->presentPackage($package))
|
||||||
return $p->append(['features', 'limits']);
|
->values();
|
||||||
});
|
|
||||||
|
|
||||||
return Inertia::render('marketing/Packages', compact('endcustomerPackages', 'resellerPackages'));
|
$resellerPackages = Package::where('type', 'reseller')
|
||||||
|
->orderBy('price')
|
||||||
|
->get()
|
||||||
|
->map(fn (Package $package) => $this->presentPackage($package))
|
||||||
|
->values();
|
||||||
|
|
||||||
|
return Inertia::render('marketing/Packages', [
|
||||||
|
'endcustomerPackages' => $endcustomerPackages,
|
||||||
|
'resellerPackages' => $resellerPackages,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function occasionsType($type)
|
public function occasionsType($type)
|
||||||
@@ -508,5 +516,170 @@ class MarketingController extends Controller
|
|||||||
|
|
||||||
return Inertia::render('marketing/Occasions', ['type' => $type]);
|
return Inertia::render('marketing/Occasions', ['type' => $type]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
private function presentPackage(Package $package): array
|
||||||
|
{
|
||||||
|
$package->append('limits');
|
||||||
|
|
||||||
|
$packageArray = $package->toArray();
|
||||||
|
$features = $packageArray['features'] ?? [];
|
||||||
|
$features = $this->normaliseFeatures($features);
|
||||||
|
|
||||||
|
$locale = app()->getLocale();
|
||||||
|
$name = $this->resolveTranslation($package->name_translations ?? null, $package->name ?? '', $locale);
|
||||||
|
$descriptionTemplate = $this->resolveTranslation($package->description_translations ?? null, $package->description ?? '', $locale);
|
||||||
|
|
||||||
|
$replacements = $this->buildPlaceholderReplacements($package);
|
||||||
|
|
||||||
|
$description = trim($this->applyPlaceholders($descriptionTemplate, $replacements));
|
||||||
|
|
||||||
|
$table = $package->description_table ?? [];
|
||||||
|
if (is_string($table)) {
|
||||||
|
$decoded = json_decode($table, true);
|
||||||
|
$table = is_array($decoded) ? $decoded : [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$table = array_map(function (array $row) use ($replacements) {
|
||||||
|
return [
|
||||||
|
'title' => trim($this->applyPlaceholders($row['title'] ?? '', $replacements)),
|
||||||
|
'value' => trim($this->applyPlaceholders($row['value'] ?? '', $replacements)),
|
||||||
|
];
|
||||||
|
}, $table);
|
||||||
|
$table = array_values($table);
|
||||||
|
|
||||||
|
$galleryDuration = $replacements['{{gallery_duration}}'] ?? null;
|
||||||
|
|
||||||
|
return [
|
||||||
|
'id' => $package->id,
|
||||||
|
'name' => $name,
|
||||||
|
'slug' => $package->slug,
|
||||||
|
'type' => $package->type,
|
||||||
|
'price' => $package->price,
|
||||||
|
'description' => $description,
|
||||||
|
'description_breakdown' => $table,
|
||||||
|
'gallery_duration_label' => $galleryDuration,
|
||||||
|
'events' => $package->type === 'endcustomer' ? 1 : ($package->max_events_per_year ?? null),
|
||||||
|
'features' => $features,
|
||||||
|
'limits' => $package->limits,
|
||||||
|
'max_photos' => $package->max_photos,
|
||||||
|
'max_guests' => $package->max_guests,
|
||||||
|
'max_tasks' => $package->max_tasks,
|
||||||
|
'gallery_days' => $package->gallery_days,
|
||||||
|
'max_events_per_year' => $package->max_events_per_year,
|
||||||
|
'watermark_allowed' => (bool) $package->watermark_allowed,
|
||||||
|
'branding_allowed' => (bool) $package->branding_allowed,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
private function buildPlaceholderReplacements(Package $package): array
|
||||||
|
{
|
||||||
|
$locale = app()->getLocale();
|
||||||
|
|
||||||
|
return [
|
||||||
|
'{{max_photos}}' => $this->formatCount($package->max_photos, [
|
||||||
|
'de' => 'unbegrenzt viele',
|
||||||
|
'en' => 'unlimited',
|
||||||
|
]),
|
||||||
|
'{{max_guests}}' => $this->formatCount($package->max_guests, [
|
||||||
|
'de' => 'beliebig viele',
|
||||||
|
'en' => 'any number of',
|
||||||
|
]),
|
||||||
|
'{{max_tasks}}' => $this->formatCount($package->max_tasks, [
|
||||||
|
'de' => 'individuelle',
|
||||||
|
'en' => 'custom',
|
||||||
|
]),
|
||||||
|
'{{max_events_per_year}}' => $this->formatCount($package->max_events_per_year, [
|
||||||
|
'de' => 'unbegrenzte',
|
||||||
|
'en' => 'unlimited',
|
||||||
|
]),
|
||||||
|
'{{gallery_duration}}' => $this->formatGalleryDuration($package->gallery_days),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
private function applyPlaceholders(string $template, array $replacements): string
|
||||||
|
{
|
||||||
|
if ($template === '') {
|
||||||
|
return $template;
|
||||||
|
}
|
||||||
|
|
||||||
|
return str_replace(array_keys($replacements), array_values($replacements), $template);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function formatCount(?int $value, array $fallbackByLocale): string
|
||||||
|
{
|
||||||
|
$locale = app()->getLocale();
|
||||||
|
|
||||||
|
if ($value === null) {
|
||||||
|
return $fallbackByLocale[$locale] ?? reset($fallbackByLocale) ?? '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$decimal = $locale === 'de' ? ',' : '.';
|
||||||
|
$thousands = $locale === 'de' ? '.' : ',';
|
||||||
|
|
||||||
|
return number_format($value, 0, $decimal, $thousands);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function formatGalleryDuration(?int $days): string
|
||||||
|
{
|
||||||
|
$locale = app()->getLocale();
|
||||||
|
|
||||||
|
if (!$days || $days <= 0) {
|
||||||
|
return $locale === 'en' ? 'permanent' : 'dauerhaft';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($days % 30 === 0) {
|
||||||
|
$months = (int) ($days / 30);
|
||||||
|
if ($locale === 'en') {
|
||||||
|
return $months === 1 ? '1 month' : $months . ' months';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $months === 1 ? '1 Monat' : $months . ' Monate';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $locale === 'en' ? $days . ' days' : $days . ' Tage';
|
||||||
|
}
|
||||||
|
|
||||||
|
private function normaliseFeatures(mixed $features): array
|
||||||
|
{
|
||||||
|
if (is_string($features)) {
|
||||||
|
$decoded = json_decode($features, true);
|
||||||
|
if (json_last_error() === JSON_ERROR_NONE) {
|
||||||
|
$features = $decoded;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! is_array($features)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$list = [];
|
||||||
|
foreach ($features as $key => $value) {
|
||||||
|
if (is_string($value)) {
|
||||||
|
$list[] = $value;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_string($key) && (bool) $value) {
|
||||||
|
$list[] = $key;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return array_values(array_unique(array_filter($list, fn ($item) => is_string($item) && $item !== '')));
|
||||||
|
}
|
||||||
|
|
||||||
|
private function resolveTranslation(mixed $value, string $fallback, string $locale): string
|
||||||
|
{
|
||||||
|
if (is_string($value)) {
|
||||||
|
$decoded = json_decode($value, true);
|
||||||
|
if (json_last_error() === JSON_ERROR_NONE) {
|
||||||
|
$value = $decoded;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($value)) {
|
||||||
|
return trim((string) ($value[$locale] ?? $value['en'] ?? $value['de'] ?? $fallback));
|
||||||
|
}
|
||||||
|
|
||||||
|
return trim((string) ($value ?? $fallback));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ class Package extends Model
|
|||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
'name',
|
'name',
|
||||||
|
'name_translations',
|
||||||
|
'slug',
|
||||||
'type',
|
'type',
|
||||||
'price',
|
'price',
|
||||||
'max_photos',
|
'max_photos',
|
||||||
@@ -25,6 +27,8 @@ class Package extends Model
|
|||||||
'expires_after',
|
'expires_after',
|
||||||
'features',
|
'features',
|
||||||
'description',
|
'description',
|
||||||
|
'description_translations',
|
||||||
|
'description_table',
|
||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
@@ -38,6 +42,9 @@ class Package extends Model
|
|||||||
'watermark_allowed' => 'boolean',
|
'watermark_allowed' => 'boolean',
|
||||||
'branding_allowed' => 'boolean',
|
'branding_allowed' => 'boolean',
|
||||||
'features' => 'array',
|
'features' => 'array',
|
||||||
|
'name_translations' => 'array',
|
||||||
|
'description_translations' => 'array',
|
||||||
|
'description_table' => 'array',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('packages', function (Blueprint $table) {
|
||||||
|
if (!Schema::hasColumn('packages', 'description_table')) {
|
||||||
|
$table->json('description_table')->nullable()->after('description');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('packages', function (Blueprint $table) {
|
||||||
|
if (Schema::hasColumn('packages', 'description_table')) {
|
||||||
|
$table->dropColumn('description_table');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('packages', function (Blueprint $table) {
|
||||||
|
if (! Schema::hasColumn('packages', 'name_translations')) {
|
||||||
|
$table->json('name_translations')->nullable()->after('name');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! Schema::hasColumn('packages', 'description_translations')) {
|
||||||
|
$table->json('description_translations')->nullable()->after('description');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Bootstrap existing values into the new translation columns
|
||||||
|
if (Schema::hasColumn('packages', 'name')) {
|
||||||
|
DB::table('packages')->select('id', 'name', 'description')->get()->each(function ($package) {
|
||||||
|
$nameTranslations = [
|
||||||
|
'de' => $package->name,
|
||||||
|
'en' => $package->name,
|
||||||
|
];
|
||||||
|
|
||||||
|
$descriptionTranslations = [
|
||||||
|
'de' => $package->description ?? '',
|
||||||
|
'en' => $package->description ?? '',
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table('packages')
|
||||||
|
->where('id', $package->id)
|
||||||
|
->update([
|
||||||
|
'name_translations' => json_encode($nameTranslations, JSON_UNESCAPED_UNICODE),
|
||||||
|
'description_translations' => json_encode($descriptionTranslations, JSON_UNESCAPED_UNICODE),
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('packages', function (Blueprint $table) {
|
||||||
|
if (Schema::hasColumn('packages', 'name_translations')) {
|
||||||
|
$table->dropColumn('name_translations');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Schema::hasColumn('packages', 'description_translations')) {
|
||||||
|
$table->dropColumn('description_translations');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -5,7 +5,6 @@ namespace Database\Seeders;
|
|||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
use App\Models\Package;
|
use App\Models\Package;
|
||||||
use App\Enums\PackageType;
|
use App\Enums\PackageType;
|
||||||
use Illuminate\Support\Str;
|
|
||||||
|
|
||||||
class PackageSeeder extends Seeder
|
class PackageSeeder extends Seeder
|
||||||
{
|
{
|
||||||
@@ -14,106 +13,265 @@ class PackageSeeder extends Seeder
|
|||||||
*/
|
*/
|
||||||
public function run(): void
|
public function run(): void
|
||||||
{
|
{
|
||||||
// Endcustomer Packages
|
$packages = [
|
||||||
Package::create([
|
[
|
||||||
'name' => 'Free / Test',
|
'slug' => 'free-package',
|
||||||
'slug' => 'free-package',
|
'name' => 'Free / Test',
|
||||||
'type' => PackageType::ENDCUSTOMER,
|
'name_translations' => [
|
||||||
'price' => 0.00,
|
'de' => 'Free / Test',
|
||||||
'max_photos' => 30,
|
'en' => 'Free / Test',
|
||||||
'max_guests' => 50,
|
],
|
||||||
'gallery_days' => 7,
|
'type' => PackageType::ENDCUSTOMER,
|
||||||
'max_tasks' => 5,
|
'price' => 0.00,
|
||||||
'watermark_allowed' => true,
|
'max_photos' => 120,
|
||||||
'branding_allowed' => false,
|
'max_guests' => 25,
|
||||||
'features' => json_encode([
|
'gallery_days' => 7,
|
||||||
'basic_uploads' => true,
|
'max_tasks' => 8,
|
||||||
'limited_sharing' => true,
|
'watermark_allowed' => true,
|
||||||
'no_branding' => true,
|
'branding_allowed' => false,
|
||||||
]),
|
'features' => ['basic_uploads', 'limited_sharing'],
|
||||||
]);
|
'description' => <<<TEXT
|
||||||
|
Perfekt zum Ausprobieren: Teile erste Eindrücke mit {{max_guests}} Gästen und sammle {{max_photos}} Bilder in einer Test-Galerie, die {{gallery_duration}} online bleibt. Ideal für kleine Runden oder interne Demos.
|
||||||
Package::create([
|
TEXT,
|
||||||
'name' => 'Starter',
|
'description_translations' => [
|
||||||
'slug' => Str::slug('Starter'),
|
'de' => 'Perfekt zum Ausprobieren: Teile erste Eindrücke mit {{max_guests}} Gästen und sammle {{max_photos}} Bilder in einer Test-Galerie, die {{gallery_duration}} online bleibt. Ideal für kleine Runden oder interne Demos.',
|
||||||
'type' => PackageType::ENDCUSTOMER,
|
'en' => 'Perfect for trying it out: share first impressions with {{max_guests}} guests and collect {{max_photos}} photos in a test gallery that stays online for {{gallery_duration}}. Ideal for small groups or internal demos.',
|
||||||
'price' => 29.00,
|
],
|
||||||
'max_photos' => 200,
|
'description_table' => [
|
||||||
'max_guests' => 100,
|
['title' => 'Fotos', 'value' => '{{max_photos}}'],
|
||||||
'gallery_days' => 30,
|
['title' => 'Gäste', 'value' => '{{max_guests}}'],
|
||||||
'max_tasks' => 10,
|
['title' => 'Aufgaben', 'value' => '{{max_tasks}} Fotoaufgaben'],
|
||||||
'watermark_allowed' => true,
|
['title' => 'Galerie', 'value' => '{{gallery_duration}}'],
|
||||||
'branding_allowed' => false,
|
['title' => 'Branding', 'value' => 'Fotospiel Standard Branding'],
|
||||||
'features' => json_encode([
|
],
|
||||||
'basic_uploads' => true,
|
],
|
||||||
'unlimited_sharing' => true,
|
[
|
||||||
'no_watermark' => true,
|
'slug' => 'starter',
|
||||||
'custom_tasks' => true,
|
'name' => 'Starter',
|
||||||
]),
|
'name_translations' => [
|
||||||
]);
|
'de' => 'Starter',
|
||||||
|
'en' => 'Starter',
|
||||||
Package::create([
|
],
|
||||||
'name' => 'Pro',
|
'type' => PackageType::ENDCUSTOMER,
|
||||||
'slug' => Str::slug('Pro'),
|
'price' => 59.00,
|
||||||
'type' => PackageType::ENDCUSTOMER,
|
'max_photos' => 300,
|
||||||
'price' => 79.00,
|
'max_guests' => 50,
|
||||||
'max_photos' => 1000,
|
'gallery_days' => 14,
|
||||||
'max_guests' => 500,
|
'max_tasks' => 30,
|
||||||
'gallery_days' => 90,
|
'watermark_allowed' => true,
|
||||||
'max_tasks' => 20,
|
'branding_allowed' => false,
|
||||||
'watermark_allowed' => false,
|
'features' => ['basic_uploads', 'limited_sharing', 'custom_tasks'],
|
||||||
'branding_allowed' => false,
|
'description' => <<<TEXT
|
||||||
'features' => json_encode([
|
Ideal für Geburtstage, Gartenpartys oder Polterabende! {{max_guests}} Gäste teilen ihre besten Schnappschüsse, lösen {{max_tasks}} Fotoaufgaben und haben {{gallery_duration}} Zugriff auf die Online-Galerie. {{max_photos}} Bilder sind inklusive – genug Platz für jede Menge Lieblingsmomente.
|
||||||
'basic_uploads' => true,
|
TEXT,
|
||||||
'unlimited_sharing' => true,
|
'description_translations' => [
|
||||||
'no_watermark' => true,
|
'de' => 'Ideal für Geburtstage, Gartenpartys oder Polterabende! {{max_guests}} Gäste teilen ihre besten Schnappschüsse, lösen {{max_tasks}} Fotoaufgaben und haben {{gallery_duration}} Zugriff auf die Online-Galerie. {{max_photos}} Bilder sind inklusive – genug Platz für jede Menge Lieblingsmomente.',
|
||||||
'custom_tasks' => true,
|
'en' => 'Ideal for birthdays, garden parties or rehearsal dinners! {{max_guests}} guests share their favourite snapshots, take on {{max_tasks}} photo challenges and enjoy gallery access for {{gallery_duration}}. {{max_photos}} photos included for all those memories.',
|
||||||
'advanced_analytics' => true,
|
],
|
||||||
'priority_support' => true,
|
'description_table' => [
|
||||||
]),
|
['title' => 'Fotos', 'value' => '{{max_photos}}'],
|
||||||
]);
|
['title' => 'Gäste', 'value' => '{{max_guests}}'],
|
||||||
|
['title' => 'Aufgaben', 'value' => '{{max_tasks}} Fotoaufgaben'],
|
||||||
// Reseller Packages
|
['title' => 'Galerie', 'value' => '{{gallery_duration}}'],
|
||||||
Package::create([
|
['title' => 'Branding', 'value' => 'Fotospiel Branding'],
|
||||||
'name' => 'S (Small Reseller)',
|
],
|
||||||
'slug' => Str::slug('S (Small Reseller)'),
|
],
|
||||||
'type' => PackageType::RESELLER,
|
[
|
||||||
'price' => 199.00,
|
'slug' => 'standard',
|
||||||
'max_photos' => 500, // per event limit
|
'name' => 'Standard',
|
||||||
'max_guests' => null, // unlimited
|
'name_translations' => [
|
||||||
'gallery_days' => null,
|
'de' => 'Standard',
|
||||||
'max_tasks' => null, // unlimited
|
'en' => 'Standard',
|
||||||
'watermark_allowed' => true,
|
],
|
||||||
'branding_allowed' => true,
|
'type' => PackageType::ENDCUSTOMER,
|
||||||
'max_events_per_year' => 5,
|
'price' => 129.00,
|
||||||
'expires_after' => now()->addYear(),
|
'max_photos' => 1000,
|
||||||
'features' => json_encode([
|
'max_guests' => 150,
|
||||||
'reseller_dashboard' => true,
|
'gallery_days' => 30,
|
||||||
'custom_branding' => true,
|
'max_tasks' => 100,
|
||||||
'priority_support' => true,
|
'watermark_allowed' => false,
|
||||||
]),
|
'branding_allowed' => true,
|
||||||
]);
|
'features' => ['basic_uploads', 'unlimited_sharing', 'no_watermark', 'custom_branding', 'custom_tasks'],
|
||||||
|
'description' => <<<TEXT
|
||||||
Package::create([
|
Das Rundum-Sorglos-Paket für Hochzeiten, Firmenfeiern oder Jubiläen. {{max_photos}} Bilder, {{max_guests}} Gäste und {{max_tasks}} Fotoaufgaben – dazu eine Galerie, die {{gallery_duration}} online bleibt. Eigenes Logo oder Wasserzeichen inklusive.
|
||||||
'name' => 'M (Medium Reseller)',
|
TEXT,
|
||||||
'slug' => Str::slug('M (Medium Reseller)'),
|
'description_translations' => [
|
||||||
'type' => PackageType::RESELLER,
|
'de' => 'Das Rundum-Sorglos-Paket für Hochzeiten, Firmenfeiern oder Jubiläen. {{max_photos}} Bilder, {{max_guests}} Gäste und {{max_tasks}} Fotoaufgaben – dazu eine Galerie, die {{gallery_duration}} online bleibt. Eigenes Logo oder Wasserzeichen inklusive.',
|
||||||
'price' => 399.00,
|
'en' => 'The all-in-one package for weddings, corporate events or anniversaries. {{max_photos}} photos, {{max_guests}} guests and {{max_tasks}} photo challenges—plus a gallery that stays online for {{gallery_duration}}. Includes your own logo or watermark.',
|
||||||
'max_photos' => 1000, // per event limit
|
],
|
||||||
'max_guests' => null, // unlimited
|
'description_table' => [
|
||||||
'gallery_days' => null,
|
['title' => 'Fotos', 'value' => '{{max_photos}}'],
|
||||||
'max_tasks' => null, // unlimited
|
['title' => 'Gäste', 'value' => '{{max_guests}}'],
|
||||||
'watermark_allowed' => true,
|
['title' => 'Aufgaben', 'value' => '{{max_tasks}} Fotoaufgaben'],
|
||||||
'branding_allowed' => true,
|
['title' => 'Galerie', 'value' => '{{gallery_duration}}'],
|
||||||
'max_events_per_year' => 15,
|
['title' => 'Branding', 'value' => 'Eigenes Logo & Wasserzeichen'],
|
||||||
'expires_after' => now()->addYear(),
|
],
|
||||||
'features' => json_encode([
|
],
|
||||||
'reseller_dashboard' => true,
|
[
|
||||||
'custom_branding' => true,
|
'slug' => 'pro',
|
||||||
'priority_support' => true,
|
'name' => 'Premium',
|
||||||
'advanced_reporting' => true,
|
'name_translations' => [
|
||||||
]),
|
'de' => 'Premium',
|
||||||
]);
|
'en' => 'Premium',
|
||||||
|
],
|
||||||
|
'type' => PackageType::ENDCUSTOMER,
|
||||||
|
'price' => 249.00,
|
||||||
|
'max_photos' => 3000,
|
||||||
|
'max_guests' => 500,
|
||||||
|
'gallery_days' => 180,
|
||||||
|
'max_tasks' => 200,
|
||||||
|
'watermark_allowed' => false,
|
||||||
|
'branding_allowed' => true,
|
||||||
|
'features' => ['basic_uploads', 'unlimited_sharing', 'no_watermark', 'custom_branding', 'advanced_analytics', 'live_slideshow', 'priority_support'],
|
||||||
|
'description' => <<<TEXT
|
||||||
|
Das volle Erlebnis für alle, die keine Kompromisse machen wollen. {{max_photos}} Bilder, {{max_guests}} Gäste, {{gallery_duration}} Galerie-Zugang und {{max_tasks}} Aufgaben – dazu kein Wasserzeichen, Live-Slideshow und Premium-Support.
|
||||||
|
TEXT,
|
||||||
|
'description_translations' => [
|
||||||
|
'de' => 'Das volle Erlebnis für alle, die keine Kompromisse machen wollen. {{max_photos}} Bilder, {{max_guests}} Gäste, {{gallery_duration}} Galerie-Zugang und {{max_tasks}} Aufgaben – dazu kein Wasserzeichen, Live-Slideshow und Premium-Support.',
|
||||||
|
'en' => 'The full experience for anyone who refuses to compromise. {{max_photos}} photos, {{max_guests}} guests, {{gallery_duration}} of gallery access and {{max_tasks}} challenges—no watermark, live slideshow and premium support included.',
|
||||||
|
],
|
||||||
|
'description_table' => [
|
||||||
|
['title' => 'Fotos', 'value' => '{{max_photos}}'],
|
||||||
|
['title' => 'Gäste', 'value' => '{{max_guests}}'],
|
||||||
|
['title' => 'Aufgaben', 'value' => '{{max_tasks}} Fotoaufgaben'],
|
||||||
|
['title' => 'Galerie', 'value' => '{{gallery_duration}}'],
|
||||||
|
['title' => 'Extras', 'value' => 'Live-Slideshow & Premium-Support'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'slug' => 's-small-reseller',
|
||||||
|
'name' => 'Reseller S',
|
||||||
|
'name_translations' => [
|
||||||
|
'de' => 'Reseller S',
|
||||||
|
'en' => 'Reseller S',
|
||||||
|
],
|
||||||
|
'type' => PackageType::RESELLER,
|
||||||
|
'price' => 299.00,
|
||||||
|
'max_photos' => 1000,
|
||||||
|
'max_guests' => null,
|
||||||
|
'gallery_days' => 30,
|
||||||
|
'max_tasks' => null,
|
||||||
|
'watermark_allowed' => true,
|
||||||
|
'branding_allowed' => true,
|
||||||
|
'max_events_per_year' => 5,
|
||||||
|
'expires_after' => now()->copy()->addYear(),
|
||||||
|
'features' => ['reseller_dashboard', 'custom_branding', 'priority_support'],
|
||||||
|
'description' => <<<TEXT
|
||||||
|
Das perfekte Paket für Fotografen oder Planer, die erste Erfahrungen mit Fotospiel sammeln wollen. Enthalten sind {{max_events_per_year}} Events pro Jahr mit Standard-Leistung – Branding-Optionen inklusive.
|
||||||
|
TEXT,
|
||||||
|
'description_translations' => [
|
||||||
|
'de' => 'Das perfekte Paket für Fotografen oder Planer, die erste Erfahrungen mit Fotospiel sammeln wollen. Enthalten sind {{max_events_per_year}} Events pro Jahr mit Standard-Leistung – Branding-Optionen inklusive.',
|
||||||
|
'en' => 'Perfect for photographers or planners getting started with Fotospiel. Includes {{max_events_per_year}} events per year with the standard feature set—branding options included.',
|
||||||
|
],
|
||||||
|
'description_table' => [
|
||||||
|
['title' => 'Events/Jahr', 'value' => '{{max_events_per_year}} Events'],
|
||||||
|
['title' => 'Galerie', 'value' => '{{gallery_duration}}'],
|
||||||
|
['title' => 'Branding', 'value' => 'Logo & Farben pro Event'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'slug' => 'm-medium-reseller',
|
||||||
|
'name' => 'Reseller M',
|
||||||
|
'name_translations' => [
|
||||||
|
'de' => 'Reseller M',
|
||||||
|
'en' => 'Reseller M',
|
||||||
|
],
|
||||||
|
'type' => PackageType::RESELLER,
|
||||||
|
'price' => 599.00,
|
||||||
|
'max_photos' => 1500,
|
||||||
|
'max_guests' => null,
|
||||||
|
'gallery_days' => 60,
|
||||||
|
'max_tasks' => null,
|
||||||
|
'watermark_allowed' => true,
|
||||||
|
'branding_allowed' => true,
|
||||||
|
'max_events_per_year' => 15,
|
||||||
|
'expires_after' => now()->copy()->addYear(),
|
||||||
|
'features' => ['reseller_dashboard', 'custom_branding', 'priority_support', 'advanced_reporting'],
|
||||||
|
'description' => <<<TEXT
|
||||||
|
Wenn du regelmäßig Hochzeiten, Firmenfeste oder private Events betreust, ist dieses Paket ideal. {{max_events_per_year}} Events pro Jahr mit Branding-Optionen, verlängerter Galerie-Laufzeit und Reporting inklusive.
|
||||||
|
TEXT,
|
||||||
|
'description_translations' => [
|
||||||
|
'de' => 'Wenn du regelmäßig Hochzeiten, Firmenfeste oder private Events betreust, ist dieses Paket ideal. {{max_events_per_year}} Events pro Jahr mit Branding-Optionen, verlängerter Galerie-Laufzeit und Reporting inklusive.',
|
||||||
|
'en' => 'Designed for professionals who regularly support weddings, corporate events or private parties. {{max_events_per_year}} events per year with branding options, extended gallery runtime and reporting included.',
|
||||||
|
],
|
||||||
|
'description_table' => [
|
||||||
|
['title' => 'Events/Jahr', 'value' => '{{max_events_per_year}} Events'],
|
||||||
|
['title' => 'Galerie', 'value' => '{{gallery_duration}}'],
|
||||||
|
['title' => 'Reporting', 'value' => 'Erweiterte Auswertungen'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'slug' => 'l-large-reseller',
|
||||||
|
'name' => 'Reseller L',
|
||||||
|
'name_translations' => [
|
||||||
|
'de' => 'Reseller L',
|
||||||
|
'en' => 'Reseller L',
|
||||||
|
],
|
||||||
|
'type' => PackageType::RESELLER,
|
||||||
|
'price' => 1199.00,
|
||||||
|
'max_photos' => 3000,
|
||||||
|
'max_guests' => null,
|
||||||
|
'gallery_days' => 90,
|
||||||
|
'max_tasks' => null,
|
||||||
|
'watermark_allowed' => false,
|
||||||
|
'branding_allowed' => true,
|
||||||
|
'max_events_per_year' => 40,
|
||||||
|
'expires_after' => now()->copy()->addYear(),
|
||||||
|
'features' => ['reseller_dashboard', 'custom_branding', 'priority_support', 'advanced_reporting', 'live_slideshow'],
|
||||||
|
'description' => <<<TEXT
|
||||||
|
Ideal für Agenturen, Fotografen oder Eventdienstleister mit vielen Veranstaltungen im Jahr. {{max_events_per_year}} Events inklusive, White-Label-Branding und alle Premium-Funktionen sorgen für maximale Flexibilität.
|
||||||
|
TEXT,
|
||||||
|
'description_translations' => [
|
||||||
|
'de' => 'Ideal für Agenturen, Fotografen oder Eventdienstleister mit vielen Veranstaltungen im Jahr. {{max_events_per_year}} Events inklusive, White-Label-Branding und alle Premium-Funktionen sorgen für maximale Flexibilität.',
|
||||||
|
'en' => 'Ideal for agencies, photographers or event providers with a packed calendar. {{max_events_per_year}} events included, white-label branding and all premium features for maximum flexibility.',
|
||||||
|
],
|
||||||
|
'description_table' => [
|
||||||
|
['title' => 'Events/Jahr', 'value' => '{{max_events_per_year}} Events'],
|
||||||
|
['title' => 'Branding', 'value' => 'White-Label & eigene Domains'],
|
||||||
|
['title' => 'Extras', 'value' => 'Live-Slideshow & Premium-Features'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'slug' => 'enterprise-unlimited',
|
||||||
|
'name' => 'Enterprise / Unlimited',
|
||||||
|
'name_translations' => [
|
||||||
|
'de' => 'Enterprise / Unlimited',
|
||||||
|
'en' => 'Enterprise / Unlimited',
|
||||||
|
],
|
||||||
|
'type' => PackageType::RESELLER,
|
||||||
|
'price' => 0.00,
|
||||||
|
'max_photos' => null,
|
||||||
|
'max_guests' => null,
|
||||||
|
'gallery_days' => null,
|
||||||
|
'max_tasks' => null,
|
||||||
|
'watermark_allowed' => false,
|
||||||
|
'branding_allowed' => true,
|
||||||
|
'max_events_per_year' => null,
|
||||||
|
'expires_after' => now()->copy()->addYear(),
|
||||||
|
'features' => ['reseller_dashboard', 'custom_branding', 'priority_support', 'advanced_reporting', 'live_slideshow', 'unlimited_sharing'],
|
||||||
|
'description' => <<<TEXT
|
||||||
|
Das Rundum-Paket für Unternehmen und Agenturen, die maximale Flexibilität brauchen. {{max_events_per_year}} Events, volles White-Label-Branding, eigene Subdomain oder App-Branding – alles individuell anpassbar, inklusive persönlicher Betreuung.
|
||||||
|
TEXT,
|
||||||
|
'description_translations' => [
|
||||||
|
'de' => 'Das Rundum-Paket für Unternehmen und Agenturen, die maximale Flexibilität brauchen. {{max_events_per_year}} Events, volles White-Label-Branding, eigene Subdomain oder App-Branding – alles individuell anpassbar, inklusive persönlicher Betreuung.',
|
||||||
|
'en' => 'The all-round package for enterprises and agencies needing maximum flexibility. {{max_events_per_year}} events, full white-label branding, your own subdomain or app branding—fully customisable with dedicated support.',
|
||||||
|
],
|
||||||
|
'description_table' => [
|
||||||
|
['title' => 'Events/Jahr', 'value' => '{{max_events_per_year}} Events'],
|
||||||
|
['title' => 'Branding', 'value' => 'Eigene Subdomain oder App'],
|
||||||
|
['title' => 'Support', 'value' => 'Persönliche Betreuung'],
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($packages as $data) {
|
||||||
|
$descriptionTable = $data['description_table'] ?? [];
|
||||||
|
Package::updateOrCreate(
|
||||||
|
['slug' => $data['slug']],
|
||||||
|
array_merge($data, [
|
||||||
|
'description_table' => $descriptionTable,
|
||||||
|
])
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
40
docs/Paketbeschreibungen.txt
Normal file
40
docs/Paketbeschreibungen.txt
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
🟡 Starter – Der kleine Spaßmacher
|
||||||
|
|
||||||
|
Ideal für Geburtstage, Gartenpartys oder Polterabende!
|
||||||
|
Bis zu 50 Gäste teilen ihre besten Schnappschüsse, lösen 30 spannende Aufgaben und haben 14 Tage lang Zugriff auf die Online-Galerie. 300 Bilder sind inklusive – genug Platz für jede Menge Lieblingsmomente. Dein Event bekommt sein eigenes Fotospiel mit persönlicher Note!
|
||||||
|
|
||||||
|
🟠 Standard – Für das große Fest
|
||||||
|
|
||||||
|
Das Rundum-Sorglos-Paket für Hochzeiten, Firmenfeiern oder Jubiläen.
|
||||||
|
1.000 Bilder, 150 Gäste, 100 Fotoaufgaben – und eine Galerie, die 1 Monat online bleibt.
|
||||||
|
Du kannst sogar dein eigenes Logo oder Wasserzeichen integrieren. So bleibt jedes Bild unverwechselbar und dein Event bekommt ein individuelles Branding.
|
||||||
|
|
||||||
|
🔴 Premium – Für unvergessliche Events
|
||||||
|
|
||||||
|
Das volle Erlebnis für alle, die keine Kompromisse machen wollen.
|
||||||
|
3.000 Bilder, bis zu 500 Gäste, 6 Monate Galerie-Zugang, 200 Aufgaben, kein Wasserzeichen und exklusive Zusatz-Features wie eine Live-Slideshow.
|
||||||
|
Ideal für große Hochzeiten, Firmen-Events oder Festivals. Hier wird jedes Foto zum Highlight – und dein Event unvergesslich.
|
||||||
|
|
||||||
|
|
||||||
|
🤝 Reseller- / Agentur-Pakete (Jahresmodell)
|
||||||
|
|
||||||
|
🧩 Reseller S – Für den Einstieg ins Eventgeschäft
|
||||||
|
|
||||||
|
Das perfekte Paket für Fotografen oder Planer, die erste Erfahrungen mit Fotospiel sammeln wollen.
|
||||||
|
Bis zu 5 Events pro Jahr sind inklusive, jeweils mit Standard-Leistung. Einfach, flexibel und mit Branding-Optionen, die zu deinem Stil passen.
|
||||||
|
|
||||||
|
🎯 Reseller M – Für Profis mit regelmäßigem Einsatz
|
||||||
|
|
||||||
|
Wenn du regelmäßig Hochzeiten, Firmenfeste oder private Events betreust, ist dieses Paket wie für dich gemacht.
|
||||||
|
Bis zu 15 Events pro Jahr mit Branding-Optionen, längerer Galerie-Laufzeit und vollem Zugriff auf Standard-Features. So kannst du deinen Kunden jedes Mal ein professionelles Erlebnis bieten – ohne dich um Lizenzen oder Abrechnung zu kümmern.
|
||||||
|
|
||||||
|
🚀 Reseller L – Für die Vielnutzer und Markenmacher
|
||||||
|
|
||||||
|
Ideal für Agenturen, Fotografen oder Eventdienstleister mit vielen Veranstaltungen im Jahr.
|
||||||
|
Bis zu 40 Events inklusive, mit Premium-Leistung, White-Label-Branding und allen Funktionen. Dein Branding steht im Mittelpunkt – Fotospiel arbeitet im Hintergrund. So stärkst du deine Marke und bietest gleichzeitig ein erstklassiges digitales Erlebnis.
|
||||||
|
|
||||||
|
🏆 Enterprise / Unlimited – Für Marken und Großveranstalter
|
||||||
|
|
||||||
|
Das Rundum-Paket für Unternehmen und Agenturen, die maximale Flexibilität brauchen.
|
||||||
|
Unbegrenzte Events, volles White-Label-Branding, eigene Subdomain oder App-Branding – ganz nach deinen Vorstellungen.
|
||||||
|
Dieses Paket ist individuell anpassbar und bietet alle Premium-Features plus persönliche Betreuung. Perfekt für Corporate-Events, Festivals oder Franchise-Konzepte.
|
||||||
@@ -29,5 +29,8 @@
|
|||||||
"data_security_desc": "Wir verwenden HTTPS, verschlüsselte Speicherung (Passwörter hashed) und regelmäßige Backups. Zugriff auf Daten ist rollebasierend beschränkt (Tenant vs SuperAdmin).",
|
"data_security_desc": "Wir verwenden HTTPS, verschlüsselte Speicherung (Passwörter hashed) und regelmäßige Backups. Zugriff auf Daten ist rollebasierend beschränkt (Tenant vs SuperAdmin).",
|
||||||
"and": "und",
|
"and": "und",
|
||||||
"stripe_privacy": "Stripe Datenschutz",
|
"stripe_privacy": "Stripe Datenschutz",
|
||||||
"paypal_privacy": "PayPal Datenschutz"
|
"paypal_privacy": "PayPal Datenschutz",
|
||||||
}
|
"agb": "Allgemeine Geschäftsbedingungen",
|
||||||
|
"effective_from": "Gültig seit {{date}}",
|
||||||
|
"version": "Version {{version}}"
|
||||||
|
}
|
||||||
|
|||||||
@@ -106,6 +106,17 @@
|
|||||||
"feature_reseller_dashboard": "Reseller-Dashboard",
|
"feature_reseller_dashboard": "Reseller-Dashboard",
|
||||||
"feature_custom_branding": "Benutzerdefiniertes Branding",
|
"feature_custom_branding": "Benutzerdefiniertes Branding",
|
||||||
"feature_advanced_reporting": "Erweiterte Berichterstattung",
|
"feature_advanced_reporting": "Erweiterte Berichterstattung",
|
||||||
|
"badge_most_popular": "Beliebteste Wahl",
|
||||||
|
"badge_best_value": "Bestes Preis-Leistungs-Verhältnis",
|
||||||
|
"badge_starter": "Perfekt für den Start",
|
||||||
|
"billing_per_event": "pro Event",
|
||||||
|
"billing_per_year": "pro Jahr",
|
||||||
|
"more_features": "+{{count}} weitere Features",
|
||||||
|
"feature_overview": "Feature-Überblick",
|
||||||
|
"order_hint": "Sofort startklar – keine versteckten Kosten, sichere Zahlung via Stripe oder PayPal.",
|
||||||
|
"features_label": "Features",
|
||||||
|
"breakdown_label": "Leistungsübersicht",
|
||||||
|
"limits_label": "Limits & Kapazitäten",
|
||||||
"for_endcustomers": "Für Endkunden",
|
"for_endcustomers": "Für Endkunden",
|
||||||
"for_resellers": "Für Reseller",
|
"for_resellers": "Für Reseller",
|
||||||
"details_show": "Details anzeigen",
|
"details_show": "Details anzeigen",
|
||||||
@@ -419,4 +430,4 @@
|
|||||||
"google_coming_soon": "Google-Login kommt bald im Comfort-Delta."
|
"google_coming_soon": "Google-Login kommt bald im Comfort-Delta."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,5 +26,8 @@
|
|||||||
"account_deletion": "Account Deletion",
|
"account_deletion": "Account Deletion",
|
||||||
"account_deletion_desc": "You have the right to have your personal data deleted at any time (right to erasure, Art. 17 GDPR). Contact us at [Email] to delete your account. All associated data (events, photos, purchases) will be deleted, unless legal retention obligations exist.",
|
"account_deletion_desc": "You have the right to have your personal data deleted at any time (right to erasure, Art. 17 GDPR). Contact us at [Email] to delete your account. All associated data (events, photos, purchases) will be deleted, unless legal retention obligations exist.",
|
||||||
"data_security": "Data Security",
|
"data_security": "Data Security",
|
||||||
"data_security_desc": "We use HTTPS, encrypted storage (passwords hashed) and regular backups. Access to data is role-based restricted (Tenant vs SuperAdmin)."
|
"data_security_desc": "We use HTTPS, encrypted storage (passwords hashed) and regular backups. Access to data is role-based restricted (Tenant vs SuperAdmin).",
|
||||||
}
|
"agb": "Terms & Conditions",
|
||||||
|
"effective_from": "Effective from {{date}}",
|
||||||
|
"version": "Version {{version}}"
|
||||||
|
}
|
||||||
|
|||||||
@@ -96,6 +96,17 @@
|
|||||||
"feature_reseller_dashboard": "Reseller Dashboard",
|
"feature_reseller_dashboard": "Reseller Dashboard",
|
||||||
"feature_custom_branding": "Custom Branding",
|
"feature_custom_branding": "Custom Branding",
|
||||||
"feature_advanced_reporting": "Advanced Reporting",
|
"feature_advanced_reporting": "Advanced Reporting",
|
||||||
|
"badge_most_popular": "Most Popular",
|
||||||
|
"badge_best_value": "Best Value",
|
||||||
|
"badge_starter": "Perfect Starter",
|
||||||
|
"billing_per_event": "per event",
|
||||||
|
"billing_per_year": "per year",
|
||||||
|
"more_features": "+{{count}} more features",
|
||||||
|
"feature_overview": "Feature overview",
|
||||||
|
"order_hint": "Launch instantly – secure Stripe or PayPal checkout, no hidden fees.",
|
||||||
|
"features_label": "Features",
|
||||||
|
"breakdown_label": "At-a-glance",
|
||||||
|
"limits_label": "Limits & Capacity",
|
||||||
"for_endcustomers": "For End Customers",
|
"for_endcustomers": "For End Customers",
|
||||||
"for_resellers": "For Resellers",
|
"for_resellers": "For Resellers",
|
||||||
"details_show": "Show Details",
|
"details_show": "Show Details",
|
||||||
@@ -125,6 +136,9 @@
|
|||||||
"customer_opinions": "Customer Opinions",
|
"customer_opinions": "Customer Opinions",
|
||||||
"errors": {
|
"errors": {
|
||||||
"select_package": "Please select a package."
|
"select_package": "Please select a package."
|
||||||
|
},
|
||||||
|
"currency": {
|
||||||
|
"euro": "€"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"blog": {
|
"blog": {
|
||||||
@@ -410,4 +424,4 @@
|
|||||||
"google_coming_soon": "Google Login coming soon in Comfort-Delta."
|
"google_coming_soon": "Google Login coming soon in Comfort-Delta."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,6 +119,108 @@
|
|||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Basic typography styling for rendered markdown (prose) without Tailwind plugin */
|
||||||
|
.prose {
|
||||||
|
color: rgb(55 65 81);
|
||||||
|
font-family: var(--font-sans-marketing);
|
||||||
|
line-height: 1.75;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose.prose-slate {
|
||||||
|
color: rgb(51 65 85);
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose :where(p, ul, ol, blockquote, pre, table, figure) {
|
||||||
|
margin-bottom: 1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose h1 {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: clamp(2.25rem, 4vw, 3rem);
|
||||||
|
line-height: 1.1;
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose h2 {
|
||||||
|
font-family: var(--font-display);
|
||||||
|
font-size: clamp(1.875rem, 3vw, 2.5rem);
|
||||||
|
line-height: 1.2;
|
||||||
|
margin-top: 1.6em;
|
||||||
|
margin-bottom: 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose h3 {
|
||||||
|
font-size: clamp(1.5rem, 2.5vw, 2rem);
|
||||||
|
font-weight: 600;
|
||||||
|
line-height: 1.25;
|
||||||
|
margin-top: 1.4em;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose h4 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-top: 1.2em;
|
||||||
|
margin-bottom: 0.4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose p {
|
||||||
|
margin: 0 0 1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose a {
|
||||||
|
color: rgb(236 72 153);
|
||||||
|
text-decoration: underline;
|
||||||
|
text-decoration-thickness: 2px;
|
||||||
|
text-underline-offset: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose strong {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose ul,
|
||||||
|
.prose ol {
|
||||||
|
padding-left: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose ul {
|
||||||
|
list-style-type: disc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose ol {
|
||||||
|
list-style-type: decimal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose blockquote {
|
||||||
|
border-left: 4px solid rgba(236, 72, 153, 0.4);
|
||||||
|
color: rgb(75 85 99);
|
||||||
|
font-style: italic;
|
||||||
|
margin-left: 0;
|
||||||
|
padding-left: 1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose table th,
|
||||||
|
.prose table td {
|
||||||
|
border: 1px solid rgba(148, 163, 184, 0.6);
|
||||||
|
padding: 0.75em;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prose code {
|
||||||
|
background-color: rgba(148, 163, 184, 0.15);
|
||||||
|
border-radius: 0.375rem;
|
||||||
|
font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
|
||||||
|
padding: 0.15em 0.35em;
|
||||||
|
}
|
||||||
|
|
||||||
@layer utilities {
|
@layer utilities {
|
||||||
.font-display {
|
.font-display {
|
||||||
font-family: var(--font-display);
|
font-family: var(--font-display);
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ export function LanguageSwitcher() {
|
|||||||
document.documentElement.setAttribute('lang', locale);
|
document.documentElement.setAttribute('lang', locale);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (import.meta.env.DEV) {
|
if (import.meta.env.DEV) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error('Failed to switch language', error);
|
console.error('Failed to switch language', error);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ if (!i18n.isInitialized) {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
if (import.meta.env.DEV) {
|
if (import.meta.env.DEV) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.error('Failed to initialize i18n', error);
|
console.error('Failed to initialize i18n', error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export async function processQueue() {
|
|||||||
if (processing) return; processing = true;
|
if (processing) return; processing = true;
|
||||||
try {
|
try {
|
||||||
const now = Date.now();
|
const now = Date.now();
|
||||||
let items = await list();
|
const items = await list();
|
||||||
for (const it of items) {
|
for (const it of items) {
|
||||||
if (it.status === 'done') continue;
|
if (it.status === 'done') continue;
|
||||||
if (it.nextAttemptAt && it.nextAttemptAt > now) continue;
|
if (it.nextAttemptAt && it.nextAttemptAt > now) continue;
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ function getCsrfToken(): string | null {
|
|||||||
const decodedCookie = decodeURIComponent(document.cookie);
|
const decodedCookie = decodeURIComponent(document.cookie);
|
||||||
const ca = decodedCookie.split(';');
|
const ca = decodedCookie.split(';');
|
||||||
for (let i = 0; i < ca.length; i++) {
|
for (let i = 0; i < ca.length; i++) {
|
||||||
let c = ca[i].trimStart();
|
const c = ca[i].trimStart();
|
||||||
if (c.startsWith(name)) {
|
if (c.startsWith(name)) {
|
||||||
const token = c.substring(name.length);
|
const token = c.substring(name.length);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { useAppearance } from '@/hooks/use-appearance';
|
|||||||
|
|
||||||
const Footer: React.FC = () => {
|
const Footer: React.FC = () => {
|
||||||
|
|
||||||
const { t } = useTranslation('marketing');
|
const { t } = useTranslation(['marketing', 'legal']);
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -32,10 +32,10 @@ const Footer: React.FC = () => {
|
|||||||
<div>
|
<div>
|
||||||
<h3 className="font-semibold font-display text-gray-900 mb-4">Rechtliches</h3>
|
<h3 className="font-semibold font-display text-gray-900 mb-4">Rechtliches</h3>
|
||||||
<ul className="space-y-2 text-sm text-gray-600 font-sans-marketing">
|
<ul className="space-y-2 text-sm text-gray-600 font-sans-marketing">
|
||||||
<li><Link href="/impressum" className="hover:text-pink-500">{t('nav.impressum')}</Link></li>
|
<li><Link href="/impressum" className="hover:text-pink-500 transition-colors">{t('legal:impressum')}</Link></li>
|
||||||
<li><Link href="/datenschutz" className="hover:text-pink-500">{t('nav.privacy')}</Link></li>
|
<li><Link href="/datenschutz" className="hover:text-pink-500 transition-colors">{t('legal:datenschutz')}</Link></li>
|
||||||
<li><Link href="/agb" className="hover:text-pink-500">AGB</Link></li>
|
<li><Link href="/agb" className="hover:text-pink-500 transition-colors">{t('legal:agb')}</Link></li>
|
||||||
<li><Link href="/kontakt" className="hover:text-pink-500">{t('nav.contact')}</Link></li>
|
<li><Link href="/kontakt" className="hover:text-pink-500 transition-colors">{t('marketing:nav.contact')}</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -57,4 +57,4 @@ const Footer: React.FC = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Footer;
|
export default Footer;
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { Head, Link } from '@inertiajs/react';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
import MarketingLayout from '@/layouts/mainWebsite';
|
|
||||||
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';
|
|
||||||
|
|
||||||
const Datenschutz: React.FC = () => {
|
|
||||||
const { t } = useTranslation('legal');
|
|
||||||
const { localizedPath } = useLocalizedRoutes();
|
|
||||||
|
|
||||||
return (
|
|
||||||
<MarketingLayout title={t('datenschutz_title')}>
|
|
||||||
<Head title={t('datenschutz_title')} />
|
|
||||||
<div className="container mx-auto px-4 py-8">
|
|
||||||
<h1 className="text-2xl font-bold mb-4 font-display">{t('datenschutz')}</h1>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('datenschutz_intro')}</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('responsible')}</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('data_collection')}</p>
|
|
||||||
<h2 className="text-xl font-semibold mb-2 font-display">{t('payments')}</h2>
|
|
||||||
<p className="mb-4 font-sans-marketing">
|
|
||||||
{t('payments_desc')} <a href="https://stripe.com/de/privacy" target="_blank" rel="noopener noreferrer">{t('stripe_privacy')}</a> {t('and')} <a href="https://www.paypal.com/de/webapps/mpp/ua/privacy-full" target="_blank" rel="noopener noreferrer">{t('paypal_privacy')}</a>.
|
|
||||||
</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('data_retention')}</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">
|
|
||||||
{t('rights')} <Link href={localizedPath('/kontakt')}>{t('contact')}</Link>.
|
|
||||||
</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('cookies')}</p>
|
|
||||||
|
|
||||||
<h2 className="text-xl font-semibold mb-2 font-display">{t('personal_data')}</h2>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('personal_data_desc')}</p>
|
|
||||||
|
|
||||||
<h2 className="text-xl font-semibold mb-2 font-display">{t('account_deletion')}</h2>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('account_deletion_desc')}</p>
|
|
||||||
|
|
||||||
<h2 className="text-xl font-semibold mb-2 font-display">{t('data_security')}</h2>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('data_security_desc')}</p>
|
|
||||||
</div>
|
|
||||||
</MarketingLayout>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Datenschutz;
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { Head, Link } from '@inertiajs/react';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
import MarketingLayout from '@/layouts/mainWebsite';
|
|
||||||
import { useLocalizedRoutes } from '@/hooks/useLocalizedRoutes';
|
|
||||||
|
|
||||||
const Impressum: React.FC = () => {
|
|
||||||
const { t } = useTranslation('legal');
|
|
||||||
const { localizedPath } = useLocalizedRoutes();
|
|
||||||
|
|
||||||
return (
|
|
||||||
<MarketingLayout title={t('impressum_title')}>
|
|
||||||
<Head title={t('impressum_title')} />
|
|
||||||
<div className="container mx-auto px-4 py-8">
|
|
||||||
<h1 className="text-2xl font-bold mb-4 font-display">{t('impressum')}</h1>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('impressum_section')}</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">
|
|
||||||
{t('company')}<br />
|
|
||||||
{t('address')}<br />
|
|
||||||
{t('representative')}<br />
|
|
||||||
{t('contact')}: <Link href={localizedPath('/kontakt')}>{t('contact')}</Link>
|
|
||||||
</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('vat_id')}</p>
|
|
||||||
<h2 className="text-xl font-semibold mb-2 font-display">{t('monetization')}</h2>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('monetization_desc')}</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('register_court')}</p>
|
|
||||||
<p className="mb-4 font-sans-marketing">{t('commercial_register')}</p>
|
|
||||||
</div>
|
|
||||||
</MarketingLayout>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Impressum;
|
|
||||||
44
resources/js/pages/legal/Show.tsx
Normal file
44
resources/js/pages/legal/Show.tsx
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import MarketingLayout from '@/layouts/mainWebsite';
|
||||||
|
|
||||||
|
type LegalShowProps = {
|
||||||
|
seoTitle: string;
|
||||||
|
title: string;
|
||||||
|
content: string;
|
||||||
|
effectiveFrom?: string | null;
|
||||||
|
effectiveFromLabel?: string | null;
|
||||||
|
versionLabel?: string | null;
|
||||||
|
slug: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function LegalShow(props: LegalShowProps) {
|
||||||
|
const { seoTitle, title, content, effectiveFromLabel, versionLabel } = props;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<MarketingLayout title={seoTitle}>
|
||||||
|
|
||||||
|
<section className="bg-white py-16">
|
||||||
|
<div className="mx-auto max-w-4xl px-6">
|
||||||
|
<header className="mb-10">
|
||||||
|
<p className="text-sm uppercase tracking-[0.2em] text-gray-400">
|
||||||
|
FotoSpiel.App
|
||||||
|
</p>
|
||||||
|
<h1 className="mt-2 text-3xl font-semibold text-gray-900 md:text-4xl">
|
||||||
|
{title}
|
||||||
|
</h1>
|
||||||
|
{(effectiveFromLabel || versionLabel) && (
|
||||||
|
<p className="mt-3 text-sm text-gray-500">
|
||||||
|
{[effectiveFromLabel, versionLabel].filter(Boolean).join(' · ')}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<article
|
||||||
|
className="prose prose-slate max-w-none prose-headings:font-display"
|
||||||
|
dangerouslySetInnerHTML={{ __html: content }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</MarketingLayout>
|
||||||
|
);
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,10 @@ return [
|
|||||||
'account_deletion_desc' => 'Sie haben das Recht, Ihre persönlichen Daten jederzeit löschen zu lassen (Recht auf Löschung, Art. 17 DSGVO). Kontaktieren Sie uns unter [E-Mail] zur Löschung Ihres Accounts. Alle zugehörigen Daten (Events, Photos, Purchases) werden gelöscht, soweit keine gesetzlichen Aufbewahrungspflichten bestehen.',
|
'account_deletion_desc' => 'Sie haben das Recht, Ihre persönlichen Daten jederzeit löschen zu lassen (Recht auf Löschung, Art. 17 DSGVO). Kontaktieren Sie uns unter [E-Mail] zur Löschung Ihres Accounts. Alle zugehörigen Daten (Events, Photos, Purchases) werden gelöscht, soweit keine gesetzlichen Aufbewahrungspflichten bestehen.',
|
||||||
'data_security' => 'Datensicherheit',
|
'data_security' => 'Datensicherheit',
|
||||||
'data_security_desc' => 'Wir verwenden HTTPS, verschlüsselte Speicherung (Passwörter hashed) und regelmäßige Backups. Zugriff auf Daten ist rollebasierend beschränkt (Tenant vs SuperAdmin).',
|
'data_security_desc' => 'Wir verwenden HTTPS, verschlüsselte Speicherung (Passwörter hashed) und regelmäßige Backups. Zugriff auf Daten ist rollebasierend beschränkt (Tenant vs SuperAdmin).',
|
||||||
|
'agb' => 'Allgemeine Geschäftsbedingungen',
|
||||||
|
'effective_from' => 'Gültig seit :date',
|
||||||
|
'version' => 'Version :version',
|
||||||
'and' => 'und',
|
'and' => 'und',
|
||||||
'stripe_privacy' => 'Stripe Datenschutz',
|
'stripe_privacy' => 'Stripe Datenschutz',
|
||||||
'paypal_privacy' => 'PayPal Datenschutz',
|
'paypal_privacy' => 'PayPal Datenschutz',
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -50,6 +50,20 @@ return [
|
|||||||
'feature_reseller_dashboard' => 'Reseller-Dashboard',
|
'feature_reseller_dashboard' => 'Reseller-Dashboard',
|
||||||
'feature_custom_branding' => 'Benutzerdefiniertes Branding',
|
'feature_custom_branding' => 'Benutzerdefiniertes Branding',
|
||||||
'feature_advanced_reporting' => 'Erweiterte Berichterstattung',
|
'feature_advanced_reporting' => 'Erweiterte Berichterstattung',
|
||||||
|
'badge_most_popular' => 'Beliebteste Wahl',
|
||||||
|
'badge_best_value' => 'Bestes Preis-Leistungs-Verhältnis',
|
||||||
|
'badge_starter' => 'Perfekt für den Start',
|
||||||
|
'billing_per_event' => 'pro Event',
|
||||||
|
'billing_per_year' => 'pro Jahr',
|
||||||
|
'more_features' => '+:count weitere Features',
|
||||||
|
'max_photos_label' => 'Max. Fotos',
|
||||||
|
'max_guests_label' => 'Max. Gäste',
|
||||||
|
'gallery_days_label' => 'Galerie-Tage',
|
||||||
|
'feature_overview' => 'Feature-Überblick',
|
||||||
|
'order_hint' => 'Sofort startklar – keine versteckten Kosten, sichere Zahlung via Stripe oder PayPal.',
|
||||||
|
'features_label' => 'Features',
|
||||||
|
'breakdown_label' => 'Leistungsübersicht',
|
||||||
|
'limits_label' => 'Limits & Kapazitäten',
|
||||||
],
|
],
|
||||||
'nav' => [
|
'nav' => [
|
||||||
'home' => 'Startseite',
|
'home' => 'Startseite',
|
||||||
@@ -146,4 +160,4 @@ return [
|
|||||||
'currency' => [
|
'currency' => [
|
||||||
'euro' => '€',
|
'euro' => '€',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -29,4 +29,7 @@ return [
|
|||||||
'account_deletion_desc' => 'You have the right to have your personal data deleted at any time (right to erasure, Art. 17 GDPR). Contact us at [Email] to delete your account. All associated data (events, photos, purchases) will be deleted, unless legal retention obligations exist.',
|
'account_deletion_desc' => 'You have the right to have your personal data deleted at any time (right to erasure, Art. 17 GDPR). Contact us at [Email] to delete your account. All associated data (events, photos, purchases) will be deleted, unless legal retention obligations exist.',
|
||||||
'data_security' => 'Data Security',
|
'data_security' => 'Data Security',
|
||||||
'data_security_desc' => 'We use HTTPS, encrypted storage (passwords hashed) and regular backups. Access to data is role-based restricted (Tenant vs SuperAdmin).',
|
'data_security_desc' => 'We use HTTPS, encrypted storage (passwords hashed) and regular backups. Access to data is role-based restricted (Tenant vs SuperAdmin).',
|
||||||
];
|
'agb' => 'Terms & Conditions',
|
||||||
|
'effective_from' => 'Effective from :date',
|
||||||
|
'version' => 'Version :version',
|
||||||
|
];
|
||||||
|
|||||||
@@ -50,6 +50,20 @@ return [
|
|||||||
'feature_reseller_dashboard' => 'Reseller Dashboard',
|
'feature_reseller_dashboard' => 'Reseller Dashboard',
|
||||||
'feature_custom_branding' => 'Custom Branding',
|
'feature_custom_branding' => 'Custom Branding',
|
||||||
'feature_advanced_reporting' => 'Advanced Reporting',
|
'feature_advanced_reporting' => 'Advanced Reporting',
|
||||||
|
'badge_most_popular' => 'Most Popular',
|
||||||
|
'badge_best_value' => 'Best Value',
|
||||||
|
'badge_starter' => 'Perfect Starter',
|
||||||
|
'billing_per_event' => 'per event',
|
||||||
|
'billing_per_year' => 'per year',
|
||||||
|
'more_features' => '+:count more features',
|
||||||
|
'max_photos_label' => 'Max. photos',
|
||||||
|
'max_guests_label' => 'Max. guests',
|
||||||
|
'gallery_days_label' => 'Gallery days',
|
||||||
|
'feature_overview' => 'Feature overview',
|
||||||
|
'order_hint' => 'Ready to launch instantly – secure Stripe or PayPal checkout, no hidden fees.',
|
||||||
|
'features_label' => 'Features',
|
||||||
|
'breakdown_label' => 'At-a-glance',
|
||||||
|
'limits_label' => 'Limits & Capacity',
|
||||||
],
|
],
|
||||||
'nav' => [
|
'nav' => [
|
||||||
'home' => 'Home',
|
'home' => 'Home',
|
||||||
@@ -146,4 +160,4 @@ return [
|
|||||||
'currency' => [
|
'currency' => [
|
||||||
'euro' => '€',
|
'euro' => '€',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
<footer class="bg-gray-800 text-white py-8 px-4">
|
<footer class="bg-gray-800 text-white py-8 px-4">
|
||||||
<div class="container mx-auto text-center">
|
<div class="container mx-auto text-center">
|
||||||
<p>© 2025 {{ __('marketing.footer.company') }}. {{ __('marketing.footer.rights_reserved') }}</p>
|
<p>© 2025 {{ __('marketing.footer.company') }}. {{ __('marketing.footer.rights_reserved') }}</p>
|
||||||
<div class="mt-4 space-x-4">
|
<div class="mt-4 flex flex-wrap items-center justify-center gap-3 text-sm font-medium">
|
||||||
<a href="{{ route('impressum') }}" class="hover:text-[#FFB6C1]">{{ __('legal.impressum') }}</a>
|
<a href="{{ route('impressum') }}" class="transition-colors hover:text-[#FFB6C1]">{{ __('legal.impressum') }}</a>
|
||||||
<a href="{{ route('datenschutz') }}" class="hover:text-[#FFB6C1]">{{ __('legal.datenschutz') }}</a>
|
<span class="text-white/40">•</span>
|
||||||
<a href="{{ route('kontakt') }}" class="hover:text-[#FFB6C1]">{{ __('marketing.nav.contact') }}</a>
|
<a href="{{ route('datenschutz') }}" class="transition-colors hover:text-[#FFB6C1]">{{ __('legal.datenschutz') }}</a>
|
||||||
|
<span class="text-white/40">•</span>
|
||||||
|
<a href="{{ route('agb') }}" class="transition-colors hover:text-[#FFB6C1]">{{ __('legal.agb') }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use App\Http\Controllers\MarketingController;
|
|
||||||
use App\Http\Controllers\CheckoutController;
|
use App\Http\Controllers\CheckoutController;
|
||||||
use App\Http\Controllers\LocaleController;
|
use App\Http\Controllers\LocaleController;
|
||||||
|
use App\Http\Controllers\LegalPageController;
|
||||||
|
use App\Http\Controllers\MarketingController;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use Inertia\Inertia;
|
use Inertia\Inertia;
|
||||||
|
|
||||||
@@ -17,13 +18,15 @@ Route::get('/contact', [MarketingController::class, 'contactView'])->name('conta
|
|||||||
Route::post('/contact', [MarketingController::class, 'contact'])->name('contact.submit');
|
Route::post('/contact', [MarketingController::class, 'contact'])->name('contact.submit');
|
||||||
|
|
||||||
// Legal pages
|
// Legal pages
|
||||||
Route::get('/datenschutz', function () {
|
Route::get('/impressum', [LegalPageController::class, 'show'])
|
||||||
return Inertia::render('legal/Datenschutz');
|
->name('impressum')
|
||||||
})->name('datenschutz');
|
->defaults('slug', 'impressum');
|
||||||
|
Route::get('/datenschutz', [LegalPageController::class, 'show'])
|
||||||
Route::get('/impressum', function () {
|
->name('datenschutz')
|
||||||
return Inertia::render('legal/Impressum');
|
->defaults('slug', 'datenschutz');
|
||||||
})->name('impressum');
|
Route::get('/agb', [LegalPageController::class, 'show'])
|
||||||
|
->name('agb')
|
||||||
|
->defaults('slug', 'agb');
|
||||||
|
|
||||||
Route::get('/kontakt', function () {
|
Route::get('/kontakt', function () {
|
||||||
return Inertia::render('marketing/Kontakt');
|
return Inertia::render('marketing/Kontakt');
|
||||||
|
|||||||
Reference in New Issue
Block a user