{!! html()->label( "Date",'date_visite') !!}
{!! html()->text('date_visite', null)->placeholder('')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control','style' => 'text-align:center']) !!}
{!! 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']) !!}
@if($type_aide)
@if($type_aide=="AGD") {!! html()->label('Niveau GIR','gir',) !!} {!! html()->select('gir', App\Models\MyApp::getNiveauGIRPop(false),isset($allocataire_visite->gir)?$allocataire_visite->gir:null) ->placeholder("A définir") ->attributes([($mode=="show")?'disabled':'', 'class' => 'form-control']) !!} @endif @if($type_aide=="APH") {!! html()->label('Taux de Handicap','tx_handicap',) !!} {!! html()->select('tx_handicap', App\Models\MyApp::getTauxHandicapPop(false),isset($allocataire_visite->tx_handicap)?$allocataire_visite->tx_handicap:null) ->placeholder("A définir") ->attributes([($mode=="show")?'disabled':'', 'class' => 'form-control']) !!} @endif
@endif
{!! html()->label( 'Observations','observations') !!} {!! html()->textarea('observations', null) ->placeholder('') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("AEQ_MAJ")) @if($mode_frame) Modifier @else Modifier @endif @endif @if($mode_frame)  Supprimer @else {{ html()->form('DELETE', url('/allocataires_visites/'. $allocataire_visite->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