This commit is contained in:
Adrian Hopek
2022-04-20 10:48:09 +02:00
parent 889af3aaa2
commit a149f05b9b
4 changed files with 29 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ class DashboardController extends Controller
$limit = $vacationStatsRetriever->getVacationDaysLimit($user, $yearPeriod);
$used = $vacationStatsRetriever->getUsedVacationDays($user, $yearPeriod);
$pending = $vacationStatsRetriever->getPendingVacationDays($user, $yearPeriod);
$homeOffice = $vacationStatsRetriever->getHomeOfficeDays($user, $yearPeriod);
$other = $vacationStatsRetriever->getOtherApprovedVacationDays($user, $yearPeriod);
$remaining = $limit - $used - $pending;
@@ -69,6 +70,7 @@ class DashboardController extends Controller
"remaining" => $remaining,
"used" => $used,
"pending" => $pending,
"homeOffice" => $homeOffice,
"other" => $other,
],
"can" => [