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

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

{{$plot->area_size}}

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

{{$plot->status_description}}
@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}}

Dependant

Dependant Phone No

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}}

Percentage To Completion

{{calculate_percentage_completion($order)}} %
@else

Reference No

Amount To Be Paid


Client Name:

Customer Phone No

Dependant

Dependant Phone No

@endif

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,'.',',')}}
@endsection @push('scripts') @endpush