check delete list management

This commit is contained in:
dongpd 2020-12-09 11:12:13 +07:00
parent 3a34cc43c8
commit ee3c869d71

View File

@ -65,18 +65,23 @@ class CaptureLogsGrid {
public static function birthday() { public static function birthday() {
return function($model) { return function($model) {
$staff = $model->listManagement; $staff = $model->listManagement;
if ($staff)
return date("d/m/Y", $staff->birthday); return date("d/m/Y", $staff->birthday);
return "";
}; };
} }
public static function registrationImage() { public static function registrationImage() {
return function($model) { return function($model) {
$staff = $model->listManagement; $staff = $model->listManagement;
if ($staff) {
$images = json_decode($staff->image, true); $images = json_decode($staff->image, true);
return Html::img("/data/uploads/face/" . $images[0]['url'], [ return Html::img("/data/uploads/face/" . $images[0]['url'], [
"class" => "img-thumbnail", "class" => "img-thumbnail",
"style" => "width: 150px;height:150px;" "style" => "width: 150px;height:150px;"
]); ]);
}
return "";
}; };
} }