build: regenerate frontend assets and initialize mobile application configuration

This commit is contained in:
2026-08-10 18:57:00 +08:00
parent 9597cbf99a
commit 143ec5b3b3
437 changed files with 335 additions and 27787 deletions

View File

@@ -110,7 +110,12 @@ class EmployeeController extends Controller
$employees = $query->paginate($request->per_page ?? 10);
$employees->getCollection()->transform(function ($employee) {
$employee->avatar = check_file($employee->avatar) ? get_file($employee->avatar) : get_file('avatars/avatar.png');
$rawAvatar = !empty($employee->avatar) ? $employee->avatar : ($employee->employee->avatar ?? null);
if (!empty($rawAvatar)) {
$employee->avatar = get_file($rawAvatar);
} else {
$employee->avatar = asset('images/avatar.png');
}
return $employee;
});