@extends('layouts.adminlte') @section('content')
Revenue operations

Billing and payments

Create visit invoices and record Kenyan Shilling payments.

KES
@if (session('success'))
{{ session('success') }}
@endif
Collected today
KES {{ number_format((float) $financeSummary['collectedToday'], 2) }}
Refunded today
KES {{ number_format((float) $financeSummary['refundedToday'], 2) }}
Outstanding balances
KES {{ number_format((float) $financeSummary['outstanding'], 2) }}

Cashier session

Open a shift before recording cash payments and reconcile it at closing.

@if($cashierSession){{ $cashierSession->session_number }} · Open@elseNo open session@endif
@if($cashierSession)
@csrf
@else
@csrf
@endif

M-Pesa STK Push

Send a Daraja payment prompt to the patient's phone. The invoice is settled only after Safaricom confirms the callback.

@csrf

Create invoice

@csrf
@foreach($charges as $charge)
@endforeach

Invoices and balances

@forelse($invoices as $invoice)@empty@endforelse
InvoicePatientVisitTotalPaidBalanceStatusCashier actions
{{ $invoice->invoice_number }}{{ $invoice->patient->first_name }} {{ $invoice->patient->last_name }}{{ $invoice->patientVisit?->visit_number ?: 'General' }}KES {{ number_format((float) $invoice->subtotal, 2) }}KES {{ number_format((float) $invoice->amount_paid, 2) }}KES {{ number_format((float) $invoice->balance, 2) }}{{ ucfirst($invoice->status) }}
@if((float) $invoice->balance > 0)
@csrf
@endif @if((float) $invoice->amount_paid - (float) $invoice->refunds->sum('amount') > 0)
@csrf
@endif
No invoices created yet.
@endsection