#62 - vacation request list for approvers #69

Merged
Baakoma merged 29 commits from #62-vacation-request-list-for-approvers into main 2022-03-08 09:25:24 +01:00
Showing only changes of commit 758689d376 - Show all commits

View File

@@ -50,6 +50,7 @@ class DashboardController extends Controller
$used = $vacationStatsRetriever->getUsedVacationDays($user, $yearPeriod);
$pending = $vacationStatsRetriever->getPendingVacationDays($user, $yearPeriod);
$other = $vacationStatsRetriever->getOtherApprovedVacationDays($user, $yearPeriod);
$remaining = $limit - $used - $pending;
return inertia("Dashboard", [
"absences" => AbsenceResource::collection($absences),
@@ -57,7 +58,7 @@ class DashboardController extends Controller
"holidays" => HolidayResource::collection($holidays),
"stats" => [
"limit" => $limit,
"remaining" => $limit - $used - $pending,
"remaining" => $remaining,
"used" => $used,
"pending" => $pending,
"other" => $other,