@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')) Customer Summary @include('letters.pdf_letter_header')

CUSTOMER SUMMARY

@include('documents.customer_info') @include('documents.plot_info') @include('documents.payment_history')
@php ($totalamount = 0) @php($received = 0) @php($balance = 0 ) @php($short = 0) @foreach($installment as $rows) @if($rows->received_amount < $rows->amount) @if($rows->received_amount >= $rows->amount) @else @endif @php($totalamount = $totalamount +($rows->amount)) @php($received = $received +($rows->received_amount)) @php($balance = $balance +(($rows->amount)-($rows->received_amount))) @endif @endforeach @php ($short = $booking->getShortAmount($booking->id))
Outstanding Installment Plan
Sr. Description Actual Amount Amount Received Balance Status Date
{{$loop->iteration}} {{$rows->description}} {{EF::numberFormat($rows->actual_amount)}} {{EF::numberFormat($rows->amount)}} {{EF::numberFormat($rows->received_amount)}} {{EF::numberFormat(($rows->amount)-($rows->received_amount))}}PaidUnpaid{{EF::dateFormat($rows->due_date)}}
Total {{EF::numberFormat($booking->agreed_amount)}} {{EF::numberFormat($totalamount)}} {{EF::numberFormat($received)}} {{EF::numberFormat($balance)}} Short: {{EF::numberFormat($short)}}