@extends('mainlayout.layout') @section('title') Miliki | {{$property->name}} @endsection @php use App\Models\{Property,PropertyOwner,Customer,PropertyPlotPricing,LandUse,PropertyPlot,VisitPayment}; @endphp @push('css') @endpush @section('content')

Plot No: {{PropertyPlot::find($plot->id)->plotnumber}} Of [ {{$property->name}} ]

Project Name

{{$property->name}}

Plot No:

{{$plot->plotnumber}}

Country

Tanzania

Region

{{App\Models\Region::find($property->region)->name}}

District

{{App\Models\District::find($property->district)->name}}

Area

{{ number_format( $plot->area_size,0,'.',',') }}

Full Price:

@if(App\Models\PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$plot->landuse)->count() > 0) TZS {{number_format(App\Models\PropertyPlotPricing::where('landuseid',$plot->landuse)->where('propertyid',$property->id)->first()->full,0,'.',',')}} Per SQM @else Add Project Pricing @endif

Installment Price

@if(App\Models\PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$plot->landuse)->count() > 0) TZS {{number_format(App\Models\PropertyPlotPricing::where('landuseid',$plot->landuse)->where('propertyid',$property->id)->first()->installment,0,'.',',')}} Per SQM @else Add Project Pricing @endif

Status

@if($plot->status==3) {{$plot->status_description}} @elseif($plot->status==2) {{$plot->status_description}} @elseif($plot->status==1) {{$plot->status_description}} @else {{$plot->status_description}} @endif
@if($plot->status==1) @elseif($plot->status==4) @elseif($plot->status==2) @endif
@if(!empty($order))

Reference No

{{$order->referenceid}}

Amount To Be Paid

TZS {{ number_format( $order->amount,0,'.',',') }}

Order Type

{{$order->order_type}}

Paid

TZS {{ number_format($amount_paid,0,'.',',') }}

Balance

{{ number_format($balance,0,'.',',') }}

Status

{{ $order->status_description }}

Customer Phone No

{{App\Models\User::find($order->userid)->phone}}

Initial Amount To Be Paid

TZS {{ number_format($order->initial_payment_amount,0,'.',',') }}

Initial Payment Expiry Date

{{$order->initial_expiry_date}}

Full Payment Expiry Date

{{$order->full_expiry_date}}

Created On

{{$order->created_at}}

Next Of Kin

{{$order->next_of_kin_firstname}} {{$order->next_of_kin_middlename}} {{$order->next_of_kin_surname}}

Next Of Kin Phone No

{{$order->next_of_kin_phonenumber}}

Next Of Kin Email

{{$order->next_of_kin_email}}

Next Of Kin RelationShip

{{$order->next_of_kin_relation}}

Next Of Kin ID Type

{{$order->next_of_kin_id_type}}

Next Of Kin ID

{{$order->next_of_kin_id_number}}

Property For

{{$order->firstname}} {{$order->middlename}} {{$order->surname}}

Property Owner Phone

{{$order->phonenumber}}

Property Owner Email

{{$order->email}}

Property Owner RelationShip

{{$order->propertyfor}}

Property Owner ID Type

{{$order->id_type}}

Property Owner ID

{{$order->id_number}}
@else

Reference No

Amount To Be Paid


Client Name:

Customer Phone No

Dependant

Dependant Phone No

@endif

Plot Visitation Bookings

@php $total_paid=0; @endphp @foreach($bookings as $index => $booking) @php $total_paid+=$booking->amount; @endphp @endforeach
# Id First Name Last Name Receipt Phone Number Date Location Amount Paid Status
{{++$index}} {{$booking->id}} {{$booking->firstname}} {{$booking->lastname}} @if(!empty(VisitPayment::where("booking_visit_id",$booking->id)->first()->receipt)) {{VisitPayment::where("booking_visit_id",$booking->id)->first()->receipt}} @endif {{$booking->phone}} {{$booking->booked_date_time}} {{$booking->location}} TZS {{ number_format($booking->amount,0,'.',',') }} {{$booking->status}}
TOTAL TZS {{number_format($total_paid,0,'.',',')}}

Payment Transaction

@php $total_paid=0; @endphp @foreach($transactions as $index => $transaction) @php $total_paid+=$transaction->amount_paid; @endphp @endforeach
# ReferenceId Transaction ID Receipt Date Source Amount Paid Status
{{++$index}} {{$transaction->reference}} {{$transaction->transactionId}} {{$transaction->receipt}} {{$transaction->created_at}} {{$transaction->sourceInstitution}} TZS {{ number_format($transaction->amount_paid,0,'.',',') }} {{$transaction->status_description}}
TOTAL TZS {{number_format($total_paid,0,'.',',')}}
@if($plot->status==3)

Post Purchase Status


{{count($statuses)}} Results found

@foreach($statuses as $index => $p) @endforeach
# Status Notes Document Date
{{++$index}} {{$p->status_description}} {!! $p->notes !!} @if(!empty($p->attachment)) Document @endif {{$p->created_at}}
@endif @endsection @push('scripts') @endpush