27 lines
906 B
PHP
27 lines
906 B
PHP
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
@include('components.datatables.buttons.pageLength')
|
|
<span class="input-group-text"><i class="fa fa-search"></i></span>
|
|
</div>
|
|
<input type="text" class="form-control search-btn" placeholder="Rechercher..." value="">
|
|
@if ((isset($with_filters) and $with_filters) || (isset($with_colvis) and $with_colvis))
|
|
<div class="input-group-append">
|
|
@if (isset($with_filters) && $with_filters)
|
|
@include('components.datatables.buttons.filters')
|
|
@endif
|
|
@if (isset($with_colvis) && $with_colvis)
|
|
@include('components.datatables.buttons.colvis')
|
|
@endif
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
@push('js')
|
|
<script>
|
|
var $search = $('#{{ $model }}-table-header .search-btn');
|
|
$search.on( 'keyup click', function () {
|
|
var table = window.LaravelDataTables["{{ $model }}-table"];
|
|
table.search($search.val()).draw();
|
|
} );
|
|
</script>
|
|
@endpush |