@extends('admin.layouts.master') @section('title') Home @endsection @section('css') @endsection @section('content')

Total Users

{{get_count(model: 'user')->where('type', 'customer')->count()}}

Total Subscription

{{get_count('Coupon')->whereNotNull('customer_id')->count()}}

Total Orders

{{get_count('Order')->sum('total')}}

Total Order Success

${{get_count('Order')->where('status', 'completed')->sum('total')}}

Total Order pending

${{get_count('Order')->where('status', 'pending')->sum('total')}}


count Order Success

{{get_count('Order')->where('status', 'completed')->count()}}

count Order processing

{{get_count('Order')->where('status', 'processing')->count()}}

count Order cancelled

{{get_count('Order')->where('status', 'cancelled')->count()}}

count Order refunded

{{get_count('Order')->where('status', 'refunded')->count()}}

Total Order pending

{{get_count('Order')->where('status', 'pending')->count()}}


@foreach (get_count('User')->where('type', 'customer')->orderByDesc('id')->get() as $row) @endforeach
Users Registered On Status
{{$row->name()}}
{{$row->email}}
{{$row->created_at->format('Y-m-d')}} {{ $row->is_active == 1 ? 'Active' : 'NoActive' }}
@foreach (get_count('Order')->where('status', 'completed')->orderByDesc('id')->take('10')->get() as $row) @endforeach
User Order Id Total Price View Order
{{$row->customer->name()}}
{{$row->customer->email}}
{{ $row->order_number }} {{$row->total}} {!!$row->getStatusColor()!!}
Best Selling Products
@foreach (get_category_products_lastes() as $row)
{{$row->name()}}
Agent ID: {{$row->SKU}}
${{$row->price}}
@endforeach


@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@foreach(get_count('Order')->orderByDesc('id')->take(50)->get() as $row) @endforeach
order number order type customer Status Create Order total Action
{{ $row->order_number }} {!! $row->getOrderTypeColor() !!} {{ $row->customer_id ? $row->customer->name() : 'no customer' }} {!! $row->getStatusColor() !!} {{$row->created_at->format('Y-m-d')}} {{$row->total}}
@endsection @section('js') @endsection