35 lines
1.5 KiB
PHP
35 lines
1.5 KiB
PHP
<x-satu.frame :page="$page" :crumbs="$crumbs">
|
|
@if ($filters)
|
|
<x-glass.panel padding="sm" as="section" aria-label="Filter data">
|
|
<div class="filter-bar">
|
|
@foreach ($filters as $i => $filter)
|
|
<x-form.select :name="'filter_'.$i" :label="$filter['label']" :options="array_combine($filter['options'], $filter['options'])" placeholder="" />
|
|
@endforeach
|
|
</div>
|
|
</x-glass.panel>
|
|
@endif
|
|
|
|
<x-glass.panel padding="none" as="section" :aria-label="'Daftar '.$page['title']">
|
|
<x-ui.table :label="'Tabel '.Str::lower($page['title'])">
|
|
<table class="table satu-table">
|
|
<thead>
|
|
<tr>
|
|
@foreach ($headers as $h)
|
|
<th scope="col" @class(['num' => $h['num']])>{{ $h['label'] }}</th>
|
|
@endforeach
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($rows as $row)
|
|
<tr>
|
|
@foreach ($row as $ci => $cell)
|
|
<td @class(['num' => $headers[$ci]['num'] ?? false, 'table__title' => $loop->first])>{{ $cell['v'] !== '' ? $cell['v'] : '-' }}</td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</x-ui.table>
|
|
</x-glass.panel>
|
|
</x-satu.frame>
|