{{--
START - If Property has no mortgage then Mortgage Info should be show other wise Edit Mortgage will be show
--}}
{{-- Show Mortgage Info / Edit Mortgage Info only once --}}
@if(!$mortgage_infos->first()->id)
Mortgage Info
@else
Edit Mortgage Info
@endif
@foreach($mortgage_infos as $idx => $mortgage_info)
@if($idx < 1)
@endif
@if($idx < 1)
@endif
@if(isset($mortgage_info->current_loan_balance) && $mortgage_info->current_loan_balance > 0 && $idx == 1)
@endif
@if(
(count($mortgage_infos) == 1 && $idx == 0) ||
(count($mortgage_infos) == 2 && $idx == 1 && (is_null($mortgage_info->current_loan_balance) || $mortgage_info->current_loan_balance == 0))
)
@endif
@endforeach