diff --git a/resources/views/mail/production_report.blade.php b/resources/views/mail/production_report.blade.php index 11c65869..b177e21c 100644 --- a/resources/views/mail/production_report.blade.php +++ b/resources/views/mail/production_report.blade.php @@ -158,7 +158,13 @@ @foreach($tableData as $row) @php - $getEfficiencyColor = function ($value) { + $getEfficiencyColor = function ($value, $planQuantity, $actualQuantity) { + + if ((float) $planQuantity == 0 && (float) $actualQuantity == 0) + { + return '#4caf50'; + } + $efficiency = (float) $value; if ($efficiency < 80) {