{!! html()->label('Type de visite','type_visite') !!} {!! html()->select('type_visite',App\Models\MyApp::TYPES_VISITES,null)->placeholder('Non défini') ->attributes([($mode=="show")?'disabled':'','class' => 'form-control']) !!}
{!! html()->label( 'Statut','statut') !!} {!! html()->select('statut',["ENC"=>"En-cours de saisie","TER"=>"Terminé"],($mode=="create")?'ENC':null) ->placeholder('A définir') ->attributes(['id' => 'groupe',($mode=="show")?'disabled':'','class' => 'form-control']) !!}
@if($mode!="create")
{!! html()->label( 'Groupe','groupe') !!} {!! html()->text('groupe',null)->attributes(['disabled','class' => 'form-control','style'=>'text-align:center']) !!}
{!! html()->label( 'Gestionnaire','id_user') !!} {!! html()->text('id_user',($mode=="create")?$user->name:$allocataire_gir->NomGestionnaire)->attributes(['readonly','class' => 'form-control']) !!}
@endif
{!! html()->label( "Date évaluation",'date_evaluation') !!}
{!! html()->text('date_evaluation', ($mode=="create")?date('d/m/Y'):null)->placeholder('')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control','style' => 'text-align:center']) !!}
{!! html()->label( 'Observations','observations') !!} {!! html()->textarea('observations', null) ->placeholder('') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
@if($mode=="show")
@include("aggir.row_fiche")
@include("aggir.row_calcul")
@else
@include("aggir.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_girs/'. $allocataire_gir->id))->open() }} {{ html()->form()->close() }} @endif @else @if($mode=="create") {!! html()->button('Valider et saisir')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-info']) !!} @else {!! html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif @endif @if(!$mode_frame) Retour @endif