@extends('layouts.app') @section('title', 'Patient Records') @section('actions') New Patient @endsection @section('content') {{-- ---------------- Daily fee summary ---------------- --}}
Patients ({{ \Illuminate\Support\Carbon::parse($summaryDate)->format('d M Y') }})

{{ $feeSummary->patients }}

Total Patient Fee

{{ number_format($feeSummary->total_fee, 2) }}

Total Received Fee

{{ number_format($feeSummary->total_received, 2) }}

Total Remaining Fee

{{ number_format($feeSummary->total_remaining, 2) }}

Total Discount Fee

{{ number_format($feeSummary->total_discount, 2) }}

@foreach($cities as $c)
@foreach($areas as $a)
Reset
@forelse($patients as $patient) @empty @endforelse
Serial No.NamePhoneCityAreaFeeReceivedRemainingDiscount
{{ $patient->serial_number }} {{ $patient->name }} {{ $patient->phone ?? '—' }} {{ $patient->city ?? '—' }} {{ $patient->area ?? '—' }} {{ number_format($patient->patient_fee, 0) }} {{ number_format($patient->received_fee, 0) }} {{ number_format($patient->remaining_fee, 0) }} {{ number_format($patient->discount_fee, 0) }}
No patients found.
{{ $patients->links() }}
@endsection