added tailwind logic in target
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Larastan / larastan (pull_request) Failing after 5m44s
Laravel Pint / pint (pull_request) Successful in 5m54s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Larastan / larastan (pull_request) Failing after 5m44s
Laravel Pint / pint (pull_request) Successful in 5m54s
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user