@php $columns = [ ['label' => 'Id', 'column' => 'id', 'sort' => true], ['label' => 'First Name', 'column' => 'name', 'sort' => true], ['label' => 'Last Name', 'column' => 'name', 'sort' => true], ['label' => 'Email', 'column' => 'email ', 'sort' => true], ['label' => 'Phone', 'column' => 'phone', 'sort' => true], ['label' => 'Actions', 'column' => 'action', 'sort' => false], ]; @endphp @foreach ($customers as $key => $item) {{ $item->id }} {{ $item->first_name }} {{ $item->last_name }} {{ $item->email }} {{ $item->phone }} {{-- --}} {{-- --}} @endforeach