@extends('backend.master') @section('content')
Monthly Installment Amount: {{$buyer->monthly_price}}
Half Year Amount: {{$buyer->six_month_price}}
Advance Amount: {{$buyer->advance_amount}}
@foreach($buyer->plots as $plot) @isset($plot->plot_no)
Plot No:{{$plot->plot_no}}
Booking Price:{{$plot->booking_price}}
@if($buyer->discount)
Discount: {{$plot->booking_price-$buyer->discount*$plot->booking_price/100}}
@endif @if($buyer->penalty)
Penalty: {{$buyer->penalty+$buyer->penalty*$plot->booking_price/100}}
@endif
@if($buyer->penalty_note)
Penalty Note: {{$buyer->penalty_note}}
@endif
@php $total=0;$i=1 @endphp @php $total=0;$remaningAmount=0; @endphp @foreach($plot->buyerInstallments as $buyerInstallment) @php $total+=$buyerInstallment->amount_payed;@endphp @php $i++ @endphp @endforeach
Id Entery Date/Time Installment Number Paid Amount Remaining Amount. Installment Date/Time Action
{{$buyerInstallment->id}} {{$buyerInstallment->created_at}} {{$i}} Installment {{$buyerInstallment->amount_payed}} {{($plot->booking_price-$buyer->advance_amount)-$total}} {{$buyerInstallment->date}}

Total Installments Paid Amount : {{$total}}

   

Total of remaining Amount : {{($plot->booking_price-$buyer->advance_amount)-$total}}

@endisset @endforeach
@stop @if(Session::get('error')) @endif