@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', null)->placeholder("Exercice")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
{!! html()->label( 'Date','date_sai') !!}
{!! html()->text('date_sai', null) ->placeholder('Date') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label('Statut','statut_mdt') !!} {!! html()->select('statut_mdt',['ANN'=>'Annulé','ENC' => 'En-cours','REJ' => 'Rejeté','VAL' => 'Validé'],null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label('Type','type') !!} {!! html()->select('type',['P'=>'Paiement','A' => 'Annulation'],null) ->placeholder('A définir') ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
{!! html()->label('Observations','observation') !!} {!! html()->textarea('observation', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
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']) !!}
@if($mode!="create") @include("mandatements.mandats.rows_imputations") @include("mandatements.mandats.rows_creanciers") @endif
@if($mode=="show") @if($user->hasRole("ADMINISTRATEUR") || $user->can("BEN_MAJ")) Modifier @endif @else @if($mode!="create") Enregistrer et revenir @else {!! html()->button('Créer le mandat')->type('submit')->attributes(['class' => 'btn btn-primary']) !!} @endif @endif Retour à la liste