@php $columns = [ ['label' => 'Id', 'column' => 'id', 'sort' => true], ['label' => 'Slider', 'column' => 'slider_path', 'sort' => false], ['label' => 'Name', 'column' => 'title', 'sort' => true], ['label' => 'Position', 'column' => 'position', 'sort' => true], ['label' => 'URL', 'column' => 'url', 'sort' => true], ['label' => 'Actions', 'column' => 'action', 'sort' => false], ]; @endphp @foreach ($sliders as $key => $item) {{ $item->id }} {{ $item->title }} {{ $item->position }} {{ $item->url }} @endforeach