@php $columns = [ ['label' => 'Sl No', 'column' => 'id', 'sort' => true], ['label' => 'Name', 'column' => 'name', 'sort' => true], ['label' => 'Email', 'column' => 'email', 'sort' => true], ['label' => 'Order Date', 'column' => 'order_date', 'sort' => true], ['label' => 'Sub Total', 'column' => 'sub_total', 'sort' => true], ['label' => 'Tax Total', 'column' => 'tax_total', 'sort' => true], ['label' => 'Grand Total', 'column' => 'grand_total', '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 ($orders as $key => $item) @php $actions = [ [ 'code' => 'view', 'route' => route('admin.orders.show', $item->id), ], ]; @endphp {{ $key + 1 }} {{ $item->name }} {{ $item->email }} {{ $item->order_date }} {{ $item->sub_total }} {{ $item->tax_total }} {{ $item->grand_total }} @if ($item->status) Active @else In-Active @endif @endforeach