<div class="col-md-12 mb-1">
    @can('create', 'products')
        <a href="{{ route('dashboard.product.store') }}" class="btn btn-icon btn-success float-right">
            <i class="feather icon-plus"></i> @lang('admin.add')
        </a>
    @endcan

    <a href="{{ route('dashboard.products.import') }}" class="btn btn-icon btn-primary float-right mr-1">
        <i class="feather icon-inbox"></i> Import
    </a>

    <a href="{{ route('dashboard.products.export') }}" class="btn btn-icon btn-warning float-right mr-1">
        <i class="feather icon-download"></i> Export
    </a>

    <form action="{{ route('dashboard.products') }}" class="col-2" method="get" id="paginate_id">
        <select name="paginate" class="form-control" onchange="this.form.submit()">
            <option disabled selected>Отображать по</option>
            <option @if (!empty(request()->get('paginate')) && request()->get('paginate') == 10) selected @endif>10</option>
            <option @if (!empty(request()->get('paginate')) && request()->get('paginate') == 20) selected @endif>20</option>
            <option @if (!empty(request()->get('paginate')) && request()->get('paginate') == 50) selected @endif>50</option>
        </select>
    </form>
</div>
