@php($message = 'Booking Form against booking details (Article Name:"'.$booking->plot->plot_id.' "Type:" '.$booking->plot->type .'") has been viewed') @php(EF::createLogs($message,'document')) Payment Schedule

Payment Schedule
@if($user->relation == 'S/O')
@elseif($user->relation == 'D/O')
@elseif($user->relation == 'W/O')
@else
@endif
{{-- @include('documents.customer_info') @include('documents.plot_info') --}} @php($net_balance = 0)
@php ($totalamount = 0) @php($received = 0) @php($balance = 0 ) @php($short = 0) @foreach($installment as $rows) @if($rows->type_of_installment === "Down Payment") @endif @endforeach @foreach($installment as $rows) @if($rows->type_of_installment === "Installment") @php($totalamount += $rows->amount)) @php($received += $rows->received_amount) @endif @endforeach @foreach($installment as $rows) @if($rows->type_of_installment != "Installment" && $rows->type_of_installment != "Down Payment") @endif @endforeach
Description Amount Due Date Delay (days) Penalty Balance Payment Net Balance
{{$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))}}
Total 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))}}
Total Installment Amount {{EF::numberFormat($totalamount)}} 0 0 {{EF::numberFormat($totalamount)}} {{EF::numberFormat($received)}} {{EF::numberFormat($totalamount - $received)}}
{{$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))}}

Receipt Detail
@php($reversal_amount = 0) @php($approval_amount = 0) @php($check_list = ["Installment","Commission","Transfer","Refund","Deduction","Document Charges","Baloon Charges"]) @foreach($receipt_list as $rows) @if(in_array($rows->payment_type,$check_list)) @if($rows->mode == 'Cash') @else @endif @if($rows->status === 'Reversal') @php($reversal_amount += $rows->amount) @else @php($approval_amount += $rows->amount) @endif @endif @endforeach
Receipt No Date Ch # Drawn On Amount
{{$rows->receipt_no}} {{EF::dateFormat($rows->created_at)}}Cash{{$rows->instrument}}{{$rows->drawn_on}} {{EF::numberFormat($rows->amount)}} {{EF::numberToWords($rows->amount)}}
Total: [Debit:{{EF::numberFormat($approval_amount)}} - Credit:{{EF::numberFormat($reversal_amount)}}] = {{EF::numberFormat(($approval_amount - $reversal_amount))}}