Merge pull request 'added tailwind logic in target' (#1156) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s

Reviewed-on: #1156
This commit was merged in pull request #1156.
This commit is contained in:
2026-10-01 12:53:15 +00:00

View File

@@ -47,12 +47,14 @@
<td class="border px-4 py-2 whitespace-nowrap font-semibold">
{{ $monthlyActualQuantity ?? 0 }}
</td>
<td class="border px-4 py-2 whitespace-nowrap font-semibold
{{ ($efficiency ?? 0) > 95
? 'bg-green-600 text-white'
: (($efficiency ?? 0) >= 85
? 'bg-yellow-400 text-white'
: 'bg-red-600 text-white') }}">
@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
<td class="border px-4 py-2 whitespace-nowrap font-semibold" style="{{ $bgStyle }}">
{{ number_format($efficiency ?? 0, 2) }}%
</td>