@extends("front.layout") @section("content")

My Loans

@if($myproperties->count()) @foreach($myproperties as $property) @foreach ($property->mortgage_informations as $mortinfo)
{{$property->address}}, {{$property->city}}, {{$property->zipcode}}
Current Interest Rate Current Loan Balance Initial Loan Term Loan Program PMI Mortgage Date Monthly PMI Payment Property Type
{{number_format($mortinfo->current_interest_rate, 3)}}% ${{number_format($mortinfo->current_loan_balance, 2)}} {{monthToYear($mortinfo->loan_term)}} {{$mortinfo->loan_program}} {{$mortinfo->pmi}} @if($mortinfo->mortgage_start_date) {{\Carbon\Carbon::parse($mortinfo->mortgage_start_date)->format("m-d-Y")}} @endif ${{number_format($mortinfo->monthly_pmi_payment, 2)}} {{$property->property_type}}
@endforeach
@if($property->mortgage_informations->count() == 0)
No Loan Info Found
@endif @endforeach @else
No Loan Info Found
@endif
@endsection