@extends('docs.master', ['title' => 'Plam 1 ']) {{-- @extends('docs.mastertwo' ? 'docs.mastertwo' : 'docs.master', ['title'=> 'Payment Schedule ']) --}} @section('content')

SILVER

 

@php @endphp
CLIENT:{{$model->customername}}
 
Unit Type:{{ $model->unittype ? $model->unittype->unittype : '-' }}
APARTMENT NO: {{($model->unitname)?$model->unitname:'-'}}
BLOCK:{{($model->buildingname)?$model->buildingname:'-'}}
FlOOR:{{$model ? $model->floorname : ''}}
 

{{-- @php dd($model->unitsale_extra_charges); @endphp --}} @if (isset($model->unitsale_extra_charges) && count($model->unitsale_extra_charges) > 0) @foreach ($model->unitsale_extra_charges as $items) @endforeach @else @endif
MODE OF PAYMENT AMOUNT
BOOKING PKR         {{number_format(($model->price) /($model->ipd_price),2)}}
CONFIRMATION PKR         {{number_format($model->on_confirmation ? $model->on_confirmation[0]->due : (($model->price) / ($model->ipd_price)),2)}}
ِALLOCATION PKR         {{number_format($model->on_allocation ? $model->on_allocation[0]->due : (($model->price) / ($model->ipd_price)),2)}}
MONTHLY INSTALLMENTS (10 * 800000) PKR         {{number_format(($model->installments[0]['due']) * 10,2)}}
ON POSSESSION PKR         {{number_format($model->on_possion ? $model->on_possion[0]->due : (($model->price) / ($model->ipd_price)),2)}}
TOTAL AMOUNT PKR         {{number_format($model->net_payable,2)}}
EXTRA CHARGES  
{{$items->charge_type->description ?? '-'}} PKR         {{number_format($items->charges,2)}} PKR         {{number_format($items->charges,2)}}
WEST OPEN   -   -
CORNER PKR         - PKR         -
ROAD VIEW PKR         - PKR         -
TOTAL AMOUNT INCLUDING EXTRA CHARGES PKR         {{number_format($model->price + $model->extra_charges,2)}}
DISCOUNT PKR          {{number_format($model->discount,2)}}
TOTAL AMOUNT PKR         {{number_format($model->price - $model->discount + $model->extra_charges,0)}}
 
@php $totaldue = 0; $totalreceived = 0; $future_installments = []; $future_dates = []; $installment_date; $installments = $model->installments; $installmentCount = count($installments); $continueEveryMonthDisplayed = false; @endphp @foreach($model->installments as $index=> $item) @php $installment_date = strtotime($item->date1); $current_date = strtotime(date('d-M-Y')); @endphp @if($item->IsInstallment ) @if(strtotime($item->date1) <= strtotime(date('d-M-Y'))) @endif @if(strtotime($item->date1) > strtotime(date('d-M-Y')) && $index <= ($installmentCount - 9) ) @endif {{-- @php(dd($model['future_installment'][0]['date'])) --}} @if( strtotime($item->date1) > $current_date) @if($index >= ($installmentCount - 2)) @if (!$continueEveryMonthDisplayed) @php ($continueEveryMonthDisplayed = true) @endif @endif @endif @else @endif @endforeach
PAYMENT PLAN AMOUNT
DUE DATE BREAK DOWN AMOUNT RECEIVED STATUS DUE AMOUNT RECEIVED DATE
{{ date('d-M-y', strtotime($item->date1)) }}
{{$item->paymenttypedetail}}
PKR {{number_format($item->due,2)}} PKR          @php ($totalreceived += $item->mount_received) {{number_format($item->mount_received,2)}} - @php ($totaldue += $item->due) {{number_format($item->due,2)}}
{{ date('d-M-y', strtotime($item->date1)) }}
{{ date('d-M-y', strtotime($item->date1)) }}
{{$item->paymenttypedetail}}
PKR {{number_format($item->due,2)}} PKR          @php ($totalreceived += $item->mount_received) {{number_format($item->mount_received,2)}} - @php ($totaldue += $item->due) {{number_format($item->due,2)}}
{{ date('d-M-y', strtotime($item->date1)) }}
          Continue Every Month
{{ date('d-M-y', strtotime($item->date1)) }}
{{$item->paymenttypedetail}}
PKR {{number_format($item->due,2)}} PKR          @php ($totalreceived += $item->mount_received) {{number_format($item->mount_received,2)}} - @php ($totaldue += $item->due) {{number_format($item->due,2)}}
{{ date('d-M-y', strtotime($item->date1)) }}
{{ date('d-M-y', strtotime($item->date1)) }}
{{$item->paymenttypedetail}}
PKR  {{number_format($item->due,2)}} PKR          @php ($totaldue += $item->due) @php ($totalreceived += $item->mount_received) {{number_format($item->mount_received)}} - @php ($totaldue += $item->due) {{number_format($item->due)}}
{{ date('d-M-y', strtotime($item->date1)) }}
@endsection