update control logs

This commit is contained in:
2020-12-04 15:13:14 +07:00
parent 3ef04dfb5a
commit 811ed32e04
13 changed files with 282 additions and 36 deletions

View File

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