{!! html()->label( 'Equipement','id_equipement') !!} {!! html()->select('id_equipement',$equipements,null)->placeholder('A définir')->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label( 'Etat','etat') !!} {!! html()->select('etat',App\Models\MyApp::EQUIPEMENTS_ETATS,null) ->placeholder('A définir') ->attributes(['id' => 'statut',($mode=="show")?'disabled':'','class' => 'form-control']) !!}
{!! html()->label( 'Besoin','besoin') !!} {!! html()->select('besoin',["O"=>"OUI","N"=>"NON"],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_equipements/'. $allocataire_equipement->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