|
@@ -1,80 +1,86 @@
|
|
|
-@if ($grid->allowToolbar())
|
|
|
- <div class="box-header " >
|
|
|
- @if(!empty($title))
|
|
|
- <h4 class="pull-left" style="margin:5px 10px 0;">
|
|
|
- {!! $title !!}
|
|
|
- @if(!empty($description))
|
|
|
- <small>{!! $description!!}</small>
|
|
|
- @endif
|
|
|
- </h4>
|
|
|
- <div class="pull-right" data-responsive-table-toolbar="{{$tableId}}">
|
|
|
- {!! $grid->renderTools() !!} {!! $grid->renderCreateButton() !!} {!! $grid->renderExportButton() !!}
|
|
|
- </div>
|
|
|
- @else
|
|
|
- <div class="pull-right" data-responsive-table-toolbar="{{$tableId}}">
|
|
|
- {!! $grid->renderCreateButton() !!} {!! $grid->renderExportButton() !!}
|
|
|
- </div>
|
|
|
+{!! $grid->renderQuickSearch() !!}
|
|
|
|
|
|
- {!! $grid->renderTools() !!}
|
|
|
- @endif
|
|
|
+<div class="card material">
|
|
|
|
|
|
- </div>
|
|
|
-@endif
|
|
|
+ @if ($grid->allowToolbar())
|
|
|
+ <div class="box-header">
|
|
|
+ @if(!empty($title))
|
|
|
+ <h4 class="pull-left" style="margin:5px 10px 0;">
|
|
|
+ {!! $title !!}
|
|
|
+ @if(!empty($description))
|
|
|
+ <small>{!! $description!!}</small>
|
|
|
+ @endif
|
|
|
+ </h4>
|
|
|
+ <div class="pull-right" data-responsive-table-toolbar="{{$tableId}}">
|
|
|
+ {!! $grid->renderTools() !!} {!! $grid->renderCreateButton() !!} {!! $grid->renderExportButton() !!}
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div class="pull-right" data-responsive-table-toolbar="{{$tableId}}">
|
|
|
+ {!! $grid->renderCreateButton() !!} {!! $grid->renderExportButton() !!}
|
|
|
+ </div>
|
|
|
+
|
|
|
+ {!! $grid->renderTools() !!}
|
|
|
+ @endif
|
|
|
|
|
|
-{!! $grid->renderFilter() !!}
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
|
|
|
-{!! $grid->renderHeader() !!}
|
|
|
+ {!! $grid->renderFilter() !!}
|
|
|
|
|
|
-<div class="card-body panel-collapse collapse in table-responsive" {!! $grid->option('show_bordered') ? 'style="padding:3px 10px 10px"' : '' !!}>
|
|
|
- <table class=" table table-hover responsive {{ $grid->option('show_bordered') ? 'table-bordered' : $grid->option('table_header_style') }} " id="{{$tableId}}">
|
|
|
- <thead>
|
|
|
- @if ($headers = $grid->getMutipleHeaders())
|
|
|
+ {!! $grid->renderHeader() !!}
|
|
|
+
|
|
|
+ <div class="card-body panel-collapse collapse in table-responsive" {!! $grid->option('show_bordered') ? 'style="padding:3px 10px 10px"' : '' !!}>
|
|
|
+ <table class=" table table-hover responsive {{ $grid->option('show_bordered') ? 'table-bordered' : $grid->option('table_header_style') }} " id="{{$tableId}}">
|
|
|
+ <thead>
|
|
|
+ @if ($headers = $grid->getMutipleHeaders())
|
|
|
+ <tr>
|
|
|
+ @foreach($headers as $header)
|
|
|
+ {!! $header->render() !!}
|
|
|
+ @endforeach
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
<tr>
|
|
|
- @foreach($headers as $header)
|
|
|
- {!! $header->render() !!}
|
|
|
+ @foreach($grid->getColumns() as $column)
|
|
|
+ <th {!! $column->formatTitleAttributes() !!}>{!! $column->getLabel() !!}{!! $column->renderHeader() !!}</th>
|
|
|
@endforeach
|
|
|
</tr>
|
|
|
- @endif
|
|
|
- <tr>
|
|
|
- @foreach($grid->getColumns() as $column)
|
|
|
- <th {!! $column->formatTitleAttributes() !!}>{!! $column->getLabel() !!}{!! $column->renderHeader() !!}</th>
|
|
|
- @endforeach
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
+ </thead>
|
|
|
|
|
|
- <tbody>
|
|
|
- @foreach($grid->rows() as $row)
|
|
|
- <tr {!! $row->getRowAttributes() !!}>
|
|
|
- @foreach($grid->getColumnNames() as $name)
|
|
|
- <td {!! $row->getColumnAttributes($name) !!}>
|
|
|
- {!! $row->column($name) !!}
|
|
|
+ <tbody>
|
|
|
+ @foreach($grid->rows() as $row)
|
|
|
+ <tr {!! $row->getRowAttributes() !!}>
|
|
|
+ @foreach($grid->getColumnNames() as $name)
|
|
|
+ <td {!! $row->getColumnAttributes($name) !!}>
|
|
|
+ {!! $row->column($name) !!}
|
|
|
+ </td>
|
|
|
+ @endforeach
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ @if ($grid->rows()->isEmpty())
|
|
|
+ <tr>
|
|
|
+ <td colspan="{!! count($grid->getColumnNames()) !!}">
|
|
|
+ <div style="margin:5px 0 0 10px;"><span class="help-block" style="margin-bottom:0"><i class="fa fa-info-circle"></i> {{ trans('admin.no_data') }}</span></div>
|
|
|
</td>
|
|
|
- @endforeach
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- @if ($grid->rows()->isEmpty())
|
|
|
- <tr>
|
|
|
- <td colspan="{!! count($grid->getColumnNames()) !!}">
|
|
|
- <div style="margin:5px 0 0 10px;"><span class="help-block" style="margin-bottom:0"><i class="fa fa-info-circle"></i> {{ trans('admin.no_data') }}</span></div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endif
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
-</div>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
|
|
|
-{!! $grid->renderFooter() !!}
|
|
|
+ {!! $grid->renderFooter() !!}
|
|
|
|
|
|
-@if ($paginator = $grid->paginator())
|
|
|
- <div class="box-footer clearfix " style="padding-bottom:5px;">
|
|
|
- {!! $paginator !!}
|
|
|
- </div>
|
|
|
-@else
|
|
|
- <div class="box-footer clearfix text-80 " style="height:48px;line-height:25px;">
|
|
|
- @if ($grid->rows()->isEmpty())
|
|
|
- {!! trans('admin.pagination.range', ['first' => '<b>0</b>', 'last' => '<b>'.$grid->rows()->count().'</b>', 'total' => '<b>'.$grid->rows()->count().'</b>',]) !!}
|
|
|
- @else
|
|
|
- {!! trans('admin.pagination.range', ['first' => '<b>1</b>', 'last' => '<b>'.$grid->rows()->count().'</b>', 'total' => '<b>'.$grid->rows()->count().'</b>',]) !!}
|
|
|
- @endif
|
|
|
- </div>
|
|
|
-@endif
|
|
|
+ @if ($paginator = $grid->paginator())
|
|
|
+ <div class="box-footer clearfix " style="padding-bottom:5px;">
|
|
|
+ {!! $paginator !!}
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div class="box-footer clearfix text-80 " style="height:48px;line-height:25px;">
|
|
|
+ @if ($grid->rows()->isEmpty())
|
|
|
+ {!! trans('admin.pagination.range', ['first' => '<b>0</b>', 'last' => '<b>'.$grid->rows()->count().'</b>', 'total' => '<b>'.$grid->rows()->count().'</b>',]) !!}
|
|
|
+ @else
|
|
|
+ {!! trans('admin.pagination.range', ['first' => '<b>1</b>', 'last' => '<b>'.$grid->rows()->count().'</b>', 'total' => '<b>'.$grid->rows()->count().'</b>',]) !!}
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+
|
|
|
+</div>
|