海工商新版后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

87 lines
3.1 KiB

@if($grid->isAsyncRequest())
{!! $grid->renderHeader() !!}
<div class="{!! $grid->formatTableParentClass() !!}">
<table class="async-table {{ $grid->formatTableClass() }}" id="{{ $tableId }}" >
<thead>
@if ($headers = $grid->getVisibleComplexHeaders())
<tr>
@foreach($headers as $header)
{!! $header->render() !!}
@endforeach
</tr>
@endif
<tr>
@foreach($grid->getVisibleColumns() as $column)
<th {!! $column->formatTitleAttributes() !!}>{!! $column->getLabel() !!}{!! $column->renderHeader() !!}</th>
@endforeach
</tr>
</thead>
@if ($grid->hasQuickCreate())
{!! $grid->renderQuickCreate() !!}
@endif
<tbody>
@foreach($grid->rows() as $row)
<tr {!! $row->rowAttributes() !!}>
@foreach($grid->getVisibleColumnNames() as $name)
<td {!! $row->columnAttributes($name) !!}>{!! $row->column($name) !!}</td>
@endforeach
</tr>
@endforeach
@if ($grid->rows()->isEmpty())
<tr>
<td colspan="{!! count($grid->getVisibleColumnNames()) !!}">
<div style="margin:5px 0 0 10px;"><span class="help-block" style="margin-bottom:0"><i class="feather icon-alert-circle"></i>&nbsp;{{ trans('admin.no_data') }}</span></div>
</td>
</tr>
@endif
</tbody>
</table>
</div>
{!! $grid->renderFooter() !!}
{!! $grid->renderPagination() !!}
@else
<div class="dcat-box async-{{ $tableId }}">
<div class="d-block pb-0">
@include('admin::grid.table-toolbar')
</div>
{!! $grid->renderFilter() !!}
<div class="async-body">
{!! $grid->renderHeader() !!}
<div class="{!! $grid->formatTableParentClass() !!}">
<table class="async-table {{ $grid->formatTableClass() }}" id="{{ $tableId }}" >
<thead>
@if ($headers = $grid->getVisibleComplexHeaders())
<tr>
@foreach($headers as $header)
{!! $header->render() !!}
@endforeach
</tr>
@endif
<tr>
@foreach($grid->getVisibleColumns() as $column)
<th {!! $column->formatTitleAttributes() !!}>{!! $column->getLabel() !!}{!! $column->renderHeader() !!}</th>
@endforeach
</tr>
</thead>
<tbody>
<tr>
<td colspan="{!! count($grid->getVisibleColumnNames()) !!}">&nbsp;</td>
</tr>
</tbody>
</table>
</div>
{!! $grid->renderFooter() !!}
</div>
</div>
@endif