<div class="content-wrapper">
  <!-- Content Header (Page header) -->
  <div class="content-header">
    <div class="container-fluid">
      <div class="row mb-2">
        <div class="col-sm-6">
          <h1 class="m-0 text-dark">Pagos en Sistema</h1>
        </div><!-- /.col -->
        <div class="col-sm-6">
          <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item"><a href="#">Agregar</a></li>
            <li class="breadcrumb-item active">Pagos en Sistema</li>
          </ol>
        </div><!-- /.col -->
      </div><!-- /.row -->
    </div><!-- /.container-fluid -->
  </div>
  <!-- /.content-header -->

  <!-- Main content -->
  <!-- Main content -->
  <section class="content">
    <div class="row">
      <!-- /.card -->
      <div class="col-md-12" id="datos_producto" >
        <div class="card  card-body" >
          <div class="card-header" >
            <h3 class="card-title" >Pagos en Sistema</h3>

            <div class="card-tools" id="botones_header">
              <button class="btn btn-primary" id="add_modal" >Agregar <i class="fa fa-plus-square"></i></button>
            </div>
          </div>
          <div class="card-body">
            <div id="filtercam">
              <table id="filter" style="border-bottom: none;" class="table table-bordered table-striped">
                <thead>
                <tr style="text-align: center;">
                  <th style="width: 6%;"></th>
                  <th>Fecha</th>
                  <th>Banco</th>
                  <th>Titular</th>
                  <th>Num-Cuenta</th>
                  <th>Cant.Dep</th>
                  <th>Monto.Dep</th>
                  <th>Cant.Trans</th>
                  <th>Monto.Trans</th>
                  <th>Total</th>
                  </tr>
                </thead>

                <tbody>
                  <tr >
                    <td></td>
                    <td><div class="form-group">
                      <input type="date" class="form-control column_filter" id="col1_filter" data-column="1" placeholder="Filter">
                    </div></td>
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col2_filter" data-column="2" placeholder="Filter">
                    </div></td>
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col3_filter" data-column="3" placeholder="Filter">
                    </div></td>
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col4_filter" data-column="4" placeholder="Filter">
                    </div></td>                
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col5_filter" data-column="5" placeholder="Filter">
                    </div></td> 
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col6_filter" data-column="6" placeholder="Filter">
                    </div></td>
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col7_filter" data-column="7" placeholder="Filter">
                    </div></td>  
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col8_filter" data-column="8" placeholder="Filter">
                    </div></td>
                    <td><div class="form-group">
                      <input type="text" class="form-control column_filter" id="col9_filter" data-column="9" placeholder="Filter">
                    </div></td> 
                  </tr>
                </tbody>
              </table>
            </div>
            <table id="list_system_payments" class="table table-bordered table-striped" style="width: 100%;">
              <thead>
                <tr style="text-align: center;">
                  <th></th>
                  <th>Fecha</th>
                  <th>Banco</th>
                  <th>Titular</th>
                  <th>Num-Cuenta</th>
                  <th>Cant.Dep</th>
                  <th>Monto.Dep</th>
                  <th>Cant.Trans</th>
                  <th>Monto.Trans</th>
                  <th>Total</th>
                  <th>Acciones</th>

                </tr>
              </thead>

              <tfoot>
                <tr>
                  <th></th>
                  <th colspan="10" style="text-align: center;">Pagos en Sistema</th>
                </tr>
              </tfoot>
            </table>
          </div>
          <!-- /.card-body -->
        </div>
        <!-- /.card -->
      </div>

    </div>

  </section>
</div>

<div class="modal fade" id="addcat">
  <div class="modal-dialog modal-lg">
    <div class="modal-content">
      <form role="form">
        <div class="modal-header">
          <h4 class="modal-title" id="title_modal"></h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="card-body">
           <div class="container-fluid">
            <div class="row">
              <div class="form-group col-sm-12">
                <label for="cuentas_bancarias">Cuentas<span style="color: red">*</span></label>
                <select class="form-control select2 bg-primary" id="cuentas_bancarias" style="width: 100%;">
                </select>
              </div>
              <div class="form-group col-sm-12 " style="display: none;" id="detalles_cuenta">
                <label>Detalles de la Cuenta</label><br>
                <label id="titular_cuenta">.</label><br>
                <label id="numero_cuenta">.</label>
              </div>
              <div class="form-group col-sm-12 text-center">
                <label >Depositos</label>
              </div>
              <div class="form-group col-sm-6">
                <label for="cant_dep">Cantidad<span style="color: red">*</span></label>
                <input type="number" class="form-control" id="cant_dep" placeholder="Cantidad de Depositos" autocomplete="off">
              </div>
              <div class="form-group col-sm-6">
                <label for="monto_dep">Monto<span style="color: red">*</span></label>
                <input type="text" class="form-control" id="monto_dep" placeholder="0.00" autocomplete="off">
              </div>

              <div class="form-group col-sm-12 text-center">
                <label >Transferencias</label>
              </div>
              <div class="form-group col-sm-6">
                <label for="cant_trans">Cantidad<span style="color: red">*</span></label>
                <input type="number" class="form-control" id="cant_trans" placeholder="Cantidad de Transferencias" autocomplete="off">
              </div>
              <div class="form-group col-sm-6">
                <label for="monto_trans">Monto<span style="color: red">*</span></label>
                <input type="text" class="form-control" id="monto_trans" placeholder="0.00" autocomplete="off">
              </div>


  
              <input type="hidden" class="form-control" id="id_pago" >

            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer justify-content-between">
        <button type="button" class="btn btn-default close_m" data-dismiss="modal"><?php echo $_SESSION['lang']['CERRAR'];?></button>
        <button type="button" class="btn btn-primary " id="edit"><?php echo $_SESSION['lang']['SALVAR'];?></button>
        <button type="button" class="btn btn-primary " id="save"><?php echo $_SESSION['lang']['SALVAR'];?></button>

      </div>
    </form>
  </div>
  <!-- /.modal-content -->
</div>
</div>

<div class="modal fade" id="balance_modal">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <form role="form">
        <div class="modal-header">
          <h4 class="modal-title">Editar Saldo</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="card-body">
           <div class="container-fluid">
            <div class="row">


              <div class="form-group col-sm-12">
                <label id="detalle_banco">.</label><br>
                <label id="detalle_titular">.</label><br>
                <label id="detalle_num_cuenta">.</label>

              </div>
              <div class="form-group col-sm-12">
                <label for="saldo">Saldo<span style="color: red">*</span></label>
                <input type="text" class="form-control" id="saldo" placeholder="0.00" autocomplete="off">
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer justify-content-between">
        <button type="button" class="btn btn-default close_m" data-dismiss="modal"><?php echo $_SESSION['lang']['CERRAR'];?></button>
        <button type="button" class="btn btn-primary " id="edit_balance"><?php echo $_SESSION['lang']['SALVAR'];?></button>

      </div>
    </form>
  </div>
  <!-- /.modal-content -->
</div>
</div>

<div class="modal fade" id="modal_eliminar">
  <div class="modal-dialog">
    <div class="modal-content bg-danger">
      <div class="modal-header">
        <h4 class="modal-title">Desea eliminar Pagos en Sistema?</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <p>Presiona confirmar para eliminar</p>
      </div>
      <div class="modal-footer justify-content-between">
        <button type="button" class="btn btn-outline-light" data-dismiss="modal">Cerrar</button>
        <button type="button" class="btn btn-outline-light" id="delete_cat">Confirmar</button>
      </div>
    </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- /.modal -->

