#43 - vacation summary for employee #66

Merged
Baakoma merged 19 commits from #43-vacation-summary-for-employee into main 2022-03-03 09:03:17 +01:00
Showing only changes of commit 758689d376 - Show all commits

View File

@@ -50,6 +50,7 @@ class DashboardController extends Controller
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
$used = $vacationStatsRetriever->getUsedVacationDays($user, $yearPeriod);
$pending = $vacationStatsRetriever->getPendingVacationDays($user, $yearPeriod);
$other = $vacationStatsRetriever->getOtherApprovedVacationDays($user, $yearPeriod);
$remaining = $limit - $used - $pending;
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
return inertia("Dashboard", [
"absences" => AbsenceResource::collection($absences),
@@ -57,7 +58,7 @@ class DashboardController extends Controller
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
"holidays" => HolidayResource::collection($holidays),
"stats" => [
"limit" => $limit,
"remaining" => $limit - $used - $pending,
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
"remaining" => $remaining,
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
"used" => $used,
"pending" => $pending,
"other" => $other,
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes:
kamilpiech97 commented 2022-03-02 09:50:37 +01:00 (Migrated from github.com)
Review

👀

:eyes: