@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @php $columns = [ ['label' => 'Id', 'column' => 'id', 'sort' => true], ['label' => 'SKU', 'column' => 'sku ', 'sort' => true], ['label' => 'Name', 'column' => 'name', 'sort' => true], ['label' => 'New Name', 'column' => 'name', 'sort' => false], ['label' => 'New', 'column' => 'is_new', 'sort' => false], ['label' => 'Status', 'column' => 'status', 'sort' => true], ['label' => 'Price', 'column' => 'price', 'sort' => true], ['label' => 'New Price', 'column' => 'price', 'sort' => false], ['label' => 'Actions', 'column' => 'action', 'sort' => false], ]; $bulkOptions = [ [ 'label' => 'Status', 'value' => '2', 'options' => [ [ 'label' => 'Active', 'value' => '1', ], [ 'label' => 'Inactive', 'value' => '0', ], ], ], ]; @endphp
@csrf
To
@foreach ($products as $key => $item) {{ $item->id }} {{ $item->sku }} {{ $item->name }} {{ $item->is_new ? 'Yes' : 'No' }} @if ($item->status) Active @else In-Active @endif $ {{ $item->price }} @endforeach