<?php $__env->startSection('content'); ?>
<style>
  .form-check{
    display: inline-block;
    top: -15px;
    left: 13px;
  }
</style>


<?php $__currentLoopData = $facturaSeleccionada; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dato): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="container mt-4">
    <dl class="row">
        <div class="card col-md-8">
            <div class="card-body col-md-6">
                <dt class=" blockquote">ID</dt>
                <dd class=" blockquote"><?php echo e($dato->id); ?></dd>
              
                <dt class="blockquote">Fecha</dt>
                <dd class="blockquote"><?php echo e(date("d/m/Y", strtotime($dato->created_at))); ?></dd>
                <dt class="blockquote">Cliente</dt>
                <dd class="blockquote"><?php echo e($dato->cliente->nombre??''); ?></dd>
                <dt class="blockquote">Producto</dt>
                <dd class="blockquote"><?php echo e($dato->producto->nombre??''); ?></dd>
        
                <dt class="blockquote">Cantidad</dt>
                <dd class="blockquote"><?php echo e($dato->cantidad??''); ?></dd>
        
                <dt class="blockquote">Total</dt>
                <dd class="blockquote"><?php echo e(number_format($dato->precio,2,'.',',')); ?></dd>
                
                <dt class="blockquote my-4">Seleccione el nuevo archivo</dt>
                <form action="<?php echo e(route('contabilidad.editar_factura')); ?>" method="post" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <p>FEL</p>
                    <input type="text" name="fel" placeholder="Nueva numero de FEL" value="<?php echo e($dato->no_sat); ?>">
                    <input type="file" name="archivo_factura" class="form-control-file my-4" accept="application/pdf,image/*,.xls,.xslx" required>
                    <input type="number" hidden class="d-none" name="idFactura" value="<?php echo e($dato->id); ?>">
                    <div class="d-flex justify-content-around align-items-center">
                        <a href="<?php echo e(route('contabilidad.dashboard_facturas')); ?>" class="btn btn-dark my-4">Cancelar</a>
                        <button type="submit" class="btn btn-success">Guardar</button>
                    </div>
                </form>
            </div>
          </div>
        
      </dl>
    
  </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


<?php $__env->stopSection(); ?>

<?php echo $__env->make('contabilidad.menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/devpwg5/laravelrp.com/resources/views/contabilidad/ver_factura.blade.php ENDPATH**/ ?>