datatables editcolumn if else
$data = $this->SourceData->getData();
return Datatables::of($data)
->addIndexColumn()
->editColumn('show', function ($data) {
return ($data->show == 'y')?"Yes":($data->show == 'n')?"No":"";
})
->addColumn('Actions', function($data) {...})
->rawColumns(['Actions'])
->make(true);