{{-- --}}
@php $columns = [ ['label' => 'Id', 'column' => 'id', 'sort' => true], ['label' => 'Name', 'column' => 'first_name', 'sort' => true], ['label' => 'Email', 'column' => 'email', 'sort' => true], ['label' => 'Telephone', 'column' => 'phone', 'sort' => true], ['label' => 'Brand', 'column' => 'brand', 'sort' => true], ['label' => 'Product', 'column' => 'product', 'sort' => true], ['label' => 'Actions', 'column' => 'action', 'sort' => false], ]; @endphp @foreach ($requests as $key => $item) {{-- --}} {{ $item->id }} {{ $item->first_name.' '.$item->last_name }} {{ $item->email }} {{ $item->phone }} {{ $item->brand }} {{ $item->product_name }} @endforeach