{{-- % tăng/giảm so với kỳ trước dưới thẻ KPI. Biến: $item = $compare[key] (previous, percent), $compareLabel --}} @if(!empty($item)) @php $percent = $item['percent']; $state = $percent === null ? 'is-flat' : ($percent > 0 ? 'is-up' : ($percent < 0 ? 'is-down' : 'is-flat')); @endphp