@php $columns = [ ['label' => 'Id', 'column' => 'id', 'sort' => true], ['label' => 'Name', 'column' => 'name', 'sort' => true], ['label' => 'position', 'column' => 'position', 'sort' => true], ['label' => 'Actions', 'column' => 'action', 'sort' => false], ]; @endphp @foreach ($units as $key => $item) {{-- --}} {{ $item->id }} {{ $item->name }} {{ $item->position }} @endforeach