From 9b359527b98d422cf861ac02814ae0268e519ee9 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 29 Oct 2026 17:34:20 +0530 Subject: [PATCH] Changed logic in production mail report for efficiency colour --- .../views/mail/production_report.blade.php | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/resources/views/mail/production_report.blade.php b/resources/views/mail/production_report.blade.php index 2234bb67..ec279e9b 100644 --- a/resources/views/mail/production_report.blade.php +++ b/resources/views/mail/production_report.blade.php @@ -162,7 +162,7 @@ if ((float) $planQuantity == 0 && (float) $actualQuantity == 0) { - return '#4caf50'; + return null; } $efficiency = (float) $value; @@ -171,7 +171,8 @@ return '#ff4d4d'; // red } elseif ($efficiency < 95) { return '#ffd633'; // yellow - } else { + } + else { return '#4caf50'; // green } }; @@ -218,8 +219,15 @@ {{-- {{ $row['dayShiftEfficiency'] }} --}} - + + {{-- {{ $row['dayShiftEfficiency'] }} + --}} + + +
+ {{ $row['dayShiftEfficiency'] }} +
@@ -234,8 +242,14 @@ {{ $row['nightShiftEfficiency'] }} --}} - + {{-- {{ $row['nightShiftEfficiency'] }} + --}} + + +
+ {{ $row['nightShiftEfficiency'] }} +
@@ -253,7 +267,9 @@ --}} - {{ $row['efficiency'] }} +
+ {{ $row['efficiency'] }} +
{{ $row['nonPlannedQuantity'] }}