<form action="" method="get">
    {{csrf_field()}}
    <div class="row mt-3">
        <div class="row">
            <div class="col-12 col-lg-3 mt-3 mt-lg-0">
                <select class=" form-control" name="filter_user" id="filter_user">
                    <option value="0">انتخاب کاربر</option>
                    @foreach ($user_worker as $userInfo)
                    <option value="{{$userInfo->id}}">{{$userInfo->first_name}} {{$userInfo->last_name}}</option>
                    @endforeach
                </select>
            </div>
            <div class="col-12 col-lg-2 mt-3 mt-lg-0 d-flex justify-content-between">
                <button type="submit" class=" btn btn-primary">ویرایش</button>
                @if(request('filter_user'))
                <a href="{{ request()->url() }}" class="btn btn-outline-secondary">حذف فیلتر</a>
                @endif
            </div>
        </div>
    </div>
</form>