add formats

This commit is contained in:
2024-08-08 16:31:26 +03:00
parent 7dbff619f5
commit d0f136e484
5 changed files with 36 additions and 0 deletions

View File

@ -6,6 +6,7 @@
"email": "Email",
"created_at": "Дата создания",
"description": "Описание 1",
"description2": "Описание 2",
"status": "Статус"
},
"actions": ["view"],

View File

@ -12,6 +12,9 @@ $table->columns([
"created_at" => [
"format" => "date:Y-m-d",
],
'description2' => [
"format" => "html:",
],
'status' => function ($cell) {
return getStatusLabel()[$cell];
},