@php $tools = [ 'T' => ['Tambah', 'plus', 'primary'], 'H' => ['Hapus', 'trash', 'danger'], 'A' => ['Aksi', 'ellipsis-horizontal-circle', 'secondary'], 'C' => ['Cetak', 'printer', 'secondary'], ]; $active = array_filter($tools, fn (string $key): bool => str_contains($page['flags'], $key), ARRAY_FILTER_USE_KEY); $payload = [ 'rows' => collect($rows)->map(fn (array $cells, int $i): array => ['id' => $i, 'cells' => $cells])->all(), 'filterCols' => array_column($filters, 'col'), ]; @endphp
@if ($filters)
@foreach ($filters as $i => $filter) @endforeach
@endif
@foreach ($active as $key => [$label, $icon, $variant]) @php $click = $key === 'H' ? 'remove()' : "demo('".$label."')"; @endphp {{ $label }} @endforeach
@if ($checkbox) @endif @foreach ($headers as $h) @endforeach @if ($actions) @endif
$h['num']])>{{ $h['label'] }}Aksi

Tidak ada data yang cocok dengan pencarian atau filter.

Halaman dari ( data)