@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 Name
Project Plot ID
Block Number
Number of Plots
Area Size
Regitered On
Views
Likes
Region
District
Launch Date
Tags
Rating
Project Description
{!! $property->description_en !!}Installment Initial Expiry Days
Installment Initial Percentage
Installment Complete Expiry Days
Full Payment Initial Expiry Days
Full Initial Percentage
Full Complete Expiry Days
{{count($plots)}} Results found
# | 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}} | @if($p->status==3){{$p->status_description}} | @elseif($p->status==2){{$p->status_description}} | @elseif($p->status==1){{$p->status_description}} | @else{{$p->status_description}} | @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,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}} | @if(PropertyPlotPricing::where('propertyid',$property->id)->where('landuseid',$p->landuse)->count() > 0)View More | @endif
{{count($pricing)}} Results found
# | 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}} |
{{count($visits)}} Results found
# | Location | Day | Time | Charge | Amount |
---|---|---|---|---|---|
{{++$index}} | {{$p->location}} | {{$p->bookingday}} | {{$p->visit_times}} | {{$p->charge}} | TZS {{number_format($p->amount, 0,'.',',')}} |
{{count(App\Models\PropertyLike::where('propertyid',$property->id)->get())}} Results found
# | 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}} |
{{count($reviews)}} Results found
# | 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}} |