From 7042de9c0e7adcbecf5106f9d64fdf20dc1f6928 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 1 Oct 2026 18:19:22 +0530 Subject: [PATCH] modified logic in efficiency for colour --- .../views/livewire/production-target-plan.blade.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/resources/views/livewire/production-target-plan.blade.php b/resources/views/livewire/production-target-plan.blade.php index e422eaee..d16971d7 100644 --- a/resources/views/livewire/production-target-plan.blade.php +++ b/resources/views/livewire/production-target-plan.blade.php @@ -48,13 +48,11 @@ {{ $monthlyActualQuantity ?? 0 }} + {{ ($efficiency ?? 0) > 95 + ? 'bg-green-600 text-white' + : (($efficiency ?? 0) >= 85 + ? 'bg-yellow-400 text-white' + : 'bg-red-600 text-white') }}"> {{ number_format($efficiency ?? 0, 2) }}%