Bills Report

Generated on: {{ date('F d, Y H:i:s') }}

@if(isset($filters['from_date']) || isset($filters['to_date']))

Period: {{ $filters['from_date'] ?? 'Start' }} to {{ $filters['to_date'] ?? 'Now' }}

@endif
@php $total = 0; @endphp @foreach($bills as $bill) @php $total += $bill->amount; @endphp @endforeach
Bill ID Case ID Patient Name Amount Date
{{ $bill->id }} {{ $bill->case_id }} {{ $bill->case->patient->name ?? 'N/A' }} ${{ number_format($bill->amount, 2) }} {{ $bill->created_at->format('Y-m-d') }}
Total: ${{ number_format($total, 2) }}