@php $isZero = $percentage == 0; $colorClass = $isZero ? 'text-dark' : ($percentage > 0 ? 'tx-success' : 'tx-danger'); $iconClass = $isZero ? null : ($percentage > 0 ? 'ion-android-arrow-up' : 'ion-android-arrow-down'); @endphp @if ($iconClass) @endif {{ $percentage > 0 ? '+' : '' }}{{ number_format($percentage, 2) }}%