@extends('layouts.admin-master') @section('title', 'Loyal Order List') @section('css') @endsection @section('content')

Total Consumer ({{ $orders->total() }})

Select Your Region
City
Area

Total Record: ({{$orders->total()}})

@if(count($orders)>0) @foreach($orders as $index => $order) @endforeach @else @endif
# Name Amount Order Billing Phone Shipping Phone State City Area Address
{{(($orders->perPage() * $orders->currentPage() - $orders->perPage()) + ($index+1) )}} {{ $order->customer->name }} {{config('siteSetting.currency_symble')}}{{$order->amount}} @if(!empty($order->billing_phone)) {{$order->billing_phone}} @else {{ $order->customer->mobile }} @endif {{$order->shipping_phone}} @if(\App\Models\State::where('id', $order->billing_region)->first() != null) {{\App\Models\State::where('id', $order->billing_region)->first()->name}} @endif @if(\App\Models\City::where('id', $order->billing_city)->first() != null) {{\App\Models\City::where('id', $order->billing_city)->first()->name}} @endif @if(\App\Models\Area::where('id', $order->billing_area)->first() != null) {{\App\Models\Area::where('id', $order->billing_area)->first()->name}} @endif {{$order->billing_address}}

No Consumer found.

{{$orders->appends(request()->query())->links()}}
Showing {{ $orders->firstItem() }} to {{ $orders->lastItem() }} of total {{$orders->total()}} entries ({{$orders->lastPage()}} Pages)
@endsection @section('js') @endsection