<div class="col-12">
    <div class="card pb-3">
        <div class="mt-3">
            <form action="">
                <div class="row d-flex align-items-center p-0 m-0">
                    <div class="col-1">
                        <h5>จังหวัด</h5>
                    </div>
                    <div class="col-1">
                        {{-- @dd($provinces); --}}
                        <select name="province" id="province" class="form-select bg-light">
                            <option value="">ทั้งหมด</option>
                            @foreach ($provinces as $key => $province)
                                <option value="{{$key}}" {{ $key == @$search_province ? 'selected' : '' }}>{{$province}}</option>
                            @endforeach
                        </select>
                    </div>

                    <div class="col-1 text-center">
                        <h5>โรงพยาบาล</h5>
                    </div>
                    <div class="col-2">
                        <div>
                            <select class="form-select bg-light" aria-label="Default select example" name="hospital">
                                <option value="All">ทั้งหมด</option>
                                @foreach ($department_hospital as $hospital)
                                    <option value="{{@$hospital['department_name']}}" {{ $hospital['department_name'] == @$search_hospital ? 'selected' : '' }}>{{@$hospital['department_name']}}</option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                    <div class="col-1 text-center">
                        <h5>วันที่</h5>
                    </div>
                    <div class="col-1">
                          <input type="date" class="form-control bg-light" name="start_date" value="{{@$search_start_date}}">

                    </div>
                    <div class="col-1">
                        <input type="date" class="form-control bg-light" name="end_date" value="{{@$search_end_date}}">
                    </div>
                    {{-- <div class="col-1 text-center">
                        <h5>ห้อง</h5>
                    </div>
                    <div class="col-1">
                        <div>
                            <select class="form-select bg-light" aria-label="Default select example" name="station">
                                <option value="All">ทั้งหมด</option>
                                @foreach (isset($filter_room)?$filter_room:[] as $room)
                                    <option value="{{@$room['room_name']}}">{{@$room['room_name']}}</option>
                                @endforeach
                            </select>
                        </div>
                    </div> --}}
                    <div class="col-2 text-center">
                        <button type="submit" name="submit" class="btn btn-primary">กรอง</button>
                    </form>
                        <a href="{{url("dashboardscreening")}}" class="btn btn-warning">ล้างข้อมูล</a>
                    </div>
                    <div class="col text-end">
                        <a href="{{url("login")}}" class="btn btn-success">กลับหน้าหลัก</a>
                    </div>
                    {{-- <span class="text-danger mt-2" style="font-size: 12px;">*หากต้องการค้นหาข้อมูลใหม่ กรุณากดปุ่ม ล้างข้อมูล</span> --}}
                </div>

        </div>
    </div>
</div>
