mailwolt/resources/views/livewire/ui/system/services-card.blade.php

34 lines
1.6 KiB
PHP

<div wire:poll.15s="load" class="glass-card p-4">
<div class="flex items-center justify-between mb-3">
<div class="inline-flex items-center gap-2 rounded-full bg-white/5 border border-white/10 px-2.5 py-1">
<i class="ph ph-gear-six text-white/70 text-[13px]"></i>
<span class="text-[11px] tracking-wide uppercase text-white/70">Dienste</span>
</div>
</div>
<ul class="overflow-auto divide-y divide-white/5 max-h-96">
@forelse($servicesCompact as $s)
<li class="grid grid-cols-[auto,1fr,auto] items-center gap-3 py-2">
<div class="flex items-center justify-between w-full">
<div>
<div class="flex items-center gap-2">
<span class="h-2 w-2 rounded-full {{ $s['dotClass'] }}"></span>
<div class="min-w-0">
<div class="text-white/90 truncate">{{ $s['label'] }}</div>
</div>
</div>
@if($s['hint'])
<div class="text-[11px] text-white/45 truncate">{{ $s['hint'] }}</div>
@endif
</div>
<span class="justify-self-end inline-flex items-center px-2.5 py-0.5 rounded-full text-xs border {{ $s['pillClass'] }}">
{{ $s['pillText'] }}
</span>
</div>
</li>
@empty
<li class="py-2 text-white/50 text-sm">Keine Daten.</li>
@endforelse
</ul>
</div>