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

{{ $patient->first_name }} {{ $patient->last_name }} {{ $patient->gender === 'M' ? 'Masculin' : 'Féminin' }}

Retour à la liste
Informations personnelles
{{ $patient->first_name }} {{ $patient->last_name }}

{{ \Carbon\Carbon::parse($patient->date_of_birth)->age }} ans

@if($patient->phone) @endif @if($patient->email) @endif @if($patient->address) @endif
Date de naissance : {{ \Carbon\Carbon::parse($patient->date_of_birth)->format('d/m/Y') }}
Âge : {{ \Carbon\Carbon::parse($patient->date_of_birth)->age }} ans
Sexe : {{ $patient->gender === 'M' ? 'Masculin' : 'Féminin' }}
Téléphone : {{ $patient->phone }}
Email : {{ $patient->email }}
Adresse : {{ $patient->address }}
Inscrit le : {{ $patient->created_at->format('d/m/Y') }}
Statistiques

{{ $totalConsultations }}

Consultations

{{ $totalMedicationSales }}

Achats pharmacie

{{ $consultationsThisYear }}
Cette année
{{ $lastVisit ? $lastVisit->format('d/m/Y') : 'Jamais' }}
Dernière visite
Tickets de consultation récents
Nouveau ticket
@if($recentTickets->count() > 0)
@foreach($recentTickets as $ticket) @endforeach
Date Médecin Type Statut Actions
{{ $ticket->created_at->format('d/m/Y H:i') }} Dr. {{ $ticket->doctor->first_name }} {{ $ticket->doctor->last_name }} {{ ucfirst($ticket->consultation_type ?? 'Consultation') }} {{ ucfirst(str_replace('_', ' ', $ticket->status)) }}
@if($recentTickets->count() >= 10) @endif @else

Aucune consultation enregistrée

Créer le premier ticket
@endif
Achats de médicaments récents
@if($recentMedicationSales->count() > 0)
@foreach($recentMedicationSales as $sale) @endforeach
Date Médicament Quantité Prix total Actions
{{ $sale->created_at->format('d/m/Y H:i') }} {{ $sale->medication->name }}
{{ $sale->medication->dosage }} - {{ $sale->medication->form }}
{{ $sale->quantity }} {{ number_format($sale->total_price, 0, ',', ' ') }} FCFA
@if($recentMedicationSales->count() >= 10) @endif @else

Aucun achat de médicament enregistré

Aller à la pharmacie
@endif
@endsection