@props(['columns', 'rows'])
@foreach ($columns as $col) ($col['align'] ?? null) === 'num', 'vpm-col-action' => ($col['label'] ?? '') === '', 'vpm-col-date' => ($col['type'] ?? null) === 'date', 'vpm-col-status' => ($col['type'] ?? null) === 'status', ])> @endforeach @foreach ($columns as $col) @endforeach @foreach ($rows as $row) @foreach ($columns as $col) @php $cell = $row[$col['key']] ?? ''; @endphp @endforeach @endforeach
($col['align'] ?? null) === 'num', 'vpm-table__actions' => ($col['label'] ?? '') === '', ]) > @if (($col['label'] ?? '') === '') Actions @else {{ $col['label'] }} @endif
($col['align'] ?? null) === 'num', 'vpm-table__actions' => ($col['label'] ?? '') === '', ])> @if (! empty($col['html'])) {!! $cell !!} @else {{ $cell }} @endif