diff --git a/resources/views/mail/production_report.blade.php b/resources/views/mail/production_report.blade.php index ea597b9..c05e8d7 100644 --- a/resources/views/mail/production_report.blade.php +++ b/resources/views/mail/production_report.blade.php @@ -55,15 +55,26 @@ --}} - + {{--
- - {{-- --}} - + --}} + {{-- --}} + {{-- @@ -72,7 +83,7 @@ @foreach($tableData as $row) @php $efficiency = (float) $row['efficiency']; if ($efficiency < 80) { $bgColor = '#ff4d4d'; } - elseif ($efficiency < 99) { $bgColor = '#ffd633'; + elseif ($efficiency < 95) { $bgColor = '#ffd633'; } else { $bgColor = '#4caf50'; } @endphp @@ -80,17 +91,26 @@ - + --}} {{-- --}} - - + {{-- --}} + {{-- + --}} {{-- --}} - @endforeach +
No Plant LineLine TypeCapacity QuantityPlan QuantityLine TypePlan Quantity +
+ Plan Quantity +
+ + + + + + +
Day ShiftPlan QuantityEfficiency
+
Actual Quantity Plan Vs Actual Efficiency(%)
{{ $row['no'] }} {{ $row['plant'] }} {{ $row['line'] }}{{ $row['type'] }}{{ $row['type'] }}{{ $row['capacityQuantity'] }}{{ $row['targetQuantity'] }}{{ $row['productionQuantity'] }}{{ $row['targetQuantity'] }} + + + + + + +
{{ $row['dayShift'] ?? '-' }}{{ $row['targetQuantity'] }}{{ $row['planEfficiency'] ?? '-' }}
+
{{ $row['productionQuantity'] }}{{ $row['efficiency'] }}= 99 ? '#ffffff' : '#000000' }}; + color: {{ $efficiency < 80 || $efficiency >= 95 ? '#ffffff' : '#000000' }}; font-weight: bold; "> {{ $row['efficiency'] }} @@ -98,6 +118,94 @@
--}} + + {{-- new logic --}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @foreach($tableData as $row) + @php $efficiency = (float) $row['efficiency']; if ($efficiency < 80) { $bgColor = '#ff4d4d'; + } + elseif ($efficiency < 95) { $bgColor = '#ffd633'; + } + else { $bgColor = '#4caf50'; + } @endphp + + + + + + + + + + + + + + + + + + + + + + + + + @endforeach + +
NoPlantLineLine Type + Day Shift + + Night Shift + Plan QuantityActual QuantityPlan Vs Actual Efficiency(%)
Plan QuantityActual QuantityPlan Vs Actual Efficiency(%)Plan QuantityActual QuantityPlan Vs Actual Efficiency(%)
{{ $row['no'] }}{{ $row['plant'] }}{{ $row['line'] }}{{ $row['type'] }} + {{ $row['dayShiftPlanQuantity'] }} + + {{ $row['dayShiftActualQuantity'] }} + + {{ $row['dayShiftEfficiency'] }} + + {{ $row['nightShiftPlanQuantity'] }} + + {{ $row['nightShiftActualQuantity'] }} + + {{ $row['nightShiftEfficiency'] }} + + {{ $row['targetQuantity'] }} + + {{ $row['productionQuantity'] }} + + {{ $row['efficiency'] }} +

{!! $wishes !!}