@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

@php $ownerArray[] = $customer->name; if (!empty($customer->first_owner)) { $ownerArray[] = $customer->first_owner; } if (!empty($customer->second_owner)) { $ownerArray[] = $customer->second_owner; } @endphp @if (count($ownerArray) > 1) {{ 'Joint Owners' }} @else {{ $customer->name }} @endif

{{ $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 (count($ownerArray) > 1) @endif @if ($customer->father_type == 1) @elseif($customer->father_type == 2) @elseif($customer->father_type == 3) @else @endif
Code {{ $acronym }}00{{ $customer->id }}
Names {{ $customer->name }}, {{ $customer->first_owner }}, {{ $customer->second_owner }}
S/O, D/O, W/O.S/O, D/O, W/O.S/O, D/O, W/O.S/O, D/O, W/O. @if (count($ownerArray) > 1) {{ $customer->father_name }}, {{ $customer->first_owner_father }}, {{ $customer->second_owner_father }} @else {{ $customer->father_name }} @endif
CNIC @if (count($ownerArray) > 1) {{ str_replace('_', '', $customer->cnic) }}, {{ $customer->first_owner_cnic }}, {{ $customer->second_owner_cnic }} @else {{ str_replace('_', '', $customer->cnic) }} @endif
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 }}

Joint Owner's


Owner 1 {{ $customer->first_owner }} Owner Father {{ $customer->first_owner_father }} Owner Cnic {{ $customer->first_owner_cnic }}
Owner 2 {{ $customer->second_owner }} Owner Father {{ $customer->second_owner_father }} Owner Cnic {{ $customer->second_owner_cnic }}

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) @if ($property->status == \App\CustomerProperty::pending) @elseif($property->status == \App\CustomerProperty::approved) @elseif($property->status == \App\CustomerProperty::cancel) @elseif($property->status == \App\CustomerProperty::block) @else @endif @endforeach
Unit # Unit Size Total Cost Received Amount Remaining Amount Booking Date Status View
{{ $property->inventory ? $property->inventory->unit_number : '' }} {{ $property->inventory ? $property->inventory->size->name : '' }} {{ env('SIZE') }} {{ number_format($property->net_pay) }} {{ number_format($property->statement->sum('received')) }} {{ number_format($property->net_pay - $property->statement->sum('received')) }} {{ date('d-m-Y', strtotime($property->booking_date)) }}PendingApprovedCanceledBlocked @permission('view-membership')     @endpermission @permission('download-statement') @endpermission

Transfer Properties Detail


@foreach ($transferproperty as $tr) @endforeach
Unit # Unit Size Total Amount Paid Transfer To Status Transfer Date Detail
{{ $tr->property ? $tr->property->inventory->unit_number : ''}} {{ $tr->property ? $tr->property->inventory->size->name : '' }} {{ env('SIZE') }} {{ $tr->amount_paid }} transfer->id) }}'> {{ $tr->transfer->name }} Transfered {{ date('d-m-Y', strtotime($tr->transfer_date)) }} @permission('view-membership')     @endpermission

Transaction Records

@permission('create-receipt') Add new @endpermission
@foreach ($customerReceipts 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) @else @endif @if ($receipt->property->status == \App\CustomerProperty::cancel) @else @if ($receipt->is_approved == \App\Receipt::approve) @else @if ($receipt->cheaque_status == \App\Receipt::cancel) @else @endif @endif @endif @endforeach
Unit # Payment Head Payment Mode Amount Status Date
{{ $receipt->property->inventory ? $receipt->property->inventory->unit_number : 0 }}Possession FeeDown PaymentInstallmentOtherTransfer FeeCashBank transferCheque{{ number_format($receipt->amount) }} PKR Canceled Approved Cheaque Cancel Pending {{ date('d-m-Y', strtotime($receipt->receipt_date)) }}
@stop @section('js') @stop