@extends('layouts.app') @section('content')
| Supplier | Orders | Items | Revenue |
|---|---|---|---|
| {{ $supplier->supplier_name }} | {{ number_format($supplier->order_count) }} | {{ number_format($supplier->item_count) }} | ${{ number_format($supplier->total_revenue, 2) }} |
| Status | Count | Percentage |
|---|---|---|
| {{ $status->status_name ?? 'Unknown' }} | {{ number_format($status->order_count) }} | {{ $totalStatusOrders > 0 ? round(($status->order_count / $totalStatusOrders) * 100, 1) : 0 }}% |
| Part # | Name | Qty Sold | Revenue |
|---|---|---|---|
| {{ $product->part_num }} | {{ Str::limit($product->name, 30) }} | {{ number_format($product->total_quantity) }} | ${{ number_format($product->total_revenue, 2) }} |
| Customer | Orders | Total Spent | |
|---|---|---|---|
| {{ $customer->customer_name }} | {{ Str::limit($customer->customer_email, 25) }} | {{ number_format($customer->order_count) }} | ${{ number_format($customer->total_spent, 2) }} |
| City | State | Orders | Customers |
|---|---|---|---|
| {{ $location->city }} | {{ $location->state }} | {{ number_format($location->order_count) }} | {{ number_format($location->customer_count) }} |