@extends('layouts.app') @section('title', 'View Bills') @section('content')
{{-- Search row: patient search dominates and stretches; date picker at fixed comfortable width so it doesn't look orphaned (Issue #15 — earlier the date column was the only sized element making the whole row feel unbalanced). --}}
@if(request()->hasAny(['search','date'])) Clear @endif

Today's Collections

KES {{ number_format($todayTotal) }}

@forelse($invoices as $inv) visit_id) data-row-href="{{ route('billing.invoice', $inv->visit_id) }}" @endif> @empty@endforelse
Invoice #PatientDateModeTotalPaidBalanceStatus
{{ $inv->invoice_number }}{{ $inv->patient->full_name ?? '' }}{{ $inv->created_at->format('d M') }}{{ $inv->payment_mode }}{{ number_format($inv->total_amount) }}{{ number_format($inv->amount_paid) }}{{ number_format($inv->balance) }}{{ ucfirst($inv->status) }}
No invoices.
{{ $invoices->withQueryString()->links() }}
@endsection