@php $columns = [ ['label' => 'Id', 'column' => 'id', 'sort' => true], ['label' => 'Name', 'column' => 'title', 'sort' => true], ['label' => 'Subject', 'column' => 'subject', 'sort' => true], ['label' => 'From Id', 'column' => 'from_id', 'sort' => true], ['label' => 'From Name', 'column' => 'from_name', 'sort' => true], ['label' => 'Actions', 'column' => 'action', 'sort' => false], ]; @endphp @foreach ($templates as $key => $item) {{ $item->id }} {{ $item->title }} {{ $item->subject }} {{ $item->from_id }} {{ $item->from_name }} @endforeach