
<div class="card card-custom">
    <div class="card-body">
        <form method="get" id="filter_form">
            <div class="row">
                <div class="form-group col-lg-2">
                    <select class="custom-select" name="filter_row" id="filter_row">
                        <option value="">Tampilkan</option>
                        <option value="10" selected>10 Baris</option>
                        <option value="30">30 Baris</option>
                        <option value="50">50 Baris</option>
                        <option value="100">100 Baris</option>
                    </select>
                </div>
                <div class="form-group col-lg-2">						
                    <select class="form-control" name="created_at" id="created_at" data-toggle="select2">
                        <option value="" selected>Pukul Dibuat</option>
                        @foreach($created_at as $item)
                            <option value="{{ $item->created_at }}">{{ \Carbon\Carbon::parse($item->created_at)->translatedFormat('H:i:s \W\I\B') }}</option>
                        @endforeach
                    </select>
                </div>
                <div class="form-group col-lg-2">
                    <select class="form-control" name="updated_at" id="updated_at" data-toggle="select2">
                        <option value="" selected>Pukul Diperbarui</option>
                        @foreach($updated_at as $item)
                            <option value="{{ $item->updated_at }}">{{ \Carbon\Carbon::parse($item->updated_at)->translatedFormat('H:i:s \W\I\B') }}</option>
                        @endforeach
                    </select>
                </div>
                <div class="form-group col-lg-6">
                    <select class="form-control" name="filter_service" id="filter_service" data-toggle="select2">
                        <option value="" selected>Layanan</option>
                        @foreach($services as $item)
                            @if ($item->service == true)
                            <option value="{{ $item->service->name }}">{{ $item->service->name }}</option>
                            @else
                                @if ($item->service_name <> null)
                                    <option value="{{ $item->service_name }}">{{ $item->service_name }}</option>
                                @endif
                            @endif
                        @endforeach
                    </select>
                </div>
                <div class="form-group col-lg-12">
                    <input type="text" class="form-control" name="search" id="search" placeholder="Cari">
                </div>
                <div class="form-group col-6 button-items d-grid gap-2">
                    <button type="reset" class="btn btn-secondary btn-block waves-effect waves-light mt-0"><i class="mdi mdi-refresh"></i> Reset</button>
                </div>
                <div class="form-group col-6 button-items d-grid gap-2">
                    <button type="submit" class="btn btn-custom btn-block waves-effect waves-light mt-0"><i class="mdi mdi-filter"></i> Filter</button>
                </div>
            </div>
        </form>
    </div>
</div>