
    <div class="row form-group">
        <div class="col-md-3">
            <?php echo html()->label('Mandat&nbsp;N°','idmandat'); ?>

            <?php echo html()->text('idmandat', (isset($mandat)?$mandat->id:null))
                ->attributes([(($frame)?'readonly':''), 'class' => 'form-control']); ?>

        </div>

        <div class="col-md-4">
            <?php echo html()->label('Compte Imputation','cpt_imp'); ?>

            <?php echo html()->select('cpt_imp',$comptes,null)
                    ->placeholder('A définir')
                    ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>

        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-12">
            <?php echo html()->label('Désignation','designation'); ?>

            <?php echo html()->textarea('designation', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']); ?>

        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-3">
            <?php echo html()->label('Type','type_imp'); ?>

            <?php echo html()->select('type_imp',['CLR'=>'CLR','CPF' => 'CPF','ASE' => 'ASE','AVI' => 'AVI','CSR' => 'CSR'],null)
                    ->placeholder('A définir')
                    ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>


        </div>

        <div class="col-md-3">
            <?php echo html()->label('Montant','montant'); ?>

            <?php echo html()->text('montant', null)
                ->attributes([($mode=="show"?'disabled':''),'class' => 'form-control']); ?>

        </div>
    </div>

    <div class="row form-group">
        <div class="col-md-12">
            <?php echo html()->label('Observations','obs'); ?>

            <?php echo html()->textarea('obs', null)->attributes([($mode=="show"?'disabled':''), 'class' => 'form-control', 'rows'=>'2']); ?>

        </div>
    </div>


    <div class='form-group row '>
        <?php if($mode!="show"): ?>
            <?php echo html()->button('Enregistrer')->value('Enregistrer')->type('submit')->attributes(['class' => 'btn btn-primary']); ?>

        <?php else: ?>
            <?php if($imputation->IsModifiable && ($user->hasRole("ADMINISTRATEUR") || $user->can("IMP_MAJ"))): ?>
                <?php if(!$frame): ?>
                    <a class="btn btn-primary" href="<?php echo url('imputations/'.$imputation->id.'/edit'); ?>" id="btn_modifier">Modifier</a>
                <?php endif; ?>
            <?php endif; ?>
        <?php endif; ?>
        <?php if(!$frame): ?>
            &nbsp;<a class="btn btn-warning"  href="<?php echo url('imputations'); ?>">Retour</a>
        <?php endif; ?>
    </div>


<?php /**PATH C:\xampp\htdocs\SYSINFO\cpswf\sipre2\resources\views/mandatements/imputations/content.blade.php ENDPATH**/ ?>