<div class="card shadow">
    <div class="card-header">
        <span class="h6 title-decorative">Filter stavu udalosti</span>
    </div>
    <div class="card-body">
        <nav class="nav flex-md-column">
            <a wire:click.prevent="$dispatch('filtrovatPodlaStavuUdalosti')" href="#" class="nav-link">
                <span class="badge badge-indicator badge-light mr-1"></span>
                Všetky
            </a>
            <hr class="my-1">
            @foreach($this->zoznam() as $case)
                <a wire:click.prevent="$dispatch('filtrovatPodlaStavuUdalosti', '{{ $case->name }}')" href="#"
                   class="nav-link w-100 text-truncate">
                    <x-badge type="indicator" class="mr-1"
                             :color="$case->color()"></x-badge>
                    {{ Str::ucfirst($case->label()) }}
                </a>
            @endforeach
        </nav>
    </div>
</div>