@extends('layouts.app') @section('title', __('clinic.dashboard')) @section('heading', __('clinic.dashboard')) @section('subheading') {{ __('clinic.performance_overview') }} · {{ now()->format('l, Y-m-d') }} @endsection @section('content')
{{ __('clinic.total_patients') }}
{{ number_format($totalPatients) }}

{{ $newPatientsToday }} {{ __('clinic.new_patients_today') }}

{{ __('clinic.visits_today') }}
{{ number_format($visitsToday) }}

{{ $waitingPatients }} {{ __('clinic.waiting_patients') }}

{{ __('clinic.revenue_today') }}
{{ number_format($revenueToday, 2) }} $

{{ __('clinic.active_now') }}

{{ __('clinic.unpaid_invoices') }}
{{ number_format($unpaidInvoices) }}

{{ __('clinic.action_required') ?? 'بحاجة للمتابعة' }}

👥 {{ __('clinic.latest_patients') }}

{{ __('clinic.view_all') }} →
@forelse($latestPatients as $p) @empty @endforelse
{{ __('clinic.patient_code') }} {{ __('clinic.full_name') }} {{ __('clinic.phone') }}
{{ $p->patient_code }} {{ $p->full_name }} {{ $p->phone }}
{{ __('clinic.no_records') }}

🩺 {{ __('clinic.latest_visits') }}

{{ __('clinic.view_all') }} →
@forelse($latestVisits as $v) @empty @endforelse
{{ __('clinic.patients') }} {{ __('clinic.chief_complaint') }} {{ __('clinic.status') }}
{{ $v->patient->full_name }} {{ $v->chief_complaint }} {{ __('clinic.' . $v->status) }}
{{ __('clinic.no_records') }}
@endsection