stub of the row editor
This commit is contained in:
@@ -4,24 +4,23 @@
|
||||
|
||||
@php
|
||||
/** @var object[] $columns */
|
||||
/** @var \App\Tables\Changeset[] $changeset */
|
||||
/** @var \App\Models\Row[] $rows */
|
||||
@endphp
|
||||
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>_id</th>
|
||||
@foreach($columns as $col)
|
||||
<th>{{$col->name}} ("{{ $col->title }}") [ {{$col->id}} ]</th>
|
||||
<th>{{ $col->title }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($rows as $row)
|
||||
<tr>
|
||||
<td>{{ $row->_id }}</td>
|
||||
@foreach($columns as $col)
|
||||
<td data-id="{{ $row->_id }}">{{ $row->{$col->name} }}</td>
|
||||
<td>{{ $row->{$col->name} }}</td>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
Reference in New Issue
Block a user