@extends('layouts.admin') @section('heading', 'Payments') @section('subheading', 'Every payment collected across all orders.') @section('content') {{-- TOTAL --}}

Total collected

₹{{ number_format($totalCollected, 0) }}

{{-- SEARCH + FILTER --}}
Reset
{{-- PAYMENT TABLE --}}
@forelse($payments as $payment) @empty @endforelse
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) }}
View Edit
@csrf @method('DELETE')
No payments found for the selected filters.
@if($payments->hasPages())
{{ $payments->links() }}
@endif
@endsection