Customer Name: {{ucfirst($user->name)}}
@if($user->relation == 'S/O')
S / O: {{ucfirst($user->fname)}}
@elseif($user->relation == 'D/O')
D / O: {{ucfirst($user->fname)}}
@elseif($user->relation == 'W/O')
W / O: {{ucfirst($user->fname)}}
@else
S / O: {{ucfirst($user->fname)}}
@endif
Customer Code: {{$user->code}}
Address: {{$user->per_address}}
Registration Number: {{$booking->ms}}
Sale Price: {{EF::numberFormat($booking->agreed_amount)}}
{{--
@include('documents.customer_info')
@include('documents.plot_info')
--}}
@php($net_balance = 0)
Description
Amount
Due Date
Delay (days)
Penalty
Balance
Payment
Net Balance
@php ($totalamount = 0)
@php($received = 0)
@php($balance = 0 )
@php($short = 0)
@foreach($installment as $rows)
@if($rows->type_of_installment === "Down Payment")
{{$rows->description}}
{{EF::numberFormat($rows->amount)}}
{{EF::dateFormat($rows->due_date)}}
0
0
{{EF::numberFormat($rows->amount)}}
{{EF::numberFormat($rows->received_amount)}}
{{EF::numberFormat(($rows->amount)-($rows->received_amount))}}
@endif
@endforeach
Total Down Payment
@foreach($installment as $rows)
@if($rows->type_of_installment === "Installment")
{{$rows->description}}
{{EF::numberFormat($rows->amount)}}
{{EF::dateFormat($rows->due_date)}}
0
0
{{EF::numberFormat($rows->amount)}}
{{EF::numberFormat($rows->received_amount)}}
{{EF::numberFormat(($rows->amount)-($rows->received_amount))}}
@php($totalamount += $rows->amount))
@php($received += $rows->received_amount)
@endif
@endforeach
Total Installment Amount
{{EF::numberFormat($totalamount)}}
0
0
{{EF::numberFormat($totalamount)}}
{{EF::numberFormat($received)}}
{{EF::numberFormat($totalamount - $received)}}
@foreach($installment as $rows)
@if($rows->type_of_installment != "Installment" && $rows->type_of_installment != "Down Payment")
{{$rows->description}}
{{EF::numberFormat($rows->amount)}}
{{EF::dateFormat($rows->due_date)}}
0
0
{{EF::numberFormat($rows->amount)}}
{{EF::numberFormat($rows->received_amount)}}
{{EF::numberFormat(($rows->amount)-($rows->received_amount))}}
@endif
@endforeach