{!! html()->label( 'Conjoint '.($conjoint && $conjoint->isTitulaire?'Titulaire':'Non Titulaire'),'nom_conjoint') !!} {!! html()->hidden('id_conjoint', $conjoint?$conjoint->id:'')->attributes(['id' => 'id_conjoint']) !!}
{!! html()->text('nom_conjoint', $allocataire?$allocataire->ConjointNomComplet:"") ->attributes([($mode=="show"?'disabled':''), 'id'=>'nom_conjoint','class' => 'form-control']) !!}
Famille : @if($allocataire_famille_membre) Membre de  @foreach($allocataire_famille_membre as $key=>$id_fam) {{ str_pad($id_fam,'5','0',STR_PAD_LEFT) }} @endforeach @endif @if((!$allocataire->id_famille)) @if(!$allocataire->IdFamilleEnfant) Aucun Dossier Famille (allocataire seul) @if($allocataire->age>=18) Créer un dossier Famille @endif @else {{ $allocataire_famille_membre?"et":""}} Enfant ou à charge de  {{ $allocataire->IdFamilleEnfant}} @endif @else {{ $allocataire->IdPADFamille}} @if($allocataire->isTitulaire) @endif @endif
{!! html()->label( 'Parent1','nom_parent1') !!} {!! html()->hidden('id_parent1', null)->attributes(['id' => 'id_parent1']) !!}
{!! ($allocataire->id_parent1)?str_pad($allocataire->id_parent1, 6, "0", STR_PAD_LEFT):'Aucun' !!}
{!! html()->text('nom_parent1', ($allocataire->id_parent1)?$allocataire->NomCompletParent1:'') ->attributes([($mode=="show"?'disabled':''), 'id'=>'nom_parent1','class' => 'form-control']) !!}
{!! html()->label( 'Parent2','nom_parent2') !!} {!! html()->hidden('id_parent2', null)->attributes(['id' => 'id_parent2']) !!}
{!! ($allocataire->id_parent2)?str_pad($allocataire->id_parent2, 6, "0", STR_PAD_LEFT):'Aucun' !!}
{!! html()->text('nom_parent2', ($allocataire->id_parent2)?$allocataire->NomCompletParent2:'') ->attributes([($mode=="show"?'disabled':''), 'id'=>'nom_parent2','class' => 'form-control']) !!}
@if(isset($allocataire) && ($allocataire->IsTitulaire || $allocataire->IsConjoint))

Enfants du foyer @if($allocataire->IsTitulaire) comme titulaire@endif @if($allocataire->IsConjoint) comme conjoint@endif

@if($mode=="show") @endif @foreach ($famille_enfants as $enfant) @if($mode=="show") @endif @endforeach
Id Nom Prenom Date de naissance Age Sexe Certificat @if($allocataire->IsTitulaire) @endif
{!! $enfant->IdPAD !!} {!! $enfant->NomComplet !!} {!! $enfant->Prenom !!} {!! $enfant->DateNaissance !!} {!! $enfant->Age !!} ans {!! $enfant->Sexe !!} {!! $enfant->Certificat !!}

Membres du foyer @if($allocataire->IsTitulaire) comme titulaire@endif @if($allocataire->IsConjoint) comme conjoint@endif

@if($mode=="show") @endif @foreach ($famille_membres as $membre) @if($mode=="show") @endif @endforeach
Id Nom Prenom Date de naissance Age Sexe Rôle @if($allocataire->IsTitulaire) @endif
{!! $membre->IdPAD !!} {!! $membre->NomComplet !!} {!! $membre->Prenom !!} {!! $membre->DateNaissance !!} {!! $membre->Age !!} ans {!! $membre->Sexe !!} {!! $membre->Role !!}
@else
@if(($allocataire->id_famille)&&($allocataire->age>=18))
Allocataire membre du foyer
Les membres ne sont affichés que pour le titulaire ou le conjoint
@else
Pour ajouter des membres ou enfants il faut lui associer un dossier famille
@endif
@endif