@php $record = $getRecord(); $amountPaid = (float) $record->amount_paid; $totalIncl = (float) $record->total_incl; $show = $record->amount_paid !== null && in_array($record->status, ['paid', 'processing', 'shipped', 'delivered', 'closed']) && abs($totalIncl - $amountPaid) >= 0.01; @endphp {{-- DEBUG: always show --}}

DEBUG — status: {{ $record->status }} | amount_paid: {{ $record->amount_paid ?? 'NULL' }} | total_incl: {{ $record->total_incl }} | show: {{ $show ? 'YES' : 'NO' }}