@php $payable_amount = $item->nettotal - $item->payments->sum('amount'); @endphp