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"> <td class="border px-4 py-2 whitespace-nowrap font-semibold">
{{ $monthlyActualQuantity ?? 0 }} {{ $monthlyActualQuantity ?? 0 }}
</td> </td>
<td class="border px-4 py-2 whitespace-nowrap font-semibold @if(($efficiency ?? 0) > 95)
{{ ($efficiency ?? 0) > 95 @php $bgStyle = 'background-color: #22c55e; color: white;' @endphp
? 'bg-green-600 text-white' @elseif(($efficiency ?? 0) >= 85)
: (($efficiency ?? 0) >= 85 @php $bgStyle = 'background-color: #eab308; color: white;' @endphp
? 'bg-yellow-400 text-white' @else
: 'bg-red-600 text-white') }}"> @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) }}% {{ number_format($efficiency ?? 0, 2) }}%
</td> </td>