@extends('layouts.app') @section('title', 'Completed ANC Visits') @section('content') @include('partials._encounter-styles') {{-- Scoped table-header restyle + simplifications (May 14 2026): • Stats cards strip removed — the table itself + the date-range filter cover the same information without the visual weight. • Section-head "1 Completed Visits — 10 visit(s)" row removed — the page title at the top already labels the content, and the pagination "Showing X of Y" line confirms the count. The numbered prefix only made sense when there were multiple sections on the page. • Table thead made grey (was CR-purple via the shared enc-table partial); scoped to .anc-completed-page so no other page that uses enc-table is affected. --}}
Lifetime Visits
| Date | Patient | Age / Sex | Phone | Bill Total | Payer | Next Appointment | Actions |
|---|---|---|---|---|---|---|---|
| {{ $v->check_out_at?->format('d M Y') ?? $v->check_in_at?->format('d M Y') ?? '—' }} |
{{ $v->patient->full_name ?? '—' }} |
{{ $v->patient->age ?? '' }} / {{ ucfirst(substr($v->patient->gender ?? '', 0, 1)) }} | {{ $v->patient->phone ?? '—' }} |
@if($v->invoice)
KES {{ number_format($v->invoice?->total_amount ?? 0) }}
@if(($v->invoice?->balance ?? 0) > 0) Bal: {{ number_format($v->invoice?->balance) }}@endif @else - @endif |
{{ $v->payer_label }} |
@if($nextAppt)
{{-- Highlight if the next appointment is in
the past — the patient is overdue and
reception should follow up. --}}
@php $isOverdue = $nextAppt < \Carbon\Carbon::today(); @endphp
{{ $nextAppt->format('d M Y') }}
@if($isOverdue) Overdue@endif @else — @endif |
Profile |
|
No completed ANC visits match your filters. @if(request()->hasAny(['search','date_from','date_to'])) Clear filters → @endif |
|||||||