diff --git a/resources/views/livewire/production-target-plan.blade.php b/resources/views/livewire/production-target-plan.blade.php index d16971d7..6b6db8bf 100644 --- a/resources/views/livewire/production-target-plan.blade.php +++ b/resources/views/livewire/production-target-plan.blade.php @@ -47,12 +47,14 @@ {{ $monthlyActualQuantity ?? 0 }} - + @if(($efficiency ?? 0) > 95) + @php $bgStyle = 'background-color: #22c55e; color: white;' @endphp + @elseif(($efficiency ?? 0) >= 85) + @php $bgStyle = 'background-color: #eab308; color: white;' @endphp + @else + @php $bgStyle = 'background-color: #f87171; color: white;' @endphp + @endif + {{ number_format($efficiency ?? 0, 2) }}%