@if ($totalAmountByPaymentMethod->isNotEmpty())
| Payment Method |
Total Amount |
@foreach ($totalAmountByPaymentMethod as $payment)
|
{{ $payment->payment_name ?? 'No payment method available' }}
|
{{ number_format($payment->total_amount, 2) ?? '0.00' }}
|
@endforeach
@else
No payment data available.
@endif
| Description |
Amount |
| Total Sales |
{{ number_format($totalSales, 2) ?? '0.00' }}
|
| Total Refund |
{{ number_format($totalRefund, 2) ?? '0.00' }}
|
| Total Payment |
{{ number_format($totalPayment, 2) ?? '0.00' }}
|