I would like to filter orders.status on my custom DataGrid
-
it is working but when I used filter then broke.
-
Hi there,
Please take a reference from Here -
tank you, I already check and it is working when I would like to use type => 'boolean' || 'string' etc but it is not when I would like to use type => 'checkbox'. I would like to same as OrderDataGrid
'type' => 'checkbox' 'options' => [ 'processing' => trans('shop::app.customer.account.order.index.processing'), 'completed' => trans('shop::app.customer.account.order.index.completed'), 'canceled' => trans('shop::app.customer.account.order.index.canceled'), 'closed' => trans('shop::app.customer.account.order.index.closed'), 'pending' => trans('shop::app.customer.account.order.index.pending'), 'pending_payment' => trans('shop::app.customer.account.order.index.pending-payment'), 'fraud' => trans('shop::app.customer.account.order.index.fraud'), ], 'closure' => function ($value) { if ($value->status == 'processing') { return '<span class="badge badge-md badge-warning">Folyamatban</span>'; } elseif ($value->status == 'completed') { return '<span class="badge badge-md badge-success">Teljesítve</span>'; } elseif ($value->status == 'canceled') { return '<span class="badge badge-md badge-danger">Törölve</span>'; } elseif ($value->status == 'closed') { return '<span class="badge badge-md badge-info">Lezárva</span>'; } elseif ($value->status == 'pending') { return '<span class="badge badge-md badge-pending">Függőben</span>'; } elseif ($value->status == 'pending_payment') { return '<span class="badge badge-md badge-light">' . trans('admin::app.sales.orders.order-status-pending-payment') . '</span>'; } elseif ($value->status == 'fraud') { return '<span class="badge badge-md badge-danger">' . trans('admin::app.sales.orders.order-status-fraud') . '</span>'; } },
-
@karmaxi said in I would like to filter orders.status on my custom DataGrid:
checkbox
Hi there,
Which version of Bagisto are you using? -
Hi there,
Please verify below files also.