<form action="{{ $filterFormActionRoute }}" method="post">
    @csrf
    <div class="form-group row">
        <label class="col-2 col-form-label" for="datefilter">Zvoľte obdobie filtrácie</label>
        <div class="col-8">
            <select class="custom-select" name="datefilter" id="datefilter">
                @foreach(\Seka\Portal\Modul\Statistiky\Http\View\ZaznamDatumFilterEnum::toArray() as $key => $label)
                    <option @if($datefilter->equals(\Seka\Portal\Modul\Statistiky\Http\View\ZaznamDatumFilterEnum::make($key))) selected @endif value="{{ $key }}">{{ $label }}</option>
                @endforeach
            </select>
        </div>
        <div class="col-2">
            <button type="submit" class="btn btn-primary float-right">
                <i class="icon-calendar"></i>
                Filtrovať
            </button>
        </div>
    </div>
</form>