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

Project: [ {{$property->name}} ]

Details

@if($property->visible) @else @endif

Project Name

{{$property->name}}

Project Plot ID

{{$property->property_plotid}}

Block Number

{{$property->blocknumber}}

Number of Plots

{{$property->number_of_plots}}

Area Size

{{$property->area_size}}

Regitered On

{{$property->created_at}}

Views

{{$property->views}}

Likes

{{$property->likes}}

Region

{{App\Models\Region::where('id',$property->region)->first()->name}}

District

{{App\Models\District::where('id',$property->district)->first()->name}}

Launch Date

{{$property->livedate}}


Project Description

{!! $property->description_en !!}

Order Configuration

Installment Initial Expiry Days

{{$property->installment_initial_expiry_days}}

Installment Initial Percentage

{{$property->installment_initial_percentage}}

Installment Complete Expiry Days

{{$property->installment_complete_expiry_days}}

Full Payment Initial Expiry Days

{{$property->full_initial_expiry_days}}

Full Initial Percentage

{{$property->full_initial_percentage}}

Full Complete Expiry Days

{{$property->full_complete_expiry_days}}

{{count($plots)}} Results found

@foreach($plots as $index => $p) @if($p->status==3) @elseif($p->status==2) @elseif($p->status==1) @else @endif @if(PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->count() > 0) @endif @endforeach
# Plot Number Area Land Use Status Full Price Installment Price Total Full Price Total Installment Price Customer Amount Paid Added On Action
{{++$index}} {{$p->plotnumber}} {{number_format($p->area_size,0,'.',',')}} {{LandUse::where('id',$p->landuse)->first()->use_en}}{{$p->status_description}}{{$p->status_description}}{{$p->status_description}}{{$p->status_description}} @if(PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->count() > 0) {{number_format( PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->first()->full,0,'.',',')}} @else Add Project Pricing @endif @if(PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->count() > 0) {{ number_format( PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->first()->installment,0,'.',',')}} @else Add Project Pricing @endif @if(PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->count() > 0) {{number_format( PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->first()->full*$p->area_size,0,'.',',')}} @else Add Project Pricing @endif @if(PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->count() > 0) {{ number_format( PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->first()->installment*$p->area_size,0,'.',',')}} @else Add Project Pricing @endif @if($p->status==3) @php if(Order::where('plotid',$p->id)->where("status",2)->count() > 0){ $order=Order::find(Order::where('plotid',$p->id)->where("status",2)->first()->id); $user=User::find($order->userid); } else{ $order=[]; $user=[]; } @endphp @if(Order::where('plotid',$p->id)->where("status",2)->count() > 0) {{$user->first_name}} {{$user->last_name}} @endif @elseif($p->status==2) @if(Order::where('plotid',$p->id)->whereIn("status",[0,1])->count() > 0) @php $order=Order::find(Order::where('plotid',$p->id)->whereIn("status",[0,1])->first()->id); $user=User::find($order->userid); @endphp {{$user->first_name}} {{$user->last_name}} @endif @endif @if($p->status==3) @if(Order::where('plotid',$p->id)->where("status",2)->count() > 0) @php $order=Order::find(Order::where('plotid',$p->id)->where("status",2)->first()->id); $amount_paid=Transactions::where("reference",$order->referenceid)->sum("amount_paid"); @endphp {{number_format($amount_paid,0,'.',',')}} @elseif($p->status==2) @if(Order::where('plotid',$p->id)->whereIn("status",[0,1])->count() > 0) @php $order=Order::find(Order::where('plotid',$p->id)->whereIn("status",[0,1])->first()->id); $amount_paid=Transactions::where("reference",$order->referenceid)->sum("amount_paid"); @endphp {{number_format($amount_paid,0,'.',',')}} @endif @endif @endif {{$p->created_at}}View More

Pricing


{{count($pricing)}} Results found

@foreach($pricing as $index => $p) @endforeach
# LandUse LandUse ID Full Installment
{{++$index}} {{App\Models\LandUse::find($p->landuseid)->use_en}} {{$p->landuseid}} TZS {{number_format( $p->full,0,'.',',')}} TZS {{number_format( $p->installment,0,'.',',')}} {{$p->created_at}}

Site Visitation


{{count($visits)}} Results found

@foreach($visits as $index => $p) @endforeach
# Location Day Time Charge Amount
{{++$index}} {{$p->location}} {{$p->bookingday}} {{$p->visit_times}} {{$p->charge}} TZS {{number_format($p->amount, 0,'.',',')}}

User Likes


{{count(App\Models\PropertyLike::where('propertyid',$property->id)->get())}} Results found

@foreach(App\Models\PropertyLike::where('propertyid',$property->id)->get() as $index => $p) @endforeach
# Full Name Liked On
{{++$index}} @if(!empty(App\Models\User::find($p->userid)->first_name)){{ App\Models\User::find($p->userid)->first_name }}@endif @if(!empty(App\Models\User::find($p->userid)->last_name)) {{App\Models\User::find($p->userid)->last_name}}@endif {{$p->created_at}}

User Reviews


{{count($reviews)}} Results found

@foreach($reviews as $index => $review) @endforeach
# Full Name Review Rate
{{++$index}} {{App\Models\User::find($review->userid)->first_name}} {{App\Models\User::find($review->userid)->last_name}} {{$review->review}} {{$review->rate}}
@endsection @push('scripts') @endpush