From c2030c2814e98f795a34d82f8c5226e66fbbccd3 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 1 Oct 2026 18:23:00 +0530 Subject: [PATCH] added tailwind logic in target --- .../livewire/production-target-plan.blade.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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) }}% -- 2.49.1