@extends('layouts.app') @section('title', 'Reports') @section('content')
| Date | Total |
|---|---|
| {{ $d->date }} | {{ number_format($d->total,2) }} |
| Product | Qty Sold | Revenue |
|---|---|---|
| {{ $p->name }} | {{ $p->qty_sold }} | {{ number_format($p->revenue,2) }} |
| Branch | Orders | Total |
|---|---|---|
| {{ $b->name }} | {{ $b->order_count }} | {{ number_format($b->total,2) }} |
| Method | Payments | Total |
|---|---|---|
| {{ \App\Models\Payment::methodLabels()[$p->method] ?? ucfirst($p->method) }} | {{ $p->payment_count }} | {{ number_format($p->total,2) }} |
| Channel | Orders | Gross Sales | Platform Commission | Net |
|---|---|---|---|---|
| {{ $label }} | {{ $row['order_count'] }} | {{ number_format($row['gross'],2) }} | {{ $row['commission'] > 0 ? '-'.number_format($row['commission'],2) : '-' }} | {{ number_format($row['net'],2) }} |