@php
    $side = $drCr ?? null;
    $amount = (float) ($amount ?? 0);
@endphp
@if($side && $amount > 0)
    <span class="badge {{ $side === 'dr' ? 'text-bg-success' : 'text-bg-danger' }}" style="font-size:11px;min-width:34px">
        {{ strtoupper($side) }}
    </span>
@else
    <span class="text-muted">—</span>
@endif
