@extends('layouts.admin') @section('heading', 'Reports') @section('subheading', 'Sales, pipeline, balances, and salary — filtered and exportable.') @section('actions')
@endsection @section('content')Orders
{{ $data['total_orders'] }}
Revenue
₹{{ number_format($data['total_revenue'], 0) }}
Advance collected
₹{{ number_format($data['total_advance'], 0) }}
Balance pending
₹{{ number_format($data['total_balance'], 0) }}
| Order | Customer | Date | Total |
|---|---|---|---|
| #{{ $o->id }} | {{ $o->customer->name ?? '—' }} | {{ $o->created_at->format('d M Y') }} | ₹{{ number_format($o->total_amount, 0) }} |
| No orders in this range. | |||
Total outstanding
₹{{ number_format($data['total_outstanding'], 0) }}
Customers owing
{{ $data['customer_count'] }}
| Order | Customer | Balance |
|---|---|---|
| #{{ $o->id }} | {{ $o->customer->name ?? '—' }} | ₹{{ number_format($o->balance_amount, 0) }} |
| No outstanding balances. | ||
Total paid in range
₹{{ number_format($data['total_paid'], 0) }}
| Staff | Date | Notes | Amount |
|---|---|---|---|
| {{ $p->staff->name ?? '—' }} {{ $p->staff->staff_code ?? '' }} | {{ $p->paid_on->format('d M Y') }} | {{ $p->notes ?? '—' }} | ₹{{ number_format($p->amount, 0) }} |
| No payments in this range. | |||