@extends('layouts.app') @section('title', $patient->full_name) @section('content')

๐Ÿ‘ค {{ $patient->full_name }}

{{ $patient->phone }} @if($patient->age()) ยท {{ $patient->age() }} {{ __('years') }}@endif
@if($patient->whatsapp_opt_in) ๐Ÿ’ฌ {{ __('Open in WhatsApp') }} ๐Ÿ—‚ {{ __('Message history') }} @endif @can('update', $patient) {{ __('Edit') }} @endcan
@include('patients._tabs') @can('recalls.manage')
@csrf
๐Ÿ”” {{ __('Set next visit') }}
@endcan
@foreach([ [__('Visits'), $patient->total_visits], [__('Last visit'), $patient->last_visit_at?->diffForHumans() ?? 'โ€”'], [__('Source'), __(ucfirst(str_replace('_', ' ', $patient->source)))], [__('Reminders'), $patient->whatsapp_opt_in ? 'โœ“ WhatsApp' : __('Off')], ] as [$label, $value])
{{ $label }}
{{ $value }}
@endforeach
@if($patient->allergies)
โš  {{ __('Allergies') }}: {{ $patient->allergies }}
@endif

{{ __('Visit history') }}

@forelse($appointments as $a) @empty @endforelse
{{ __('Date') }}{{ __('Dentist') }}{{ __('Reason') }}{{ __('Status') }}
{{ $a->starts_at->setTimezone(\App\Support\ClinicTime::timezone())->format('d M Y ยท H:i') }} {{ $a->dentist->name }} {{ $a->reason }} {{ $a->status->label() }}
{{ __('No appointments yet.') }}
{{ $appointments->links() }}

{{ __('Notes') }}

{{ $patient->notes ?: 'โ€”' }}

{{ __('Medical history') }}

{{ $patient->medical_history ?: 'โ€”' }}

@endsection