Rebrand Hub+Flux
Some checks are pending
linter / quality (push) Waiting to run
tests / ci (push) Waiting to run

This commit is contained in:
Kevin Adametz 2026-05-20 15:44:15 +02:00
parent 0a3e52d603
commit 9b47296cea
130 changed files with 9357 additions and 3345 deletions

View file

@ -302,41 +302,59 @@ new #[Layout('components.layouts.app'), Title('Benutzer')] class extends Compone
}
}; ?>
<div class="space-y-6">
<div class="grid grid-cols-1 gap-4 sm:grid-cols-3">
<flux:card>
<div class="flex items-center justify-between">
<div>
<flux:text class="text-sm text-zinc-500 dark:text-zinc-400">{{ __('Gesamt') }}</flux:text>
<flux:text size="xl" weight="bold">{{ $stats['total'] }}</flux:text>
</div>
<flux:icon.users class="size-8 text-blue-500" />
<div class="space-y-8">
{{-- ============== PAGE HEADER ============== --}}
<header class="grid items-end gap-8" style="grid-template-columns:1fr auto;">
<div class="min-w-0">
<div class="flex items-center gap-3 mb-3 flex-nowrap whitespace-nowrap">
<span class="badge hub dot">{{ __('Admin Backend') }}</span>
<span class="eyebrow muted">{{ __('Administration · User-Verwaltung') }}</span>
</div>
</flux:card>
<h1 class="text-[30px] font-bold tracking-[-0.6px] leading-[1.15] m-0 text-[color:var(--color-ink)]">
{{ __('Benutzer') }}
</h1>
<p class="text-[13px] leading-[1.55] mt-2 m-0 max-w-[640px] text-[color:var(--color-ink-2)]">
{{ __('Alle Konten der Plattform mit Rollen, Berechtigungen und Migrations-/Pflegefällen.') }}
</p>
</div>
<flux:card>
<div class="flex items-center justify-between">
<div>
<flux:text class="text-sm text-zinc-500 dark:text-zinc-400">{{ __('Aktiv') }}</flux:text>
<flux:text size="xl" weight="bold">{{ $stats['active'] }}</flux:text>
<div class="flex items-center gap-2 flex-shrink-0">
<flux:button variant="primary" icon="plus" href="{{ route('admin.users.create') }}" wire:navigate>
{{ __('Benutzer anlegen') }}
</flux:button>
</div>
</header>
{{-- ============== KPI-Reihe ============== --}}
<section class="grid grid-cols-1 gap-4 sm:grid-cols-3">
<x-portal.stat-card variant="primary" :label="__('Gesamt')" :value="number_format($stats['total'])">
<x-slot:meta>{{ __('User-Konten') }}</x-slot:meta>
<x-slot:trend>{{ __('alle Portale') }}</x-slot:trend>
</x-portal.stat-card>
<x-portal.stat-card variant="ok" :label="__('Aktiv')" :value="number_format($stats['active'])">
<x-slot:meta>{{ __('Login möglich') }}</x-slot:meta>
<x-slot:trend>{{ __('Produktiv') }}</x-slot:trend>
</x-portal.stat-card>
<x-portal.stat-card variant="muted" :label="__('Inaktiv')" :value="number_format($stats['inactive'])">
<x-slot:meta>{{ __('gesperrt / archiviert') }}</x-slot:meta>
<x-slot:trend>{{ __('kein Login') }}</x-slot:trend>
</x-portal.stat-card>
</section>
{{-- ============== FILTER-PANEL ============== --}}
<article class="panel">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Filter & Suche') }}</span>
@if ($search || $activeFilter !== 'all' || $portalFilter !== 'all' || $roleFilter !== 'all' || $qualityFilter !== 'all' || $permissionFilter !== 'all')
<div class="flex items-center gap-2">
<span class="badge hub dot">{{ __('Filter aktiv') }}</span>
<flux:button size="sm" variant="ghost" icon="arrow-path" type="button" wire:click="resetFilters">
{{ __('Zurücksetzen') }}
</flux:button>
</div>
<flux:icon.check-circle class="size-8 text-green-500" />
</div>
</flux:card>
<flux:card>
<div class="flex items-center justify-between">
<div>
<flux:text class="text-sm text-zinc-500 dark:text-zinc-400">{{ __('Inaktiv') }}</flux:text>
<flux:text size="xl" weight="bold">{{ $stats['inactive'] }}</flux:text>
</div>
<flux:icon.x-circle class="size-8 text-red-500" />
</div>
</flux:card>
</div>
<flux:card>
<div class="flex flex-col gap-4">
@endif
</div>
<div class="p-5 space-y-4">
<div class="flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between">
<flux:input wire:model.live.debounce.300ms="search" placeholder="{{ __('Name oder E-Mail suchen...') }}"
icon="magnifying-glass" class="lg:max-w-sm" />
@ -357,7 +375,7 @@ new #[Layout('components.layouts.app'), Title('Benutzer')] class extends Compone
<flux:select wire:model.live="roleFilter" class="sm:w-44">
<option value="all">{{ __('Alle Rollen') }}</option>
@foreach($availableRoles as $roleName)
@foreach ($availableRoles as $roleName)
<option value="{{ $roleName }}">{{ $roleName }}</option>
@endforeach
</flux:select>
@ -383,28 +401,22 @@ new #[Layout('components.layouts.app'), Title('Benutzer')] class extends Compone
</div>
</div>
<div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div class="flex flex-wrap gap-2">
@if($search || $activeFilter !== 'all' || $portalFilter !== 'all' || $roleFilter !== 'all' || $qualityFilter !== 'all' || $permissionFilter !== 'all')
<flux:badge color="blue" size="sm">{{ __('Filter aktiv') }}</flux:badge>
<flux:button size="sm" variant="ghost" type="button" wire:click="resetFilters">
{{ __('Zurücksetzen') }}
</flux:button>
@else
<flux:text class="text-sm text-zinc-500">
{{ __('Nutze die Filter, um offene Migrations- und Pflegefälle schnell zu finden.') }}
</flux:text>
@endif
</div>
<flux:button icon="plus" href="{{ route('admin.users.create') }}" wire:navigate>
{{ __('Benutzer anlegen') }}
</flux:button>
</div>
@if (! ($search || $activeFilter !== 'all' || $portalFilter !== 'all' || $roleFilter !== 'all' || $qualityFilter !== 'all' || $permissionFilter !== 'all'))
<p class="text-[12px] text-[color:var(--color-ink-3)] m-0">
{{ __('Nutze die Filter, um offene Migrations- und Pflegefälle schnell zu finden.') }}
</p>
@endif
</div>
</flux:card>
</article>
<flux:card class="overflow-hidden">
{{-- ============== TABELLE ============== --}}
<article class="panel overflow-hidden">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Alle Benutzer') }}</span>
<span class="text-[11.5px] text-[color:var(--color-ink-3)]">
{{ __(':count Einträge', ['count' => $users->count()]) }}
</span>
</div>
<flux:table>
<flux:table.columns>
<flux:table.column>{{ __('Aktionen') }}</flux:table.column>
@ -558,9 +570,14 @@ new #[Layout('components.layouts.app'), Title('Benutzer')] class extends Compone
@empty
<flux:table.row>
<flux:table.cell colspan="9">
<div class="flex flex-col items-center justify-center py-12">
<flux:icon.users class="size-12 text-zinc-400 dark:text-zinc-600" />
<flux:text class="mt-4 text-zinc-500">{{ __('Keine Benutzer gefunden') }}</flux:text>
<div class="flex flex-col items-center justify-center px-4 py-10 text-center">
<div class="w-14 h-14 rounded-[6px] flex items-center justify-center mb-3
bg-[color:var(--color-hub-soft)] border border-[color:var(--color-hub-soft-2)] text-[color:var(--color-hub)]">
<flux:icon.users class="size-6" />
</div>
<div class="text-[14px] font-semibold text-[color:var(--color-ink)] mb-1">
{{ __('Keine Benutzer gefunden') }}
</div>
</div>
</flux:table.cell>
</flux:table.row>
@ -568,10 +585,10 @@ new #[Layout('components.layouts.app'), Title('Benutzer')] class extends Compone
</flux:table.rows>
</flux:table>
<div class="border-t border-zinc-200 p-4 dark:border-zinc-700">
<div class="border-t border-[color:var(--color-bg-rule)] p-4">
{{ $users->links() }}
</div>
</flux:card>
</article>
<flux:modal name="user-details" class="w-full max-w-5xl" scroll="body">
<div class="space-y-6">