This commit is contained in:
sanjeev 2022-09-08 16:42:40 +05:30
parent 526131e2ed
commit e303ba6f35
1 changed files with 1 additions and 9 deletions

View File

@ -164,19 +164,11 @@ class CustomerDataGrid extends DataGrid
'index' => 'is_suspended',
'label' => trans('admin::app.customers.customers.suspended'),
'type' => 'boolean',
'filter-type' => 'suspended',
'searchable' => false,
'sortable' => true,
'filterable' => true,
'visibility' => false,
'closure' => function ($row) {
$html = '';
if ($row->is_suspended) {
$html .= '<span class="badge badge-md badge-danger">' . trans('admin::app.customers.customers.suspended') . '</span>';
}
return $html;
},
]);
}