diff --git a/app/Services/DatatableService.php b/app/Services/DatatableService.php index 67636ebc96ad..9bf579c56905 100644 --- a/app/Services/DatatableService.php +++ b/app/Services/DatatableService.php @@ -41,18 +41,18 @@ class DatatableService private function createDropdown($entityType, $table, $actions) { $table->addColumn('dropdown', function ($model) use ($entityType, $actions) { - $str = ''; + $str = '
'; if (property_exists($model, 'is_deleted') && $model->is_deleted) { - $str .= ''; + $str .= ''; } elseif ($model->deleted_at && $model->deleted_at !== '0000-00-00') { - $str .= ''; + $str .= ''; } else { - $str .= '
'; + $str .= '
'; } $str .= ''; + return $str.'
'; }); }