@if($mode!="create")
{!! html()->label( 'N° ','id') !!} {!! html()->text('id', isset($enfant)?str_pad($enfant->id, 6, "0", STR_PAD_LEFT):'') ->attributes(['disabled', 'class' => 'form-control text-uppercase']) !!}
@endif
{!! html()->label( 'NOM','nom') !!} {!! html()->text('nom', null) ->placeholder('Nom') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control text-uppercase']) !!}
{!! html()->label( 'PRENOM','prenom') !!} {!! html()->text('prenom', null) ->placeholder('Prénom') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Sexe','sexe') !!} {!! html()->select('sexe', ['M'=>'Masculin','F' => 'Feminin'],null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Date de naissance','datenais') !!}
{!! html()->text('datenais', null) ->placeholder('Date de naissance') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Certificat','certif') !!} {!! html()->select('certif', ['0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '9' => '9'],null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Verrou','verrou') !!}
{!! html()->checkbox('verrou', null,1)->attributes([($mode=="show"?'disabled':''),'class' => '']) !!}
Responsable parental
{!! html()->label( 'Responsable','parents1') !!} {!! html()->hidden('parents1', (($beneficiaire)?$beneficiaire->id:null))->attributes(['id' => 'parents1']) !!}
{!! isset($enfant)?$enfant->parents1:'' !!}
{!! html()->text('responsable',((isset($beneficiaire)&&$beneficiaire)?$beneficiaire->nom_complet:(isset($enfant)?$enfant->NomParent1:''))) ->placeholder("Responsable") ->attributes([($mode=="show"?'disabled':''), 'id'=>'responsable','class' => 'form-control', (isset($beneficiaire)&&$beneficiaire)?'readonly':'']) !!}
Conjoint
{!! html()->label( 'Réf.','parents2') !!} {!! html()->hidden('parents2', null)->attributes(['id' => 'parents2']) !!}
{!! isset($enfant)?$enfant->parents2:'' !!}
{!! html()->text('conjoint',isset($enfant)?$enfant->NomParent2:'') ->placeholder("Conjoint") ->attributes([($mode=="show"?'disabled':''), 'id'=>'conjoint','class' => 'form-control']) !!}
{!! html()->label('Observations','obs',) !!} {!! html()->textarea('obs', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'3']) !!}
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("ENF_MAJ")) @if($beneficiaire) Modifier @else Modifier @endif @if($enfant->canDelete) {{ html()->form('DELETE', url('/enfants/'. $enfant->id."?benef_type=".$benef_type))->open() }} {{ html()->form()->close() }} @endif @endif @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif @if(!$beneficiaire) Retour @endif