@extends('layouts.app') @section('title') Detail of Customer Statement @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

{{env('APP_NAME')}}

Account Statement

  Member Information

@php $ownerArray[] = $property->customer->name; if(!empty($property->customer->first_owner)) { $ownerArray[] = $property->customer->first_owner; } if(!empty($property->customer->second_owner)) { $ownerArray[] = $property->customer->second_owner; } @endphp
Ref No: {{$property->membership_no}} CNIC No. @if(count($ownerArray) > 1) {{str_replace('_' , '' , $property->customer->cnic)}}, {{$property->customer->first_owner_cnic}}, {{$property->customer->second_owner_cnic}} @else @if(($i == 5 || $i == 12) && $property->customer->type == 0) - @endif @endif
Member Name: @if(count($ownerArray) > 1) {{$property->customer->name}}, {{$property->customer->first_owner}}, {{$property->customer->second_owner}} @else {{$property->customer->name}} @endif S/O: @if(count($ownerArray) > 1) {{$property->customer->father_name}}, {{$property->customer->first_owner_father}}, {{$property->customer->second_owner_father}} @else {{$property->customer->father_name}} @endif
Contact #: {{$property->customer ? $property->customer->mobile_number : ''}} Address: {{$property->customer->mailing_address}}

  Unit's Details

@if($property->down_payment_note) @endif @if($property->sms_alert == true) @else @endif @if($property->email_alert == true) @else @endif @permission('print-membership') @endpermission @permission('print-membership') @endpermission @permission('print-membership') @endpermission
Floor / Street: @if($property->inventory->floor) {{$property->inventory->floor->name}}@endif
Block: {{$property->inventory->floor ? $property->inventory->floor->unitBlock->name : ''}}
Category: @foreach($property->inventory->categories as $c) @if($loop->last) {{$c->category->name}} ({{$c->category->percent}} ) @else {{$c->category->name}} ({{$c->category->percent}} ), @endif @endforeach
Size: {{$property->inventory->size ? $property->inventory->size->name : '' }} {{env('SIZE')}}
Total Price: {{number_format($property->inventory->total_price )}}
Net Amt.: {{number_format($property->net_pay)}}
Notes: {{$property->down_payment_note}}
Automatic Sms AlertsOnOff
Automatic Email AlertsOnOff
Booking Form Sale Agreement
@if($property->booking_type == \App\CustomerProperty::normal) @elseif($property->booking_type == \App\CustomerProperty::full_payment) @endif
Unit No.: {{$property->inventory ? $property->inventory->unit_number : '' }}
Unit Type: {{$property->inventory->type->name}}
Area: {{$property->inventory->area}}
Discount: {{number_format($property->discount )}}
Category Cost: {{number_format($property->inventory->extra_amount) }}
Booking Type : InstallmentFull Payment
Booking Date: {{date('d-m-Y', strtotime($property->original_boooking_date)) }}
Schedule Start Date: @if($property->schedule_start_date) {{date('d-m-Y', strtotime($property->schedule_start_date)) }} @endif
Sale By : {{$property->saleBy ? $property->saleBy->name : ''}}
  Dealer's Detail +

  Payment Detail

Net Price: {{number_format($property->net_pay)}} Received Amount: {{number_format($amount)}} Outstanding Amt: {{number_format($property->net_pay - $amount)}}
Total Received %: {{number_format($receivedAmtPer , 2)}} % Over Due Amt. {{number_format($overDue)}}

{{ env('APP_NAME') }}


CUSTOMER STATEMENT OF ACCOUNT AS ON {{strtoupper (date('F d, Y')) }}

Name @if($property->customer->father_type == 1) {{'Mr.'}} @elseif($property->customer->father_type == 2) {{'Ms.'}} @elseif($property->customer->father_type == 3) {{'Mrs.'}} @else {{ 'Company Name' }} @endif {{$property->customer->name}} Address: {{$property->customer->mailing_address}}
@if($property->customer->type == 0) {{ 'CNIC No:' }} @else {{ 'Incorporation no' }} @endif @if(($i == 5 || $i == 12) && $property->customer->type == 0) - @endif

Apartment Details:

File No:
{{$property->inventory->unit_number}}
Block:
Floor:
Type:
{{$property->inventory->type->name}}
Reference No::
{{$property->membership_no}}
Category:
@foreach($property->inventory->categories as $c) @if($loop->last) {{$c->category->name}} @else {{$c->category->name}} @endif @endforeach
Apartment No:
{{$property->inventory->unit_number}}
Gross Area (Sft.):
{{number_format($property->inventory->size->name)}}

Payment Plan:

