@php use App\Support\Fg; $nom = trim(($dossier->prenoms ?? '').' '.mb_strtoupper($dossier->nom ?? '')); // Pastilles maison (le composant status-badge ne mappe pas ces statuts). $pillClasses = [ 'green' => 'bg-cmu-green-50 text-cmu-green-800 border-cmu-green-200', 'red' => 'bg-cmu-red-100 text-cmu-red-700 border-cmu-red-600/30', 'gold' => 'bg-cmu-gold-50 text-cmu-gold-700 border-cmu-gold-200', 'gray' => 'bg-gray-100 text-cmu-ink border-gray-200', ]; $cotisationTones = ['SUCCES' => 'green', 'ECHEC' => 'red', 'EN_ATTENTE' => 'gold']; $cotisationLabels = ['SUCCES' => 'Payée', 'ECHEC' => 'Échec', 'EN_ATTENTE' => 'En attente']; $carteLabels = ['ACTIVE' => 'Active', 'EXPIREE' => 'Expirée', 'REMPLACEE' => 'Remplacée', 'REVOQUEE' => 'Révoquée']; @endphp {{-- Salutation --}}

Mon espace

Bonjour {{ $dossier->prenoms }}

{{-- Identité assuré --}}
{{ mb_substr($dossier->prenoms ?? 'A', 0, 1) }}{{ mb_substr($dossier->nom ?? '', 0, 1) }}
{{ $nom }}
{{ Fg::ius((string) $dossier->ius) }}
Régime {{ $dossier->regime }}
{{-- Ma couverture --}}

Ma couverture

@php $estRam = $couverture->regime === 'RAM'; @endphp
@if($couverture->eligible && $estRam) 100% pris en charge @elseif($couverture->eligible) RGB taux par acte @else couverture @endif
@if($couverture->eligible)

Droits ouverts

@if($estRam) Vous êtes couvert à 100 % sur les actes de la nomenclature AMU (régime RAM). @else Votre prise en charge s'applique acte par acte selon la nomenclature AMU (régime RGB) ; le ticket modérateur dépend de chaque acte. @endif

@else

Droits non ouverts actuellement

{{ $couverture->motif }}

@endif
@if(! empty($couverture->alertes))
@foreach($couverture->alertes as $alerte)
{{ $alerte }}
@endforeach
@endif
{{-- Ma carte d'assuré --}}

Ma carte d'assuré

@if($carte)
{!! $qrSvg !!}
N° de série
{{ $carte->numero_serie }}
Validité
{{ Fg::dateFr($carte->date_debut_validite) }} → {{ Fg::dateFr($carte->date_fin_validite) }}
@php $ct = $carte->statut === 'ACTIVE' ? 'green' : 'gray'; @endphp {{ $carteLabels[$carte->statut] ?? $carte->statut }}
@else

Aucune carte active. Rapprochez-vous d'un point d'enrôlement AMU.

@endif
{{-- Mes cotisations (RGB) ou réévaluation (RAM) --}} @if($dossier->regime === 'RGB')

Mes cotisations

Profil
{{ $dossier->profilCotisant?->libelle ?? '—' }}
@if($dossier->profilCotisant)
{{ Fg::gnf($dossier->profilCotisant->cotisation_mois) }} / mois
@endif
Prochaine échéance
{{ Fg::periodeMois($cotisationStats['prochaine_periode']) }}
{{ $cotisationStats['payees'] }}/{{ $cotisationStats['total'] }} mois réglés (récent)
@if($cotisations->isEmpty())

Aucune cotisation enregistrée pour le moment.

@else
@foreach($cotisations as $cot)
{{ Fg::periodeMois($cot->periode_mois) }}
{{ Fg::gnf($cot->montant_gnf) }}
@php $t = $cotisationTones[$cot->statut] ?? 'gray'; @endphp {{ $cotisationLabels[$cot->statut] ?? $cot->statut }}
@endforeach
@endif
@elseif($dossier->regime === 'RAM')

Mon régime RAM

Vous bénéficiez du Régime d'Assistance Médicale (prise en charge à 100%), sans cotisation mensuelle.

@if($dossier->date_prochaine_reevaluation)
Prochaine réévaluation
{{ Fg::dateFr($dossier->date_prochaine_reevaluation) }}
@endif
@endif {{-- Mes ayants droit --}}

Mes ayants droit

@if($dossier->ayantsDroit->isEmpty())

Aucun ayant droit rattaché.

@else
@foreach($dossier->ayantsDroit as $ad)
{{ $ad->prenoms }} {{ mb_strtoupper($ad->nom) }}
{{ mb_strtolower($ad->lien_parente) }} · {{ $ad->age }} ans
@if($ad->age >= 17) Bientôt 18 ans @endif
@endforeach
@endif
{{-- Mes soins (prises en charge) --}}

Mes soins récents

@if($pecs->isEmpty())

Aucune prise en charge enregistrée.

@else
@foreach($pecs as $pec)
{{ $pec->etablissement?->nom_officiel ?? 'Établissement' }}
{{ Fg::dateFr($pec->date_pec) }}
{{ Fg::gnf($pec->part_cmu_gnf) }}
part AMU
@endforeach
@endif
{{-- Mes coordonnées --}}

Mes coordonnées

Téléphone(s)
@forelse($dossier->telephones as $tel)
{{ $tel->numero }} · {{ $tel->operateur }}@if($tel->est_principal) · principal @endif
@empty
@endforelse
Résidence
{{ collect([$dossier->quartier_residence, $dossier->prefecture_residence, $dossier->region_residence])->filter()->implode(' · ') ?: '—' }}

Pour modifier vos informations, rapprochez-vous d'un point d'enrôlement AMU.