@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) }}
| Order | Product | Amount | Status |
|---|---|---|---|
| #{{ $item->order->order_number }} | {{ $item->product->name }} | ${{ number_format($item->vendor_earnings, 2) }} | {{ ucfirst($item->status) }} |
{{ $product->name }}
{{ $product->order_items_count }} orders
${{ number_format($product->price, 2) }}