{{-- args: $rows, $cols --}} @php /** @var object[] $columns */ /** @var \App\Models\Row[] $rows */ @endphp
_id | @foreach($columns as $col){{$col->name}} ("{{ $col->title }}") [ {{$col->id}} ] | @endforeach
---|---|
{{ $row->_id }} | @foreach($columns as $col){{ $row->{$col->name} }} | @endforeach