
 
<?php $__env->startSection('title'); ?> Mise à jour d'un Compte  <?php $__env->stopSection(); ?>
 
<?php $__env->startSection('content'); ?>
 
<div class='col-lg-8 col-lg-offset-2'>
 
    <?php if($errors): ?>
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class='bg-danger alert'><?php echo $error; ?></div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
 
    <h1><i class='fa fa-user'></i>Compte <?php echo $plan->numcpt; ?></h1>
 
    <?php echo Form::model($plan, ['plan' => 'form', 'url' => '/compta/plan/' . $plan->id

        , 'class' => 'form-horizontal', 'method' => 'PUT']); ?>

  


    <div class='form-group'>
        <div class="col-md-3">
            <div class="has-success has-feedback">
                <div class="input-group">
                    <span class="input-group-addon">N°Compte</span>
                    <input readonly="readonly" type="text" class="form-control" name="numcpt" id="numcpt" 
                    value='<?php echo $plan->numcpt; ?>' />
                </div>
           </div>
       </div>
    </div>

    <div class='form-group'>
        <div class='col-md-7'>
        <?php echo Form::label('nomcpt', 'Nom'); ?>

        <?php echo Form::text('nomcpt', null, ['placeholder' => 'Nom d compte', 'class' => 'form-control']); ?>

        </div>
    </div>

    <div class='form-group'>
        <div class="col-xs-2">
            <?php echo Form::label('categ', 'Compte'); ?>

            <br/>
            <?php echo Form::select(
                    'categ',
                    ['F'=>'CCPF (F)','R' => 'CLR (R)','A' => 'AS/AV (A)','V' => 'Autre (V)'],
                    null,['class' => 'selectpicker','data-width' => "100%"]); ?>

        </div>


        <div class="col-xs-2">
            <?php echo Form::label('categ_bilan', 'Catég. pour Bilan'); ?>

            <br/>
            <?php echo Form::select(
                    'categ_bilan',
                    ['A' => 'Actif','P' => 'Passif'],
                    null,['class' => 'selectpicker','data-width' => "100%"]); ?>

        </div>


        <div class="col-xs-3">
            <?php echo Form::label('categ_cr', 'Catég. pour C.R.'); ?>

            <br/>
            <?php echo Form::select(
                    'categ_cr',
                    [''=>'Choisir une catégorie',
                    'CF'=>'Charges CCPF résultat ccpf',
                    'CR' => 'Charges CLR résultat clr',
                    'CS' => 'Charges aides sociales résultat social',
                    'PF'=>'Produits CCPF résultat ccpf',
                    'PR' => 'Produits CLR résultat clr',
                    'PS' => 'Produits aides sociales résultat social',
                    ],
                    null,['class' => 'selectpicker','data-width' => "100%"]); ?>

        </div>
<!--
        <div class='col-xs-2'>
                <?php echo Form::label('poste', 'Poste'); ?>

                <?php echo Form::text('poste', null, ['placeholder' => 'Poste', 'class' => 'form-control']); ?>

        </div>
-->
    </div>


    <div class='form-group'> 
        <!--
        <div class="col-xs-4">
            <?php echo Form::label('bilan', 'Visualisation au Bilan'); ?>

            <br/>
            <?php echo Form::select(
                    'bilan',
                    [' ' => 'Aucun','F'=>'CCPF','R' => 'CLR','A' => 'AS','A' => 'AV'],
                    null,['class' => 'selectpicker','data-width' => "100%"]); ?>

        </div>
    -->

        <div class="col-xs-4">
            <?php echo Form::label('amort', 'Compte Amortisssement'); ?>

            <?php echo Form::select(
                'amort',[" "=>"Aucun"]+$comptes,
                null,
                ['class' => 'selectpicker','data-width' => "100%"]
            ); ?>

        </div>
    </div>




    <div class="form-group">
        <div class="col-md-4">
            <div class="input-group has-warning">
                <div class="input-group-addon" style="width:100px">Budget</div>
                <?php echo Form::text('budget', null, ['placeholder' => 'Budget', 'class' => 'text-right form-control']); ?>

                <div class="input-group-addon">CFP</div>
            </div>
        </div>
    </div>


    <div class="form-group">
        <div class="col-md-4">
            <div class="input-group has-error">
                <div class="input-group-addon" style="width:100px">Débit <i>(Calculé)</i></div>
                <?php echo Form::text('debit_calc', $plan->getDebitCalc(), ['readonly', 'class' => 'text-right form-control']); ?>

                <div class="input-group-addon">CFP</div>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-4">
            <div class="input-group has-success">
                <div class="input-group-addon" style="width:100px">Crédit <i>(Calculé)</i></div>
                <?php echo Form::text('credit_calc', $plan->getCreditCalc(), ['readonly', 'class' => 'text-right form-control']); ?>

                <div class="input-group-addon">CFP</div>
            </div>
        </div>
    </div>


<div class="col-sm-9">
    <div class='form-group'>
        <?php echo Form::submit('Enregistrer', ['class' => 'btn btn-primary']); ?>

    </div>
 </div>

    <?php echo Form::close(); ?>

 
</div>
 
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp7422\htdocs\sysinfo\cpswf\sipre9\resources\views/compta/plan/edit.blade.php ENDPATH**/ ?>