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
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:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user