            <div class="tab-content">
                @if($mode!="create")
                    <div class="form-group row">
                        <div class="col-md-2">
                            <div class="input-group mb-3">
                                <div class="input-group-prepend">
                                    <span class="input-group-text">N°</span>
                                </div>
                                {!! html()->text('id', str_pad($mandat->id, 6, "0", STR_PAD_LEFT))->attributes(['readonly', 'class' => 'form-control']) !!}
                            </div>
                        </div>
                    </div>
                @endif
                <div class="row form-group" >
                    <div class="col-md-8 row" >
                        <div class="col-md-2">
                            {!! html()->label('Exercice','exercice') !!}
                            {!! html()->text('exercice', null)->placeholder("Exercice")->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control']) !!}
                        </div>
                        <div class="col-md-3">
                            {!! html()->label( 'Date','date_sai') !!}
                            <div class='input-group date' id='datepicker_date_sai'>
                                {!! html()->text('date_sai', null)
                                    ->placeholder('Date')
                                    ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
                                <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>
                            </div>
                        </div>
                        <div class="col-md-3">
                            {!! 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'])  !!}
                        </div>
                        <div class="col-md-4">
                            {!! html()->label('Type','type') !!}
                            {!! html()->select('type',['P'=>'Paiement','A' => 'Annulation'],null)
                                    ->placeholder('A définir')
                                    ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control'])  !!}
                        </div>
                    </div>
                    <div class="col-md-4 form-group ">
                        <div class="col-md-12">
                        {!! html()->label('Observations','observation') !!}
                        {!! html()->textarea('observation', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']) !!}
                        </div>
                    </div>
                </div>

                <div class="form-group row">
                    <div class="col-md-6 callout callout-success" >
                        <legend><b><i> Directeur</i></b></legend>
                        <div class="row">
                            <div class="col-md-6">
                                {!! html()->label( 'Date','date_valid_dir') !!}
                                <div class='input-group date' id='datepicker_date_valid_dir'>
                                    {!! html()->text('date_valid_dir', null)
                                        ->placeholder('Date')
                                        ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
                                    <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                {!! html()->label('Observations','observation_dir') !!}
                                {!! html()->textarea('observation_dir', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'3']) !!}
                            </div>
                        </div>
                    </div>

                    <div class="col-md-6 callout callout-warning" >
                        <legend ><b><i> Comptable</b></i></legend>
                        <div class="row">
                            <div class="col-md-6">
                                {!! html()->label( 'Date','date_valid_dir') !!}
                                <div class='input-group date' id='datepicker_date_valid'>
                                    {!! html()->text('date_valid', null)->placeholder('Date')
                                        ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']) !!}
                                    <span class='input-group-addon'><span class='glyphicon glyphicon-calendar'></span></span>
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12">
                                {!! html()->label('Observations','observation_val') !!}
                                {!! html()->textarea('observation_val', null)->placeholder('Observations de la Comptabilité')
                                    ->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'3']) !!}
                            </div>
                        </div>
                    </div>
                </div>

                @if($mode!="create")
                    <!-- IMPUTATIONS -->
                    @include("mandatements.mandats.rows_imputations")

                    <!-- CREANCIERS -->
                    @include("mandatements.mandats.rows_creanciers")
                @endif
                
                <div class='form-group'>
                    @if($mode=="show")
                        @if($user->hasRole("ADMINISTRATEUR") || $user->can("BEN_MAJ"))
                            <a class="btn btn-primary" href="{!! url('mandats/'.$mandat->id.'/edit') !!}" id="btn_modifier">Modifier</a>
                        @endif
                    @else
                        <a  class="btn btn-info"  id='save_reload' href="#" >Enregistrer et revenir</a>
                        {!! html()->button('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']) !!}
                    @endif
                    <a class="btn btn-warning"  href="{!! url('mandats') !!}">Retour à la liste</a>
                </div>
            </div>
