public_id}/edit", $model->category ?: '')->toHtml(); } ], ]; } public function actions() { return [ [ trans('texts.edit_category'), function ($model) { return URL::to("expense_categories/{$model->public_id}/edit") ; }, function ($model) { return Auth::user()->is_admin; } ], ]; } }