{!! html()->label('Type de visite','type_visite') !!} {!! html()->select('type_visite',App\Models\MyApp::TYPES_VISITES,null)->placeholder('Non défini') ->attributes([($mode!="create"?'readonly':''),'class' => 'form-control']) !!}
{!! html()->label( 'Statut','statut') !!} {!! html()->select('statut',["ENC"=>"En-cours de saisie","VAL"=>"Validé"],($mode=="create")?'ENC':null) ->placeholder('A définir') ->attributes(['id' => 'groupe',($mode=="show")?'disabled':'','class' => 'form-control']) !!}
{!! html()->label( 'Observations','observations') !!} {!! html()->textarea('observations', null) ->placeholder('') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
@if($mode!="create")
{!! html()->label( 'Score','score') !!} {!! html()->text('score',null)->attributes(['disabled','class' => 'form-control','style'=>'text-align:center']) !!}
{!! html()->label( 'Gestionnaire','id_user') !!} {!! html()->text('id_user',($mode=="create")?$user->name:$allocataire_fragilite->NomGestionnaire)->attributes(['readonly','class' => 'form-control']) !!}
{!! html()->label( "Saisie",'date_evaluation') !!}
{!! html()->text('date_evaluation', null)->placeholder('')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control','style' => 'text-align:center']) !!}
@endif @if(($mode!="create")&&(1==0))
C: {{ $allocataire_fragilite->CreatedAtDay }}
M: {{ $allocataire_fragilite->UpdatedAtDay}}
@endif
@if($mode=="show")
@include("fragilite.row_fiche")
@if($mode!="edit")
@include("fragilite.row_graph")
@endif
@else
@include("fragilite.row_fiche")
@endif
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("AGI_MAJ")) @if($mode_frame) Modifier @else Modifier @endif @endif @if($mode_frame) Supprimer @else {{ html()->form('DELETE', url('/allocataires_fragilites/'. $allocataire_fragilite->id))->open() }} {{ html()->form()->close() }} @endif @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif @if(!$mode_frame) Retour @endif