Total: @cMoney($stage->stage_amount ?? 0, $stage->contract->currency, true)
@if($stage->stage_amount - $remaining_amount)
Invoiced: @cMoney($stage->stage_amount - $remaining_amount, $stage->contract->currency, true)
@endif @if($remaining_amount != $stage->stage_amount && $remaining_amount)
Remaining: @cMoney($remaining_amount ?? 0, $stage->contract->currency, true)
@endif @if($paid_amount = $stage->getPhasesPaidAmount())
Paid: @cMoney($paid_amount, $stage->contract->currency, true)
@endif @if($stage->stage_amount - $paid_amount)
Unpaid: @cMoney($stage->stage_amount - $paid_amount, $stage->contract->currency, true)
@endif @if($retention_withheld = $stage->getTotalRetentionWithheld())
Retention Withheld: @cMoney($retention_withheld, $stage->contract->currency, true)
@endif @if($retention_released = $stage->getTotalReleasedRetention())
Retention Released: @cMoney($retention_released, $stage->contract->currency, true)
@endif