topLevel()->commentable?->commentableName() ?? 'Deleted...'; })->readonly(), MorphTo::make(__('Commentator'), 'commentator')->types([ User::class, ]), Markdown::make(__('Original text'), 'original_text'), Text::make('', function (CommentModel $comment) { if (! $url = $comment?->commentUrl()) { return ''; } return "".__('Show').""; })->asHtml(), Text::make(__('Status'), function(CommentModel $comment) { if ($comment->isApproved()) { return "
Approved
"; } return "
Pending
"; })->asHtml(), DateTime::make(__('Created at'), 'created_at'), ]; } }