add column unique numbering scheme, more efficient selects

This commit is contained in:
2018-08-04 19:57:59 +02:00
parent 69bda25bbb
commit fabc3ad24e
23 changed files with 452 additions and 173 deletions
+4 -4
View File
@@ -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