@extends('layouts.admin') @section('heading', 'Payments') @section('subheading', 'Every payment collected across all orders.') @section('content') {{-- TOTAL --}}
Total collected
₹{{ number_format($totalCollected, 0) }}
| Date | Order | Customer | Mode | Payment type | Collected by | Amount | Actions |
|---|---|---|---|---|---|---|---|
| {{ $payment->payment_date ? \Carbon\Carbon::parse($payment->payment_date)->format('d M Y') : $payment->created_at->format('d M Y') }} | #{{ $payment->order_id }} | {{ optional(optional($payment->order)->customer)->name ?? '—' }} | {{ $payment->mode ?? '—' }} | {{ ucfirst($payment->payment_type ?? '—') }} | {{ optional($payment->collector)->name ?? '—' }} | ₹{{ number_format($payment->amount, 0) }} | |
| No payments found for the selected filters. | |||||||