{!! 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']) !!}
{!! html()->label('Aide concernée','type_aide') !!} {!! html()->select('type_aide',App\Models\MyApp::TYPES_AIDES_COMMISSIONS,null)->placeholder('Non défini') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control','id' => 'select_aide']) !!}
{!! 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']) !!}
{!! 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']) !!}
{!! 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
@foreach($liste_deficiences as $deficience) @endforeach
Déficience \ Sévérité Forme légère (1-15%) Forme modérée (20-45%) Forme importante (50-75%) Forme sévère ou majeure (80-95%)
{{ $deficience }} {!! html()->select('def_'. $deficience,$t_taux[1],null)->placeholder('') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!} {!! html()->select('def_'. $deficience,$t_taux[2],null)->placeholder('') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!} {!! html()->select('def_'. $deficience,$t_taux[3],null)->placeholder('') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!} {!! html()->select('def_'. $deficience,$t_taux[4],null)->placeholder('') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}