Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m29s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m31s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m56s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 4m2s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 5m20s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 5m22s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 4m42s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 4m41s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m18s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
83 lines
5.9 KiB
PHP
83 lines
5.9 KiB
PHP
<x-filament-panels::page>
|
||
<div class="grid gap-6">
|
||
{{-- Kennzahlen --}}
|
||
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4">
|
||
@foreach ($stats as $stat)
|
||
<{{ $stat['url'] ? 'a' : 'div' }} @if ($stat['url']) href="{{ $stat['url'] }}" @endif
|
||
class="group flex items-start gap-3 rounded-xl bg-white p-4 shadow-xs ring-1 ring-gray-950/5 transition hover:ring-primary-500/40 dark:bg-gray-900 dark:ring-white/10">
|
||
<span class="grid size-10 shrink-0 place-items-center rounded-lg bg-primary-50 text-primary-600 dark:bg-primary-500/10 dark:text-primary-400">
|
||
<x-filament::icon :icon="$stat['icon']" class="size-5" />
|
||
</span>
|
||
<span class="min-w-0">
|
||
<span class="block text-xs font-medium text-gray-500 dark:text-gray-400">{{ $stat['label'] }}</span>
|
||
<span class="block truncate text-2xl font-semibold tracking-tight text-gray-950 tabular-nums dark:text-white">{{ $stat['value'] }}</span>
|
||
<span class="block truncate text-xs text-gray-500">{{ $stat['hint'] }}</span>
|
||
</span>
|
||
</{{ $stat['url'] ? 'a' : 'div' }}>
|
||
@endforeach
|
||
</div>
|
||
|
||
<div class="grid grid-cols-1 gap-6 xl:grid-cols-3">
|
||
<div class="grid content-start gap-6 xl:col-span-2">
|
||
{{-- Wartet auf Sie --}}
|
||
<section class="rounded-xl bg-white shadow-xs ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10">
|
||
<h2 class="border-b border-gray-950/5 px-5 py-3 text-sm font-semibold text-gray-950 dark:border-white/10 dark:text-white">Wartet auf Sie</h2>
|
||
@forelse ($tasks as $task)
|
||
<a href="{{ $task['url'] }}" class="flex items-center gap-3 border-b border-gray-950/5 px-5 py-3 last:border-b-0 hover:bg-gray-50 dark:border-white/10 dark:hover:bg-white/5">
|
||
<span @class([
|
||
'size-2 shrink-0 rounded-full',
|
||
'bg-warning-500' => $task['tone'] === 'warning',
|
||
'bg-danger-500' => $task['tone'] === 'danger',
|
||
])></span>
|
||
<span class="min-w-0 flex-1">
|
||
<span class="block text-sm font-medium text-gray-950 dark:text-white">{{ $task['label'] }}</span>
|
||
<span class="block text-xs text-gray-500">{{ $task['detail'] }}</span>
|
||
</span>
|
||
<x-filament::icon icon="heroicon-m-chevron-right" class="size-4 text-gray-400" />
|
||
</a>
|
||
@empty
|
||
<p class="flex items-center gap-2 px-5 py-4 text-sm text-gray-500">
|
||
<x-filament::icon icon="heroicon-o-check-circle" class="size-5 text-success-500" />
|
||
Alles erledigt – nichts wartet auf Sie.
|
||
</p>
|
||
@endforelse
|
||
</section>
|
||
|
||
{{-- Letzte Änderungen --}}
|
||
@if ($activity)
|
||
<section class="rounded-xl bg-white shadow-xs ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10">
|
||
<h2 class="border-b border-gray-950/5 px-5 py-3 text-sm font-semibold text-gray-950 dark:border-white/10 dark:text-white">Letzte Änderungen</h2>
|
||
<ol class="divide-y divide-gray-950/5 dark:divide-white/10">
|
||
@foreach ($activity as $entry)
|
||
<li class="flex items-baseline gap-3 px-5 py-2.5 text-sm">
|
||
<span class="min-w-0 flex-1 truncate">
|
||
<span class="font-medium text-gray-950 dark:text-white">{{ $entry['label'] }}</span>
|
||
@if ($entry['detail'])<span class="text-gray-500"> · {{ $entry['detail'] }}</span>@endif
|
||
</span>
|
||
<span class="shrink-0 text-xs text-gray-500" title="{{ $entry['when'] }}">{{ $entry['who'] ? $entry['who'].', ' : '' }}{{ $entry['ago'] }}</span>
|
||
</li>
|
||
@endforeach
|
||
</ol>
|
||
</section>
|
||
@endif
|
||
</div>
|
||
|
||
{{-- Schnellzugriffe --}}
|
||
<section class="content-start rounded-xl bg-white shadow-xs ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10">
|
||
<h2 class="border-b border-gray-950/5 px-5 py-3 text-sm font-semibold text-gray-950 dark:border-white/10 dark:text-white">Schnellzugriffe</h2>
|
||
<div class="grid grid-cols-2 gap-2 p-3">
|
||
@foreach ($shortcuts as $shortcut)
|
||
<a href="{{ $shortcut['url'] }}" class="flex flex-col items-center gap-2 rounded-lg bg-gray-50 px-2 py-3.5 text-center text-xs font-medium text-gray-700 hover:bg-primary-50 hover:text-primary-700 dark:bg-white/5 dark:text-gray-300 dark:hover:bg-primary-500/10">
|
||
<x-filament::icon :icon="$shortcut['icon']" class="size-5 text-primary-600 dark:text-primary-400" />
|
||
{{ $shortcut['label'] }}
|
||
</a>
|
||
@endforeach
|
||
<a href="/" class="flex flex-col items-center gap-2 rounded-lg bg-gray-50 px-2 py-3.5 text-center text-xs font-medium text-gray-700 hover:bg-primary-50 hover:text-primary-700 dark:bg-white/5 dark:text-gray-300 dark:hover:bg-primary-500/10">
|
||
<x-filament::icon icon="heroicon-o-arrow-top-right-on-square" class="size-5 text-primary-600 dark:text-primary-400" />
|
||
Zum Portal
|
||
</a>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</div>
|
||
</x-filament-panels::page>
|