#43 - cr fix
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user