@extends('layouts.app') @section('title', 'Income Report') @section('content')
@foreach($byMethod as $method => $total)

{{ str_replace('_',' ',$method) }}

KES {{ number_format($total) }}

@endforeach
@foreach($payments as $p)@endforeach
TimePatientInvoiceMethodAmount
{{ $p->created_at->format('H:i') }}{{ $p->invoice?->patient?->full_name ?? '' }}{{ $p->invoice?->invoice_number ?? '' }}{{ $p->payment_method }}KES {{ number_format($p->amount) }}
@endsection