<footer class="main-footer">

	<div class="pull-right hidden-xs">
       <b>Version</b> 5.2.0
    </div>
	
	<strong>Copyright &copy; 2025 <a href="www.mandt.com.mx" target="_blank">System M&T</a>.</strong>

	Todos los derechos reservados.

</footer>


<!-- **************************************************************
        modal para crear la apertura de la caja 
        **********************************************-->
        <?php if(!isset($_SESSION['idCaja'])){ ?>
		<div class="modal" tabindex="-1" id="modalApertura">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <h2 class="modal-title text-center">Inicio de caja</h2>
        <h3 style="font-size: 17px; text-align: center;">
          <?php 
          $saldoAnterior = ControladorCaja::ctrSaldoAnterior();
           ?>
          Saldo anterior:  <b> <?= number_format($saldoAnterior,2,'.',',') ?></b>
        </h3>
      </div>
      <div class="modal-body">
        
            <input type="number" class="form-control" id="aperturaCaja" style="width: 150px; margin: 0 auto;">
            
        
      </div>
      <div class="modal-footer">
        <div class="row text-center">
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancelar</button>
            <button type="button" class="btn btn-primary aperturarCaja">Guardar</button>
        </div>
        
      </div>
    </div>
  </div>
</div>
<?php } ?>

<!-- **************************************************************
        modal registro con exito apertura de la caja 
        **********************************************-->
<div class="modal" tabindex="-1" id="modalAperturaExito">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <h2 class="modal-title text-center">Caja Iniciada</h2>
      </div>
      <div class="modal-body">
        
            <h3>Caja iniciada acepta para continuar</h3>
        
      </div>
      <div class="modal-footer">
        <div class="row text-center">
            <button type="button" class="btn btn-secondary btn-continuar-apertura" data-dismiss="modal">Aceptar</button>
        
        </div>
        
      </div>
    </div>
  </div>
</div>

<!-- **************************************************************
        modal advertencia apertura de la caja 
        **********************************************-->
<div class="modal" tabindex="-1" id="modalAdvertenciaApertura">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header">
        <h2 class="modal-title text-center">Advertencia</h2>
      </div>
      <div class="modal-body">
        
          <p>El sistema verifico que ya tienes iniciado la caja.</p>
      
        
      </div>
      <div class="modal-footer">
        <div class="row text-center">
            <a href="consulta-caja">
            <button type="button" class="btn btn-primary">Aceptar</button>
            </a>
            
        </div>
        
      </div>
    </div>
  </div>
</div>