@php use App\Models\{Property,PropertyOwner,Customer,PropertyPlot,User,Order}; $propertyids = Property::where('propertyownerid', Auth::user()->propertyownerid)->pluck('id'); $customerids = Order::whereIn('propertyid', $propertyids)->pluck('userid')->toArray(); $customers = User::whereIn('uid', $customerids)->get(); $orders=Order::whereIn('propertyid', $propertyids)->get(); @endphp
{{Property::where('propertyownerid',Auth::user()->propertyownerid)->count()}} Results Found
# | Name | Status Description | Created On | Action |
---|---|---|---|---|
{{++$index}} | {{$p->name}} | {{$p->status_description}} | {{$p->created_at}} | View More |