@extends('layouts.app') @section('title', $healthCenter->name) @section('content')

{{ $healthCenter->name }} @if(!$healthCenter->is_active) Inactif @endif

Modifier
Retour à la liste
Informations générales
@if($healthCenter->director_name) @endif @if($healthCenter->capacity) @endif
Nom : {{ $healthCenter->name }}
Type : {{ ucfirst($healthCenter->type) }}
Directeur : {{ $healthCenter->director_name }}
Capacité : {{ $healthCenter->capacity }} lits
Statut : @if($healthCenter->is_active) Actif @else Inactif @endif
Créé le : {{ $healthCenter->created_at->format('d/m/Y') }}
Contact

{{ $healthCenter->address }} @if($healthCenter->city)
{{ $healthCenter->city }} @endif

@if($healthCenter->phone)

{{ $healthCenter->phone }}

@endif @if($healthCenter->email)

{{ $healthCenter->email }}

@endif
Statistiques

{{ $healthCenter->doctors->count() }}

Médecins

{{ $healthCenter->medications->count() }}

Médicaments

{{ $healthCenter->consultationTickets->count() }}
Consultations
{{ $healthCenter->consultationTickets->where('created_at', '>=', now()->startOfMonth())->count() }}
Ce mois
@if($healthCenter->services)
Services disponibles

{{ $healthCenter->services }}

@endif
Équipe médicale {{ $healthCenter->doctors->count() }}
Ajouter médecin
@if($healthCenter->doctors->count() > 0)
@foreach($healthCenter->doctors as $doctor)
Dr. {{ $doctor->first_name }} {{ $doctor->last_name }}

{{ $doctor->specialty }} @if($doctor->is_active) Actif @else Inactif @endif

@if($doctor->phone)

{{ $doctor->phone }}

@endif
@endforeach
@else

Aucun médecin assigné à ce centre

Ajouter le premier médecin
@endif
Consultations récentes
@if($healthCenter->consultationTickets->count() > 0)
@foreach($healthCenter->consultationTickets->take(10) as $ticket) @endforeach
Date Patient Médecin Statut
{{ $ticket->created_at->format('d/m/Y H:i') }} {{ $ticket->patient->first_name }} {{ $ticket->patient->last_name }} Dr. {{ $ticket->doctor->first_name }} {{ $ticket->doctor->last_name }} {{ ucfirst(str_replace('_', ' ', $ticket->status)) }}
@if($healthCenter->consultationTickets->count() > 10) @endif @else

Aucune consultation enregistrée

@endif
@endsection