12-05-2026 admin, Panel Displays

This commit is contained in:
Kevin Adametz 2026-05-12 18:28:38 +02:00
parent 0762e3beac
commit 6a65354f4c
43 changed files with 3273 additions and 410 deletions

View file

@ -1,7 +1,7 @@
<div>
<flux:header class="mb-6">
<flux:heading size="xl">{{ __('Display-Versionen') }}</flux:heading>
<flux:subheading>{{ __('Erstellen und verwalten Sie Inhalts-Versionen für Ihre Displays') }}</flux:subheading>
<flux:heading size="xl">{{ __('Display-Module') }}</flux:heading>
<flux:subheading>{{ __('Erstellen und verwalten Sie wiederverwendbare Inhalts-Module für Ihre Displays') }}</flux:subheading>
</flux:header>
@if (session()->has('success'))
@ -13,18 +13,18 @@
<flux:card>
<div class="flex items-center justify-between mb-6">
<div>
<flux:heading size="lg">{{ __('Versionen') }}</flux:heading>
<flux:subheading>{{ __('Jede Version enthält Inhalte eines bestimmten Typs') }}</flux:subheading>
<flux:heading size="lg">{{ __('Module') }}</flux:heading>
<flux:subheading>{{ __('Jedes Modul enthält Inhalte eines bestimmten Typs') }}</flux:subheading>
</div>
<flux:button wire:click="openCreateModal" icon="plus" variant="primary">
{{ __('Version erstellen') }}
{{ __('Modul erstellen') }}
</flux:button>
</div>
@if($versions->isEmpty())
<div class="text-center py-12 text-zinc-500 dark:text-zinc-400">
<flux:icon.rectangle-group class="w-16 h-16 mx-auto mb-4 opacity-50" />
<p>{{ __('Noch keine Versionen vorhanden. Erstellen Sie Ihre erste Version!') }}</p>
<p>{{ __('Noch keine Module vorhanden. Erstellen Sie Ihr erstes Modul!') }}</p>
</div>
@else
<div class="space-y-3">
@ -37,7 +37,7 @@
<flux:badge :color="$version->is_active ? 'green' : 'zinc'" size="sm">
{{ $version->is_active ? __('Aktiv') : __('Inaktiv') }}
</flux:badge>
<a href="{{ route('admin.cms.display-version-edit', $version) }}"
<a href="{{ route('admin.cms.display-module-edit', $version) }}"
wire:navigate
class="font-semibold text-sm hover:underline">
{{ $version->name }}
@ -63,7 +63,7 @@
:icon="$version->is_active ? 'eye-slash' : 'eye'">
</flux:button>
<flux:button :href="route('admin.cms.display-version-edit', $version)"
<flux:button :href="route('admin.cms.display-module-edit', $version)"
wire:navigate
size="sm"
variant="ghost"
@ -71,7 +71,7 @@
</flux:button>
<flux:button wire:click="deleteVersion({{ $version->id }})"
wire:confirm="Möchten Sie diese Version wirklich löschen? Alle zugehörigen Inhalte werden ebenfalls gelöscht."
wire:confirm="Möchten Sie dieses Modul wirklich löschen? Alle zugehörigen Inhalte werden ebenfalls gelöscht."
size="sm"
variant="ghost"
icon="trash"
@ -89,7 +89,7 @@
<form wire:submit.prevent="createVersion">
<div class="space-y-6">
<div>
<flux:heading size="lg">{{ __('Neue Version erstellen') }}</flux:heading>
<flux:heading size="lg">{{ __('Neues Modul erstellen') }}</flux:heading>
</div>
<flux:input wire:model="newName" label="Name" placeholder="z.B. Herbst 2025 Video" />