<?php $__env->startSection('content'); ?>

    <div class="sixteen wide tablet fourteen wide computer column ">
        <div class="ui segment">
            
            <h4 class="ui dividing header teal centered">EMISION DE COMUNICACION DE BAJA</h4>
            <br>

            <form class="ui form" id="frmNuevo" autocomplete="off">

                <input type="hidden" id="id_tipo_comprobante" name="id_tipo_comprobante" value="<?php echo e($data->id_tipo_comprobante); ?>">
                <div class="three fields">
                    <div class="four wide field">
                        <div class="ui fluid large white label">Surcursal de Emision</div>
                    </div>
                    <div class="eight wide field">
                        <div class="ui small input ">
                          <input type="text" readonly value="<?php echo e($data->local->nombre); ?> (<?php echo e($data->local->direccion); ?>)">
                        </div>
                    </div>
                </div>
                <?php if($tipo == 1 || $tipo == 2): ?>   
                <input type="hidden" id="fecha_referencia" name="fecha_referencia" value="<?php echo e($data->fecha_venta); ?>">
                <input type="hidden" id="id_venta" name="id_venta" value="<?php echo e($data->id_venta); ?>">
                <div class="four fields">
                    <div class="four wide field">
                        <div class="ui fluid large white label">Serie Comprobante</div>
                    </div>
                    <div class="three wide field">
                        <div class="ui small input ">
                          <input type="text" maxlength="20" readonly value="<?php echo e($data->serie_comprobante); ?>" name="serie">
                        </div>
                    </div>
                    <div class="three wide field">
                        <div class="ui fluid large white label">Numero Comprobante</div>
                    </div>
                    <div class="two wide field">
                        <div class="ui small input ">
                          <input type="text" maxlength="20" readonly value="<?php echo e($data->numero_comprobante); ?>" name="numero">
                        </div>
                    </div>
                </div>
                <?php endif; ?>    
                <?php if($tipo == 3 || $tipo == 4): ?>    
                <input type="hidden" id="fecha_referencia" name="fecha_referencia" value="<?php echo e($data->fecha_emision); ?>">
                <input type="hidden" id="id_nota" name="id_nota" value="<?php echo e($data->id_nota); ?>">
                <div class="four fields">
                    <div class="four wide field">
                        <div class="ui fluid large white label">Serie Comprobante</div>
                    </div>
                    <div class="three wide field">
                        <div class="ui small input ">
                          <input type="text" maxlength="20" readonly value="<?php echo e($data->serie_nota); ?>" name="serie">
                        </div>
                    </div>
                    <div class="three wide field">
                        <div class="ui fluid large white label">Numero Comprobante</div>
                    </div>
                    <div class="two wide field">
                        <div class="ui small input ">
                          <input type="text" maxlength="20" readonly value="<?php echo e($data->numero_nota); ?>" name="numero">
                        </div>
                    </div>
                </div>
                <?php endif; ?>

                <div class="three fields">
                    <div class="four wide field">
                        <div class="ui fluid large white label">Tipo de Comprobante</div>
                    </div>
                    <div class="three wide field">
                        <div class="ui small input ">
                          <input type="text" maxlength="20" readonly value="<?php echo e($data->tipo_comprobante->nombre); ?>">
                        </div>
                    </div>
                </div>
                <div class="three fields">
                    <div class="four wide field">
                        <div class="ui fluid large white label">Motivo para Dar de Baja</div>
                    </div>
                    <div class="eight wide field">
                        <div class="ui small input ">
                          <input type="text" name="motivo"  maxlength="200" oninput="$.upperCase(this)" placeholder="Ejemplo: Anulacion de Factura">
                        </div>
                    </div>
                </div>

                <div class="form_footer">
                    <a class="ui small left  floated default button" href="<?php echo e(URL::previous()); ?>"><i class="arrow left icon"></i>REGRESAR</a>
                    <div class="ui right floated primary button btn_registrar"><i class="check icon"></i>EMITIR</div>
                </div>

            </form>

        </div>
    </div>

    <!--start register modal -->
    <div class="ui small basic modal" id="register_modal">
        <div class="ui icon header"><i class="check circle icon"></i>Emitir Comunicacion de Baja</div>
        <div class="content" style="text-align: center; font-size: 16px">
          <p>¿Desea emitir la comunicacion de baja para este comprobante?</p>
        </div>
        <div class="actions">
            <div class="ui red basic cancel inverted button" title="Haga clic para salir"><i class="remove icon"></i>Cancelar</div>
            <div class="ui green ok inverted button" title="Haga clic para registrar"> <i class="checkmark icon"></i>Emitir</div>
        </div>
    </div>
    <!--end register modal -->
    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo e(asset('js/baja/nuevo.js')); ?>"></script>
<?php $__env->stopSection(); ?>



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