<div class="card shadow">
    <div class="card-header">
        <span class="h6 title-decorative">Filter stavu informácií</span>
    </div>
    <div class="card-body">
        <nav class="nav flex-md-column">
            <a wire:click.prevent="$dispatch('filterByStatus')" href="#" class="nav-link ml-2">Všetky</a>
            <hr class="my-1">
            @foreach($this->states() as $case)
                <a wire:click.prevent="$dispatch('filterByStatus', '{{ $case->name }}')" href="#" class="nav-link">
                    <x-badge type="indicator" class="mr-1" :color="$case->color()"></x-badge>
                    {{ Str::ucfirst($case->getLabel()) }}
                </a>
            @endforeach
        </nav>
    </div>
</div>