add column unique numbering scheme, more efficient selects
This commit is contained in:
@@ -10,18 +10,18 @@
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#GRID</th>
|
||||
<th>_id</th>
|
||||
@foreach($columns as $col)
|
||||
<th>{{ $col->title }}</th>
|
||||
<th>{{$col->name}} ("{{ $col->title }}") [ {{$col->id}} ]</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($rows as $row)
|
||||
<tr>
|
||||
<td>{{ $row->data->_grid }}</td>
|
||||
<td>{{ $row->_id }}</td>
|
||||
@foreach($columns as $col)
|
||||
<td data-id="{{ $row->id }}">{{ $row->data->{$col->name} }}</td>
|
||||
<td data-id="{{ $row->_id }}">{{ $row->{$col->name} }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user