@extends('layouts.vendor') @section('title', 'Vendor Dashboard') @section('page-title', 'Dashboard') @section('content') {{-- Stats --}}

Total Products

{{ $stats['total_products'] }}

{{ $stats['active_products'] }} active

Total Orders

{{ $stats['total_orders'] }}

{{ $stats['pending_orders'] }} pending

Total Earnings

${{ number_format($stats['total_earnings'], 2) }}

This month: ${{ number_format($stats['monthly_earnings'], 2) }}

Available Balance

${{ number_format($stats['balance'], 2) }}

View Earnings →
{{-- Recent Orders --}}

Recent Orders

View All
@foreach($recentOrders as $item) @endforeach
Order Product Amount Status
#{{ $item->order->order_number }} {{ $item->product->name }} ${{ number_format($item->vendor_earnings, 2) }} {{ ucfirst($item->status) }}
{{-- Top Products --}}

Top Products

View All
@foreach($topProducts as $product)

{{ $product->name }}

{{ $product->order_items_count }} orders

${{ number_format($product->price, 2) }}

@endforeach
@endsection