@extends('layout.app') @section('content')
{{--
--}} {{-- --}} {{--
--}}
Noms

{{ $data->name }}

Age

{{ $data->age ?? $data->calculateAgeFromBirth() }}

Genre

{{ $data->sexAbrevia() }}

Groupe

{{ $data->group->name }}

Pathologie

{{ $data->pathology ?? '—' }}

Profession

{{ $data->job ?? '—' }}

Poids

{{ $data->weight ? $data->weight . ' Kg' : '—' }}

Taille

{{ $data->size ? $data->size . ' cm' : '—' }}

Téléphone

{{ $data->tel ?? '—' }}

Adresse

{!! $data->address ?? '—' !!}

Antécédent

{{ $data->antecedent ?? '—' }}

Assuré

{{ $data->assured ? 'Oui' : 'Non' }} @if($data->assured)
Sécurité Sociale {{$data->assured_social_percent}}%
Complémentaire {{$data->assured_completed_percent}}%
@endif


@if($data->isStay())
En hospitalisation depuis le
{{ $data->lastIntervention()->datetimefrom->translatedFormat('D d F Y') }}
Lieu
{{ $data->place() }}
Maladie ou Gêne actuel
{{ $data->lastIntervention()->trouble->name }}
Etat actuel
@php // Map status name to color class (same mapping as in interventions list) function getStatusColorClassForPatient($name) { $name = strtolower($name); if (str_contains($name, 'guéri')) return 'color-guéri'; if (str_contains($name, 'amélioration')) return 'color-amélioration'; if (str_contains($name, 'stable')) return 'color-stable'; if (str_contains($name, 'convalescence')) return 'color-convalescence'; if (str_contains($name, 'critique')) return 'color-critique'; if (str_contains($name, 'coma')) return 'color-coma'; if (str_contains($name, 'décédé')) return 'color-décédé'; if (str_contains($name, 'transféré')) return 'color-transféré'; return 'color-all'; } $lastStatusName = $data->lastIntervention()->status->name; $lastStatusClass = getStatusColorClassForPatient($lastStatusName); @endphp {{ $lastStatusName }}
@if($data->lastIntervention() && $data->lastIntervention()->interventionanalyses->count() > 0) @foreach($data->lastIntervention()->interventionanalyses as $analysis)
{{ $analysis->analysis->name }} {{ $analysis->result }}
{{ $analysis->result }}% Complete
@endforeach @else

Aucune analyse récente

@endif
{{--
--}} {{--

General Report

--}} {{--
--}} {{--
Heart Beat 85
--}} {{--
--}} {{--
40% Complete (success)
--}} {{--
--}} {{--
Blood Pressure93
--}} {{--
--}} {{--
50% Complete
--}} {{--
--}} {{--
Sugar55
--}} {{--
--}} {{--
50% Complete
--}} {{--
--}} {{--
Haemoglobin78%
--}} {{--
--}} {{--
50% Complete
--}} {{--
--}} {{--
--}}
@endif
@if($data->teleconsultations AND !auth()->user()->subBasic())
Dernières Téléconsultations
{{-- --}} @foreach($data->teleconsultations as $teleconsultation) {{-- --}} @endforeach
Date Professionnel en charge Résumé Docteur IA Diagnostic Ordonnance Charges ({!! htmlentities(auth()->user()->company->currency_symbol, ENT_NOQUOTES, 'UTF-8') !!})
{{ $teleconsultation->created_at->translatedFormat('D d M Y') }} {{ $teleconsultation->user->name }} @if($teleconsultation->ai_description) Voir @else — @endif @if($teleconsultation->description) Voir @else — @endif 14$ @if($teleconsultation->prescription) Voir @else — @endif
@else
Dernières Consultations
{{-- --}} @foreach($data->consultations as $consultation) {{-- --}} @endforeach
Date Professionnel en charge Diagnostic Ordonnance Charges ({!! htmlentities(auth()->user()->company->currency_symbol, ENT_NOQUOTES, 'UTF-8') !!})
{{ $consultation->created_at->translatedFormat('D d M Y') }} {{ $consultation->user->name }} @if($consultation->description) Voir @else — @endif 14$ @if($consultation->prescription) Voir @else — @endif
@endif

Dernières Hospitalisations
{{-- --}} @foreach($data->interventions as $intervention) {{-- --}} @endforeach
Date Professionnel en charge Diagnostic Fichiers Prestations ProduitsCharges ({!! htmlentities(auth()->user()->company->currency_symbol, ENT_NOQUOTES, 'UTF-8') !!})
{{ $intervention->datetimefrom->translatedFormat('D d M Y') }} @if($intervention->datetimeto) à {{ $intervention->datetimeto->translatedFormat('D d F Y') }} @endif {{ $intervention->user->name }} @if($intervention->description) Voir @else — @endif @if($intervention->files) Voir @else — @endif @foreach($intervention->cares as $care)
  • {{ $care->name }}
  • @endforeach
    @if($intervention->sale) @foreach($intervention->sale->commands as $command)
  • {{ $command->product->name }} ({{ $command->qte }})
  • @endforeach @endif
    14$

    @endsection @push('scripts') @endpush