Sale Price: {{number_format($property->inventory->total_price - $property->inventory->extra_amount)}}
Discount: {{number_format($property->discount )}}
Final Unit Price: {{number_format($property->net_pay)}}
Received Amount: {{number_format($amount)}} ({{ number_format($receivedAmtPer , 2) }} % )
Outstanding Amount: {{number_format($property->net_pay - $amount)}} ({{ number_format($outstandingAmtPer , 2) }} % )
@php $inst_counter=0; @endphp @foreach($property->statement as $st) @if($st->payment_head == \App\CustomerStatement::installment) @php $inst_counter++; @endphp @endif @endforeach
Price / Sft.:
{{number_format(($property->inventory->total_price - $property->inventory->extra_amount ) /$property->inventory->size->name)}}
No. of Installments:
Down + {{$inst_counter}} Inst.
TIER:
Location:
{{$property->inventory->description}}
Overdue Amount:
{{number_format($overDue)}}
@foreach($property->statement as $statement) @if($statement->due > 0) @if($statement->balance > 0 && $statement->due_date < Carbon\Carbon::today()) @else @endif @if($statement->payment_head == \App\CustomerStatement::down_payment) @elseif($statement->payment_head == \App\CustomerStatement::possession) @elseif($statement->payment_head == \App\CustomerStatement::installment) @elseif($statement->payment_head == \App\CustomerStatement::other) @else @endif @if($statement->is_deleted == false) @if($statement->receipt) @if($statement->receipt->payment_method == \App\Receipt::cash) @elseif($statement->receipt->payment_method == \App\Receipt::bank) @elseif($statement->receipt->payment_method == \App\Receipt::adjustment) @elseif($statement->receipt->payment_method == \App\Receipt::cheque) @else @endif @else @endif @else @endif @if($statement->is_deleted == false) @if($statement->received) @else @endif @else @endif @endif @endforeach
Payment Head Due Date Due Amt. Received Amt. Balance Payment Mode Receipt # Receipt Date Balance Amt.
Down PaymentPossession FeeInstallment - {{$statement->inst_no}}Other {{date('d-m-Y', strtotime($statement->due_date)) }} {{number_format($statement->due)}} @if($statement->is_deleted == false){{number_format($statement->received)}} @else 0 @endif @if($statement->is_deleted == false){{number_format($statement->balance)}} @else {{number_format($statement->due)}} @endif CashBankAdjustmentCheque@if($statement->is_deleted == false) {{$statement->rcpt_no}} @endif @if($statement->is_deleted == false) {{ $statement->rcpt_date ? date('d-m-Y', strtotime($statement->rcpt_date)) : '' }} @endif {{number_format($total)}}
Total {{number_format($due)}} {{number_format($received)}} {{number_format($total)}}

@if($property->booking_type == \App\CustomerProperty::full_payment ) @if($property->fullPayment)

Discount Payment Terms


Total Amount : {{number_format($property->fullPayment->total_amount)}}
Discount Percentage : {{$property->fullPayment->discount_percentage}} %
Discount Amount {{number_format($property->fullPayment->discount_amount)}}
Net Amount {{number_format($property->fullPayment->discount_amount - $property->fullPayment->deduction_amount)}}
@if($property->fullPayment->return_tenure == \App\CustomerProperty::monthly) @elseif($property->fullPayment->return_tenure == \App\CustomerProperty::quarterly) @elseif($property->fullPayment->return_tenure == \App\CustomerProperty::semi_annually) @elseif($property->fullPayment->return_tenure == \App\CustomerProperty::annually) @else @endif
Total Tenure : {{$property->fullPayment->total_tenure}} months
Return Tenure : Monthly Quarterly Semi Annually Annually
Deduction Amount : {{number_format($property->fullPayment->deduction_amount)}}
@foreach($property->fullPaymentStatement as $statement) @endforeach
inst # Due Date Due Amount Paid Amount Receipt # Receipt Date Balance Amount
{{$count++}} {{date('d-m-Y', strtotime($statement->due_date)) }} {{number_format($statement->due)}} {{number_format($statement->received)}} {{$statement->receipt_no}} {{ $statement->receipt_date ? date('d-m-Y', strtotime($statement->receipt_date)) : '' }} {{number_format($statement->due - $statement->received)}}
Total {{number_format($due)}} {{number_format($received)}} {{number_format($balance)}}
@endif @endif @if($property->propertyTax)

Property Tax Record

@foreach($property->PropertyTax as $tax) @endforeach
Sr # inst # Tax Pay By Payment Received Status CPR Action
{{$sr++}} @if($tax->statement->payment_head == \App\CustomerStatement::down_payment) Down Payment @elseif($tax->statement->payment_head == \App\CustomerStatement::possession) Possession Fee @elseif($tax->statement->payment_head == \App\CustomerStatement::installment) Installment - {{$tax->statement->inst_no}} @elseif($tax->statement->payment_head == \App\CustomerStatement::other) Other @endif {{number_format($tax->statement->due * 0.02)}} @if($tax->tax_pay_by == \App\Receipt::customer) Customer @else Company @endif {{$tax->tax_payment_received == \App\CustomerPropertyTax::paid ? 'YES' : 'NO'}} {{$tax->status == \App\CustomerPropertyTax::paid ? 'Paid' : 'UnPaid'}} @if($tax->status)
Reference # {{$tax->reference}} @endif
@if($tax->cpr)  Download @endif @if($tax->status == \App\CustomerPropertyTax::unpaid ) @endif
Total {{number_format($sum)}}
@endif
@stop @section('js') @stop