@if ($grid->allowToolbar())
    <div class="custom-data-table-header">
        <div class="table-responsive">
            <div class="top d-block clearfix p-0">
                @if(!empty($title))
                    <h4 class="pull-left" style="margin:5px 10px 0;">
                        {!! $title !!}&nbsp;
                        @if(!empty($description))
                            <small>{!! $description!!}</small>
                        @endif
                    </h4>
                    <div class="pull-right" data-responsive-table-toolbar="{{$tableId}}">
                        {!! $grid->renderTools() !!}
                        {!! $grid->renderColumnSelector() !!}
                        {!! $grid->renderCreateButton() !!}
                        {!! $grid->renderExportButton() !!}
                        {!! $grid->renderQuickSearch() !!}
                    </div>
                @else
                    {!! $grid->renderTools() !!}  {!! $grid->renderQuickSearch() !!}

                    <div class="pull-right" data-responsive-table-toolbar="{{$tableId}}">
                        {!! $grid->renderRightTools() !!}
                        {!! $grid->renderColumnSelector() !!}
                        {!! $grid->renderCreateButton() !!}
                        {!! $grid->renderExportButton() !!}
                    </div>
                @endif
            </div>
        </div>
    </div>
@endif