@foreach ($columns as $col)
@php
$val = isset($col['value']) ? $col['value']($row) : data_get($row, $col['key']);
$tone = isset($col['badge']) ? $col['badge']($row) : null;
@endphp
| ($col['class'] ?? null) === 'num', 'table__title' => $loop->first])>
@if ($tone !== null && $val !== null && $val !== '')
{{ $val }}
@else
{{ $val === null || $val === '' ? '-' : $val }}
@endif
|
@endforeach
@foreach ($rowActions($row) as $action)
{{ $action['label'] }}
@endforeach
@if ($abilities['show'])
@endif
@if ($abilities['edit'])
@endif
@if ($abilities['delete'])
@endif
|
@endforeach