summaryrefslogtreecommitdiff
path: root/resources/views/toolbar/select-filter.blade.php
blob: 20a77a6a8dcc704f46b1fcd583c81c1acddb64e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div class="filter d-flex align-items-center">
    @if ($label)
        <label for="{{ $id }}" class="mx-3">
            {{ $label }}
        </label>
    @endif
    <select
        id="{{ $id }}"
        class="form-select"
        wire:model.live="filters.{{ $key }}"
        {{ $attributes }}
    >
        @if (!empty($placeholder))
            <option value="">
                {{ $placeholder }}
            </option>
        @endif
        @foreach ($options as $value => $option)
            <option value="{{ $value }}">
                {{ $option }}
            </option>
        @endforeach
    </select>
</div>