<div class="card shadow">
    <div class="card-header">
        <span class="h6 title-decorative">Filter pracoviska</span>
    </div>
    <div class="card-body">
        <select id="kod_pek" name="kod_pek" class="custom-select"
                wire:model.change="kod">
            <option @if(empty($this->kod)) selected="selected" @endif value="">Všetky</option>
            @foreach($pracoviska as $pracovisko)
                <option value="{{ $pracovisko->kod }}" @if($pracovisko->kod == $kod) selected="selected"
                        @endif wire:key="wk-{{ $pracovisko->kod }}">{{ $pracovisko->kod }}
                    - {{ $pracovisko->nazov }}</option>
            @endforeach
        </select>
    </div>
</div>
