@extends( 'layouts.app' ) @section('title') Customer Detail @stop @section('css') @stop @section('breadcrumb') @stop @section('content')
@if($customer->img_url) user-img @else user-img @endif

{{$customer->name}}

{{$customer->mobile_number}}

{{number_format($received)}}

PKR

Paid Amount

{{number_format($dueAmount)}}

PKR

Due Amount

{{number_format($outstandingAmt)}}

PKR

Outstanding Amt

Basic Information

@permission('edit-customer') Edit @endpermission
@if($customer->father_type == 1) @elseif($customer->father_type == 2) @elseif($customer->father_type == 3) @else @endif
Code {{$acronym}}00{{$customer->id}}
S/O, D/O, W/O.S/O, D/O, W/O.S/O, D/O, W/O.S/O, D/O, W/O. {{$customer->father_name}}
CNIC {{str_replace('_' , '' , $customer->cnic)}}
Passport No. {{$customer->passport_no}}
Date of Birth {{date('d-m-Y', strtotime($customer->dob)) }}
Occupation {{$customer->occupation}}
Mailing Address {{$customer->mailing_address}}
Permanent Address {{$customer->permanent_address}}
Email {{$customer->email}}
Phone Number {{$customer->phone_number}}
Residential Number {{$customer->res_number}}
Mobile Number {{$customer->mobile_number}}
Is Filer {{$customer->is_filer ? 'YES' : 'NO'}}
NTN Number {{$customer->ntn_number}}
Updated at {{$customer->updated_at}}
Created at {{$customer->created_at}}

Nominee Information


@if($customer->nominee_father_type == 1) @elseif($customer->nominee_father_type == 2) @elseif($customer->nominee_father_type == 3) @else @endif
Name Of Nominee {{$customer->nominee_name}}
S/O, D/O, W/O.S/O, D/O, W/O.S/O, D/O, W/O.S/O, D/O, W/O. {{$customer->nominee_so_do_wo}}
CNIC {{$customer->nominee_cnic}}
Address {{$customer->nominee_address}}
Passport No. {{$customer->nominee_passport_no}}
Email {{$customer->nominee_email}}
Phone Number {{$customer->nominee_phone_number}}
Residential Number {{$customer->nominee_res_number}}
Mobile Number {{$customer->nominee_mobile_number}}
Relation With Applicant {{$customer->nominee_relation}}
@if($customer->nominee) @foreach($customer->nominee as $n)
Name Of Nominee {{$n->nominee_name}}
S/O, D/O, W/O. {{$n->nominee_so_do_wo}}
CNIC {{$n->nominee_cnic}}
Passport No. {{$n->nominee_passport_no}}
Email {{$n->nominee_email}}
Phone Number {{$n->nominee_phone_number}}
Residential Number {{$n->nominee_res_number}}
Mobile Number {{$n->nominee_mobile_number}}
Relation With Applicant {{$n->nominee_relation}}
@endforeach @endif

File Bank

 Add New
@foreach($customer->documents as $d)

@if(strpos($d->url, 'docx') !== false) @elseif(strpos($d->url, 'pdf') !== false) @else @endif

@if(strpos($d->url, 'docx') !== false)  Download           @else  Preview    Download   @endif  Delete
@endforeach

Follow up history


@foreach($followUps as $f) @endforeach
Created at Unit # Remarks Next Follow up Date
{{date('d-m-Y h:i', strtotime($f->created_at)) }} {{$f->property->inventory->unit_number}} {{$f->remarks}} {{date('d-m-Y', strtotime($f->next_follow_up)) }}

Customer Properties


@foreach($customer->properties as $property) @endforeach
Unit # Unit Size Total Cost Received Amount Remaining Amount Booking Date View
{{$property->inventory->unit_number}} {{$property->inventory->size->name}} {{env('SIZE')}} {{number_format($property->net_pay)}} {{number_format($property->receipts? $property->receipts->sum('amount') : 0)}} {{number_format($property->net_pay - ($property->receipts? $property->receipts->sum('amount') : 0))}} {{date('d-m-Y', strtotime($property->booking_date)) }} @permission('view-membership')     @endpermission @permission('download-statement') @endpermission

Transaction Records

@permission('create-receipt') Add new @endpermission
@foreach($customer->receipts as $receipt) @if($receipt->payment_head == \App\Receipt::possession_fee) @elseif($receipt->payment_head == \App\Receipt::down_payment) @elseif($receipt->payment_head == \App\Receipt::installment) @elseif($receipt->payment_head == \App\Receipt::other) @elseif($receipt->payment_head == \App\Receipt::transfer_fee) @else @endif @if($receipt->payment_mode == \App\Receipt::cash) @elseif($receipt->payment_mode == \App\Receipt::bank) @elseif($receipt->payment_mode == \App\Receipt::cheque) @endif @endforeach
Unit # Payment Head Payment Mode Amount Date
{{$receipt->property ? $receipt->property->inventory->unit_number: 0}}Possession FeeDown PaymentInstallmentOtherTransfer FeeCashBank transferCheque{{number_format($receipt->amount)}} PKR {{date('d-m-Y', strtotime($receipt->receipt_date)) }}
@stop @section('js') @stop