modified logic in efficiency for colour
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Failing after 32s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 19s
Laravel Pint / pint (pull_request) Successful in 2m37s
Laravel Larastan / larastan (pull_request) Failing after 7m43s

This commit is contained in:
dhanabalan
2026-10-01 18:19:22 +05:30
parent 3e9c3381f5
commit 7042de9c0e

View File

@@ -48,13 +48,11 @@
{{ $monthlyActualQuantity ?? 0 }}
</td>
<td class="border px-4 py-2 whitespace-nowrap font-semibold
@if(($efficiency ?? 0) > 95)
bg-green-600 text-white
@elseif(($efficiency ?? 0) >= 85)
bg-yellow-400 text-white
@else
bg-red-600 text-white
@endif">
{{ ($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) }}%
</td>