@if($mode!="create")
{!! html()->text('id', str_pad($mandat->id, 6, "0", STR_PAD_LEFT))->attributes(['readonly', 'class' => 'form-control']) !!}
@endif
{!! html()->label('Exercice','exercice') !!} {!! html()->text('exercice', ($mode=="create"?date('Y'):null))->placeholder("")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Date','date_sai') !!}
{!! html()->text('date_sai', ($mode=="create"?date('d/m/Y'):null)) ->placeholder('Date') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@if($mode!="create")
{!! html()->label('Statut','statut_mdt') !!} {!! html()->select('statut_mdt',App\Models\MyApp::MANDAT_STATUTS,($mode=="create"?'ENC':null)) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
@endif
{!! html()->label('Type','type2') !!} {!! html()->select('type2',App\Models\MyApp::MANDAT_TYPES,null) ->placeholder('A définir') ->attributes([(($mode=="show" || ($mode=="edit" && $mandat->type2))?'readonly':''),'class' => 'form-control']) !!}
@if($mode!="create")
{!! html()->label('Observations','observation') !!} {!! html()->textarea('observation', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
@endif
@if($mode!="create")
Directeur
{!! html()->label( 'Date','date_valid_dir') !!}
{!! html()->text('date_valid_dir', null) ->placeholder('Date') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label('Observations','observation_dir') !!} {!! html()->textarea('observation_dir', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'3']) !!}
Comptable
{!! html()->label( 'Date','date_valid') !!}
{!! html()->text('date_valid', null)->placeholder('Date') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label('Observations','observation_val') !!} {!! html()->textarea('observation_val', null)->placeholder('Observations de la Comptabilité') ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'3']) !!}
@include("mandatements.mandats_new.rows_imputations") @endif
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("BEN_MAJ")) Modifier @endif @else @if($mode!="create") Enregistrer et revenir {!! html()->button('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @else {!! html()->button('Créer le mandat')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif @endif Retour à la liste