@extends('merchant.layout') @section('title','Payments') @section('content')

Payments & Settlements

{{-- SUMMARY CARDS --}}
Total Revenue
LKR {{ number_format($summary['total'],2) }}
Online Payments
LKR {{ number_format($summary['online'],2) }}
COD Amount
LKR {{ number_format($summary['cod'],2) }}
Pending Settlements
LKR {{ number_format($summary['pending'],2) }}
{{-- FILTERS --}}
{{-- PAYMENTS TABLE --}}
@forelse($payments as $pay) @empty @endforelse
Order No Customer Payment Type Status Amount Date Invoice
#{{ $pay->order_no }} {{ $pay->customer_name }} {{ strtoupper($pay->payment_type) }} {{ ucfirst($pay->status) }} LKR {{ number_format((float)$pay->amount,2) }} {{ $pay->created_at->format('d M Y') }}
No payments found
{{ $payments->links() }}
@endsection