@if($mode!="create")
{!! html()->text('id',$allocataire->IdPAD)->attributes(['id'=>'id','readonly', 'class' => 'form-control']) !!}
@endif @if($mode!="show")
Statut Dossier
{!! html()->select('statut_dossier',$ben_statuts_dossier,null)->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@else
{!! html()->text('statut_dossier',$allocataire->StatutDossierLibelle) ->attributes(['id'=>'id','readonly', 'class' => (($allocataire->statut_dossier=="ACT")?"form-control bg-success":"form-control bg-danger"), 'style'=>'text-align:center']) !!}
@endif @if($mode!="create")
CPSWF: {{ $allocataire->id_cpswf }}
@endif @if($mode=="show")
C: {{ $allocataire->CreatedAtDay }}
@if($user->hasRole('ADMINISTRATEUR') || $user->can("REV_VISU")) M: {{ $allocataire->UpdatedAtDay }} @else M: {{ $allocataire->UpdatedAtDay }} @endif
@endif
{!! html()->label( 'Nom de naissance','nom_naissance') !!} {!! html()->text('nom_naissance', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']) !!}
{!! html()->label( 'Prenom','prenom') !!} {!! html()->text('prenom', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
@if($mode!="show")
{!! html()->label( 'IdCPSWF','id_cpswf') !!} {!! html()->text('id_cpswf', null)->attributes(['class' => 'form-control numeric']) !!}
@endif
{!! html()->label( "Nom d'usage",'nom') !!} {!! html()->text('nom', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']) !!}
{!! html()->label( 'Sexe','sexe') !!} {!! html()->select('sexe', App\Models\MyApp::SEXE ,null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Situation conjugale','statut_conjugal') !!} {!! html()->select('statut_conjugal',$ben_statuts_conjugal,null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Date de naissance','date_naissance') !!}
{!! html()->text('date_naissance', null) ->placeholder('') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!} @if($mode=="show")
{{ $allocataire->Age }}ans
@endif
{!! html()->label( 'Lieu de naissance','lieunaiss') !!} {!! html()->text('lieunaiss', null) ->placeholder('Lieu de naissance') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Date de décès','date_deces') !!}
{!! html()->text('date_deces', null) ->placeholder('') ->attributes(['id' => 'date_deces',($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Statut','statut') !!} {!! html()->select('statut',$ben_statuts,null) ->placeholder('A définir') ->attributes(['id' => 'statut',($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( "Date d'arrivée sur le territoire",'date_arrivee_wf') !!}
{!! html()->text('date_arrivee_wf', null) ->placeholder('') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@if($mode=="show") @if($allocataire->date_arrivee_wf==$allocataire->date_naissance) {{ "NA" }} @elseif(!$allocataire->date_arrivee_wf) {{ "ND" }} @else {{ "AN" }} @endif @endif
{!! html()->label( "Date de départ du territoire",'date_depart_wf') !!}
{!! html()->text('date_depart_wf', null)->placeholder('')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@if(($mode=="show")&&($allocataire->date_depart_wf)) {{ $allocataire->getDureeAbsence(false) }} @endif
@if($mode!='create')
@if($allocataire->age<=21)
{!! html()->label( 'Certificat (modifiable dans la fiche enfant)','certificat_enfant') !!}
{!! html()->select('certificat_enfant',$liste_certificats,null) ->placeholder('A définir') ->attributes(['disabled','class' => 'form-control']) !!}
@endif
@endif
{!! html()->label('Observations','obs',) !!} {!! html()->textarea('obs', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'3']) !!}
@if($user->hasRole("ADMINISTRATEUR")||$user->hasRole("ADMINISTRATEUR FONCTIONNEL"))
{!! html()->label("N'est pas doublon avec",'nodoublon',) !!} {!! html()->textarea('nodoublon', null)->placeholder('XXXX,YYYY,...')->attributes([($mode=="show"?'disabled':''), 'title'=>'Liste des allocataires à ne pas considérés comme doublon. Séparer par des virgules.','class' => 'form-control', 'rows'=>'3']) !!}
@endif
{!! html()->checkbox('controle', null) ->attributes([($mode=="show"?'disabled':''),'id' => 'controle', 'class' => 'form-check-input']) !!}