added star in state view in datagrid

This commit is contained in:
rahul shukla 2020-01-09 13:07:43 +05:30
parent 830367ef93
commit 6413cdae71
1 changed files with 7 additions and 1 deletions

View File

@ -50,7 +50,13 @@ class TaxRateDataGrid extends DataGrid
'type' => 'string',
'searchable' => true,
'sortable' => true,
'filterable' => true
'filterable' => true,
'wrapper' => function($value) {
if (empty($value->state))
return '*';
else
return $value->state;
}
]);
$this->addColumn([