<div class="card-body">
    <form action="{{ route('admin.orders.index') }}" method="GET">
        <div class="row">
            <div class="col-2">
                <div class="form-group">
                    <input type="text"
                           class="form-control"
                           name="keyword"
                           placeholder="Search here"
                           value="{{ old('keyword'), request()->input('keyword') }}">
                </div>
            </div>
            <div class="col-2">
                <div class="form-group">
                    <select name="status" class="form-control">
                        <option value="">---</option>
                        <option value="0" {{ old('active', request()->input('status') == '0' ? 'selected' : '') }}>New order</option>
                        <option value="1" {{ old('active', request()->input('status') == '1' ? 'selected' : '') }}>Paid</option>
                        <option value="2" {{ old('active', request()->input('status') == '2' ? 'selected' : '') }}>Under process</option>
                        <option value="3" {{ old('active', request()->input('status') == '3' ? 'selected' : '') }}>Finished</option>
                        <option value="4" {{ old('active', request()->input('status') == '4' ? 'selected' : '') }}>Rejected</option>
                        <option value="5" {{ old('active', request()->input('status') == '5' ? 'selected' : '') }}>Canceled</option>
                        <option value="6" {{ old('active', request()->input('status') == '6' ? 'selected' : '') }}>Refund requested</option>
                        <option value="7" {{ old('active', request()->input('status') == '7' ? 'selected' : '') }}>Refunded order</option>
                        <option value="8" {{ old('active', request()->input('status') == '8' ? 'selected' : '') }}>Returned order</option>
                    </select>
                </div>
            </div>
            <div class="col-2">
                <div class="form-group">
                    <select name="sortBy" class="form-control">
                        <option value="">---</option>
                        <option value="id" {{ old('sortBy', request()->input('sortBy') == 'id' ? 'selected' : '') }}>ID</option>
                        <option value="name" {{ old('sortBy', request()->input('sortBy') == 'name' ? 'selected' : '') }}>Name</option>
                        <option value="created_at" {{ old('sortBy', request()->input('sortBy') == 'created_at' ? 'selected' : '') }}>Create At</option>
                    </select>
                </div>
            </div>
            <div class="col-2">
                <div class="form-group">
                    <select name="orderBy" class="form-control">
                        <option value="">---</option>
                        <option value="asc" {{ old('orderBy', request()->input('orderBy') == 'asc' ? 'selected' : '') }}>Ascending</option>
                        <option value="desc" {{ old('orderBy', request()->input('orderBy') == 'desc' ? 'selected' : '') }}>Descending</option>
                    </select>
                </div>
            </div>
            <div class="col-2">
                <div class="form-group">
                    <select name="limitBy" class="form-control">
                        <option value="">---</option>
                        <option value="10" {{ old('limitBy', request()->input('limitBy') == '10' ? 'selected' : '') }}>10</option>
                        <option value="20" {{ old('limitBy', request()->input('limitBy') == '20' ? 'selected' : '') }}>20</option>
                        <option value="50" {{ old('limitBy', request()->input('limitBy') == '50' ? 'selected' : '') }}>50</option>
                        <option value="100" {{ old('limitBy', request()->input('limitBy') == '100' ? 'selected' : '') }}>100</option>
                    </select>
                </div>
            </div>
            <div class="col-1">
                <div class="form-group">
                    <button type="submit" name="submit" class="btn btn-link">Search</button>
                </div>
            </div>
        </div>
    </form>
</div>
