<?php $__env->startSection('content'); ?>
<div class="container-fluid">
	<div class="row">
		<div class="col-md-8 col-md-offset-2">
                    <div class="panel panel-default">
                        <div class="panel-heading"><center>Detallado de factura <b><?php echo e($fac); ?></b>. <br>Crédito del Cliente: <b><?php echo e($ccli." ".$dcli); ?></b></center></div>
                            <div class="panel-body">
                                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                    <ul class="nav navbar-nav navbar-right">				
                                      <!--  <li><a href="<?php echo e(url('/')); ?>"> Opciones </a></li>--> 
                                       <!-- <li><a href="<?php echo e(url('/Mod_usuario')); ?>"> Atras </a></li>-->
                                    </ul>
                                </div>
                                <?php if(count($errors) > 0): ?>
                                        <div class="alert alert-danger">
						<strong>Whoops!</strong> Hay algunos problemas!!!.<br><br>
                                                    <ul>
							<?php foreach($errors->all() as $error): ?>
                                                            <li><?php echo e($error); ?></li>
							<?php endforeach; ?>
                                                    </ul>
					</div>
				    <?php endif; ?>
                                    
                                    <?php if($alert = Session::get('alert-success')): ?>
                                            <div class="alert alert-success">
                                                <?php echo $alert; ?>

                                            </div>
                                        <?php endif; ?>
                                        
                                    <div class="table-responsive">                                        
                                        <table class="table table-striped table-hover table-bordered">
                                            <tr>
                                                <th class="text-center">Factura</th>
                                                <th class="text-center" colspan="4">Valor</th>                                                
                                                <th class="text-center"></th>
                                            </tr>
                                            
                                            <tr class="text-info">
                                                <th class="text-center">#</th>                                                
                                                <th class="text-center">Compra</th>
                                                <th class="text-center">Abonado</th>
                                                <th class="text-center">Restante</th>
                                                <th class="text-center">Abonar</th>
                                                <th class="text-center">Observación</th>
                                            </tr>
                                            <?php echo Form::open(array('url' =>'/abocrecli', 'method'=>'POST','role'=>'form','id'=>'regForm','name'=>'regForm')); ?>

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

                                            <tr class="text-info">
                                                <td class="text-center"><?php echo Form::number('fac',$fac,array('class'=>'form-control','id'=>'fac','readonly')); ?></td>                                                
                                                <td class="text-center"><?php echo Form::number('vcom',$vcom,array('class'=>'form-control','id'=>'vcom','readonly')); ?></td>
                                                <td class="text-center"><?php echo Form::number('sumabo',$sumabo,array('class'=>'form-control','id'=>'sumabo','readonly')); ?></td>
                                                <td class="text-center"><?php echo Form::number('sumres',$sumres,array('class'=>'form-control','id'=>'sumres','readonly')); ?></td>
                                                <td class="text-center"><?php echo Form::number('nabon','',array('class'=>'form-control','id'=>'nabon','required')); ?></td>
                                                <td class="text-center"><?php echo Form::text('oabo','',array('class'=>'form-control','id'=>'oabo','required','maxlength'=>'250')); ?></td>
                                            </tr>
                                            <tr>
                                                <td class="text-center" colspan="6">
                                                    <?php echo Form::submit('Guardar',array('name'=>'guarda','id'=>'guarda','class'=>'btn btn-primary')); ?>

                                                </td>                                            
                                            </tr>
                                            <?php echo Form::close(); ?>    
                                        </table>                                        
                                    </div>
			</div>
		</div>
	</div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>