datatable.directory codebase
https://datatable.directory/
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.
28 lines
541 B
28 lines
541 B
{{--
|
|
args: $rows, $cols
|
|
--}}
|
|
|
|
@php
|
|
/** @var \App\Tables\Column[] $columns */
|
|
/** @var \App\Tables\Changeset[] $changeset */
|
|
/** @var \App\Models\Row[] $rows */
|
|
@endphp
|
|
|
|
<table class="table table-hover table-sm">
|
|
<thead>
|
|
<tr>
|
|
@foreach($columns as $col)
|
|
<th title="{{$col->name}}">{{ $col->title }}</th>
|
|
@endforeach
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($rows as $row)
|
|
<tr>
|
|
@foreach($columns as $col)
|
|
<td>{{ $row->{$col->name} }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|