@php $columns = [ ['label' => 'Sl No', 'column' => 'id', 'sort' => true], ['label' => 'Product Name', 'column' => 'product_name', 'sort' => true], ['label' => 'SKU', 'column' => 'sku', 'sort' => true], ['label' => 'Brand', 'column' => 'brand', 'sort' => true], ['label' => 'Name', 'column' => 'name', 'sort' => true], ['label' => 'Phone', 'column' => 'phone', 'sort' => true], ['label' => 'Status', 'column' => 'status', 'sort' => true], ['label' => 'Actions', 'column' => 'action', 'sort' => false], ]; $bulkOptions = [ [ 'label' => 'Delete', 'value' => '1', ], [ 'label' => 'Status', 'value' => '2', 'options' => [ [ 'label' => 'Active', 'value' => '1', ], [ 'label' => 'Inactive', 'value' => '0', ], ], ], ]; @endphp @foreach ($enquiries as $key => $item) @php $actions = [ [ 'code' => 'view', 'route' => route('admin.enquiries.show', $item->id), ], ]; @endphp {{ $key + 1 }} {{ $item->product_name }} {{ $item->sku }} {{ $item->brand }} {{ $item->name }} {{ $item->phone }} @if ($item->status == 1) Created @else Completed @endif @endforeach