@extends('layouts.branch') @section('title', 'OPD Registration Report') @section('header', 'OPD Registration Report') @section('content')
@include('partials.branch._breadcrumbs', [ 'breadcrumbs' => [ ['name' => 'Reports', 'url' => route('branch.reports.index')], ['name' => 'OPD Registration Report', 'url' => route('branch.reports.opd-registrations')] ] ])

Total Traffic

{{ number_format($totalCount) }}

Aggregated visit registrations

Active Files

{{ number_format($registrations->where('status', 'active')->count()) }}

Currently in-progress consultations

Clinical Efficiency

@php $completed = $registrations->where('status', 'completed')->count(); $rate = $totalCount > 0 ? ($completed / $totalCount) * 100 : 0; @endphp

{{ number_format($rate, 1) }}%

Visit completion performance

Total OPD Registrations: {{ number_format($totalCount) }}

@forelse($registrations as $reg) @empty @endforelse
Visit Date UHID OPD No. Patient Department Doctor Address City/State Phone Status
{{ $reg->visit_date->format('d M, y') }} {{ $reg->uhid }} {{ $reg->opd_number }}

{{ $reg->full_name }}

{{ $reg->charge?->department->name ?? 'N/A' }} {{ $reg->doctor->name }} {{ $reg->address ?? '-' }} {{ $reg->city ?? '-' }} / {{ $reg->state ?? '-' }} {{ $reg->mobile_number }} {{ $reg->status }}

No records found for the selected range

@if($registrations->hasPages())
{{ $registrations->links() }}
@endif
@endsection