mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
@blaze
|
|
|
|
@props([
|
|
'heading' => null,
|
|
'subheading' => null,
|
|
'count' => null,
|
|
'badge' => null,
|
|
])
|
|
|
|
@php
|
|
$classes = (string) Flux::classes()
|
|
->add('p-2 flex flex-col')
|
|
;
|
|
|
|
$badgeAttributes = Flux::attributesAfter('badge:', $attributes);
|
|
@endphp
|
|
|
|
<div {{ $attributes->class($classes) }} data-flux-kanban-column-header>
|
|
<div class="flex items-center justify-between min-h-8">
|
|
<div class="px-3 flex items-center gap-1.5">
|
|
{{ $slot }}
|
|
|
|
@if ($heading)
|
|
<flux:heading>{{ $heading }}</flux:heading>
|
|
@endif
|
|
|
|
@if ($count)
|
|
<div class="text-sm text-zinc-500 dark:text-white/70">{{ $count }}</div>
|
|
@endif
|
|
|
|
@if ($badge)
|
|
<flux:badge size="sm" :attributes="$badgeAttributes">{{ $badge }}</flux:badge>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="flex items-center gap-1">
|
|
{{ $actions ?? '' }}
|
|
</div>
|
|
</div>
|
|
|
|
@if ($subheading)
|
|
<div class="px-3 flex items-center gap-1.5 mb-1">
|
|
<flux:subheading>{{ $subheading }}</flux:subheading>
|
|
</div>
|
|
@endif
|
|
</div> |