@extends('mainlayout.layout') @section('title') @endsection @push('css') @endpush @php use App\Models\{Property,PropertyOwner,Order,PropertyPlot}; $propertyids = Property::where('propertyownerid', Auth::user()->propertyownerid)->pluck('id')->toArray(); if(Auth::user()->hasRole('propertyowner')){ $orders = Order::query(); $orders = $orders->whereIn('propertyid', $propertyids)->where('userid', $customer->uid)->get(); } @endphp @section('content')
First Name
Middle Name
Last Name
PhoneNumber
Orders
@role('superadmin')Success Rate
Total Amount
Generated Orders
Initialized Orders
Completed
Exipred Orders
Cancelled Orders
{{count($orders)}} Results found
# | Reference ID | Property | Plot | Amount | Status | Occured On | |
---|---|---|---|---|---|---|---|
{{++$index}} | {{$order->referenceid}} | {{Property::find($order->propertyid)->name}} | {{PropertyPlot::find($order->plotid)->plotnumber}} | TZS {{number_format($order->amount,0,'.',',') }} | {{$order->status_description}} | {{$order->created_at}} | View More |