check delete list management
This commit is contained in:
parent
3a34cc43c8
commit
ee3c869d71
|
@ -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;
|
||||||
return date("d/m/Y", $staff->birthday);
|
if ($staff)
|
||||||
|
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;
|
||||||
$images = json_decode($staff->image, true);
|
if ($staff) {
|
||||||
return Html::img("/data/uploads/face/" . $images[0]['url'], [
|
$images = json_decode($staff->image, true);
|
||||||
"class" => "img-thumbnail",
|
return Html::img("/data/uploads/face/" . $images[0]['url'], [
|
||||||
"style" => "width: 150px;height:150px;"
|
"class" => "img-thumbnail",
|
||||||
]);
|
"style" => "width: 150px;height:150px;"
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
return "";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user