added tailwind logic in target #1156

Merged
jothi merged 1 commits from ranjith-dev into master 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>