@extends('layouts.app') @section('content')
Total Earnings
{{----}}

₱{{number_format($total_earnings,2)}}

{{-- --}}
Total Orders
{{----}}

{{number_format($total_orders)}}

{{-- --}}
Customers
{{----}}

{{number_format($total_customers,0)}}

{{-- --}}
Total Dealer Income

₱{{number_format($total_dealer_income,0)}}

Pending Encashment

₱{{number_format($pending_encashments,2)}}

Completed Encashments

₱{{number_format($completed_encashments,2)}}

Revenue
FILTER
Revenue

₱{{number_format($total_earnings,2)}}

Sales

₱{{number_format($total_sales,2)}}

Total Supplier Price Vs. Total Sales
Total Sales
Total Supplier Price
Top sale
{{-- --}}
    @foreach($top_sales_query as $product)
  • {{number_format($product->orders,0)}} Sales
  • @endforeach
Recent orders
  • Product
  • Customer
  • Order Number
  • Amount
  • Quantity
  • Total
  • Status
    @php $references = []; $duplicate_references = []; foreach ($recent_orders_query as $item) { if (in_array($item->reference, $references)) { $duplicate_references[] = $item->reference; } else { $references[] = $item->reference; } } @endphp @foreach($recent_orders_query as $ordered_item)
  • {{ $ordered_item->customer }}
    {{ $ordered_item->reference }}
    ₱{{ number_format($ordered_item->total_price, 2) }}
    {{ $ordered_item->product_quantity }}
    ₱{{ number_format($ordered_item->total_price*$ordered_item->product_quantity, 2) }}
    status == "PROCESSING" ? 'primary' : ( $ordered_item->status == "OUT FOR DELIVERY" ? 'secondary' : ( $ordered_item->status == "DELIVERED" ? 'success' : 'danger'))) }}"> {{ $ordered_item->status }}
  • @endforeach
@if($recent_orders_query->count()>0)
Showing {{ $recent_orders_query->count() }} entries of {{$recent_orders_query->total()}}
    @if ($recent_orders_query->onFirstPage())
  • @else
  • @endif @foreach ($recent_orders_query->getUrlRange(1, $recent_orders_query->lastPage()) as $page => $url)
  • {{ $page }}
  • @endforeach @if ($recent_orders_query->hasMorePages())
  • @else
  • @endif
@endif
@csrf @honeypot
@endsection @section('page_script') @parent @endsection