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

@ -18,23 +18,38 @@ new #[Layout('components.layouts.app'), Title('Rollen & Rechte')] class extends
}
}; ?>
<div class="space-y-6">
<flux:card>
<div class="flex items-center justify-between gap-4">
<div>
<flux:heading size="lg">{{ __('Rollen') }}</flux:heading>
<flux:subheading>{{ __('Verwaltung von Rollen und Berechtigungen') }}</flux:subheading>
<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 · Sicherheit') }}</span>
</div>
<h1 class="text-[30px] font-bold tracking-[-0.6px] leading-[1.15] m-0 text-[color:var(--color-ink)]">
{{ __('Rollen') }}
</h1>
<p class="text-[13px] leading-[1.55] mt-2 m-0 max-w-[640px] text-[color:var(--color-ink-2)]">
{{ __('Verwaltung von Rollen und Berechtigungen') }}
</p>
</div>
<div class="flex items-center gap-2 flex-shrink-0">
@if (\Illuminate\Support\Facades\Route::has('admin.roles.create'))
<flux:button icon="plus" href="{{ route('admin.roles.create') }}" wire:navigate>
<flux:button variant="primary" icon="plus" href="{{ route('admin.roles.create') }}" wire:navigate>
{{ __('Neue Rolle') }}
</flux:button>
@endif
</div>
</flux:card>
</header>
<flux:card class="overflow-hidden">
<article class="panel overflow-hidden">
<div class="panel-head">
<span class="section-eyebrow">{{ __('Alle Rollen') }}</span>
<span class="text-[11.5px] text-[color:var(--color-ink-3)]">
{{ __(':count Einträge', ['count' => $roles->count()]) }}
</span>
</div>
<flux:table>
<flux:table.columns>
<flux:table.column>{{ __('Name') }}</flux:table.column>
@ -45,28 +60,28 @@ new #[Layout('components.layouts.app'), Title('Rollen & Rechte')] class extends
</flux:table.columns>
<flux:table.rows>
@forelse($roles as $role)
@forelse ($roles as $role)
<flux:table.row :key="$role->id">
<flux:table.cell>
<div>
<flux:text weight="semibold">{{ str($role->name)->replace('-', ' ')->title() }}</flux:text>
<flux:text class="text-xs text-zinc-500">{{ $role->name }}</flux:text>
<div class="text-[13px] font-semibold text-[color:var(--color-ink)]">{{ str($role->name)->replace('-', ' ')->title() }}</div>
<div class="text-[11.5px] text-[color:var(--color-ink-3)] font-mono">{{ $role->name }}</div>
</div>
</flux:table.cell>
<flux:table.cell>
<flux:badge color="zinc" size="sm">{{ $role->users_count }}</flux:badge>
<span class="badge dot">{{ $role->users_count }}</span>
</flux:table.cell>
<flux:table.cell>
<flux:badge color="blue" size="sm">{{ $role->permissions_count }}</flux:badge>
<span class="badge hub">{{ $role->permissions_count }}</span>
</flux:table.cell>
<flux:table.cell>
@if(in_array($role->name, ['admin', 'editor', 'customer', 'api-only'], true))
<flux:badge color="purple" size="sm">{{ __('System') }}</flux:badge>
@if (in_array($role->name, ['admin', 'editor', 'customer', 'api-only'], true))
<span class="badge hub dot">{{ __('System') }}</span>
@else
<flux:badge color="green" size="sm">{{ __('Custom') }}</flux:badge>
<span class="badge ok dot">{{ __('Custom') }}</span>
@endif
</flux:table.cell>
@ -79,14 +94,19 @@ new #[Layout('components.layouts.app'), Title('Rollen & Rechte')] class extends
@empty
<flux:table.row>
<flux:table.cell colspan="5">
<div class="flex flex-col items-center justify-center py-10">
<flux:icon.shield-check class="size-10 text-zinc-400" />
<flux:text class="mt-3 text-zinc-500">{{ __('Keine Rollen 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.shield-check class="size-6" />
</div>
<div class="text-[14px] font-semibold text-[color:var(--color-ink)] mb-1">
{{ __('Keine Rollen gefunden') }}
</div>
</div>
</flux:table.cell>
</flux:table.row>
@endforelse
</flux:table.rows>
</flux:table>
</flux:card>
</article>
</div>