<div class="col-lg-12">
    <div class="ibox">
        <div class="ibox-title">
            <div class="ibox-tools">
                <h5>Filters</h5>
                <a data-toggle="collapse" href="#collapseFilter" class="collapse-link"
                    ><i class="icon icon-e-delete"></i></a>
            </div>
        </div>
        <div class="collapse in" id="collapseFilter" aria-expanded="true">
            <div class="ibox-content">
                <form action="{{ route('average-time-in-brand-new-graph-data') }}" method="post" id="search-form">
                    {{csrf_field()}}
                    
                    <div class="row">
                        
                        <div class="col-md-3">
                            <div class="form-group">
                                <label>Year</label>
                                @php
                                $now = \Carbon\Carbon::now();
                                $endYear = $now->year;
                                @endphp
                                <select name="year" class="form-control" id="year">
                                    @for($i = $endYear; $i >= 2018; $i-- )
                                    <option @if($i==$year) selected @endif value="{{$i}}">{{$i}}</option>
                                    @endfor
                                </select>
                            </div>	
                        </div>	
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>