diff --git a/app/Services/Equipment/EquipmentInspectionService.php b/app/Services/Equipment/EquipmentInspectionService.php index e56133ef..15976e64 100644 --- a/app/Services/Equipment/EquipmentInspectionService.php +++ b/app/Services/Equipment/EquipmentInspectionService.php @@ -34,6 +34,9 @@ public function getInspections(string $cycle, string $period, ?string $productio $labels = InspectionCycle::columnLabels($cycle, $period); $userId = $this->apiUserId(); + $tenantId = $this->tenantId(); + $holidayDates = InspectionCycle::getHolidayDates($cycle, $period, $tenantId); + $result = []; foreach ($equipments as $equipment) { @@ -68,6 +71,7 @@ public function getInspections(string $cycle, string $period, ?string $productio 'details' => $details, 'labels' => $labels, 'can_inspect' => $equipment->canInspect($userId), + 'non_working_days' => array_keys($holidayDates), ]; }