<?php $__env->startSection('title', 'Recaudo Diario'); ?>
<?php $__env->startSection('content'); ?>
<div class="col-sm-12 col-md-9 col-lg-10 col-xl-10">
    <h3 class="text-center titulo">Recaudo Diario</h3>
    <div class="borde-forma">
        <form id="form-inline" method="post" accept-charset="utf-8" action="" target="_blank">
            <p class="parrafo-forma">
                Los campos marcados con <strong class="requerido">*</strong> son obligatorios.
            </p>
            <?php echo e(csrf_field()); ?>

            <div class="form-group row">
                <label for="txtFechaI" class="col-sm-12 col-form-label col-md-5 col-lg-5 col-xl-5 text-right">
                    <strong class="requerido">*</strong>Fecha Inicial:
                </label>
                <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5 validar">
                    <input type="text" name="txtFechaI" id="txtFechaI" title="Ingrese fecha inicial" value="" class="form-control" placeholder="Fecha" required="">
                </div>
            </div>
            <div class="form-group row">
                <label for="txtFechaF" class="col-sm-12 col-form-label col-md-5 col-lg-5 col-xl-5 text-right">
                    <strong class="requerido">*</strong>Fecha Final:
                </label>
                <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5 validar">
                    <input type="text" name="txtFechaF" id="txtFechaF" title="Ingrese fecha final" value="" class="form-control" placeholder="Fecha" required="">
                </div>
            </div>
            <div class="form-group row">
                <label for="sltBancoI" class="col-sm-12 col-form-label col-md-5 col-lg-5 col-xl-5 text-right">
                    <strong class="requerido">*</strong>Banco Inicial:
                </label>
                <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5 validar">
                    <select name="sltBancoI" id="sltBancoI" class="form-control select" required="">
                        <option value="">Banco Inicial</option>
                        <?php if(!empty($bancoI)): ?>
                            <?php $__currentLoopData = $bancoI; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rowI): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($rowI->id_unico); ?>"><?php echo e($rowI->cod." ".$rowI->descripcion); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label for="sltBancoF" class="col-sm-12 col-form-label col-md-5 col-lg-5 col-xl-5 text-right">
                    <strong class="requerido">*</strong>Banco Final:
                </label>
                <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5 validar">
                    <select name="sltBancoF" id="sltBancoF" class="form-control select" required="">
                        <option value="">Banco Final</option>
                        <?php if(!empty($bancoF)): ?>
                            <?php $__currentLoopData = $bancoF; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rowF): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($rowF->id_unico); ?>"><?php echo e($rowF->cod." ".$rowF->descripcion); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
            <div class="form-group row">
                <label for="chakRe" class="col-sm-12 col-form-label col-md-5 col-lg-5 col-xl-5 text-right">
                    <strong class="requerido">*</strong>Solo Resumen:
                </label>
                <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5 validar">
                    <div class="form-check form-check-inline">
                        <label class="form-check-label" for="chakRe">
                            <input class="form-check-input" type="radio" name="chakRe" id="chakRe" value="1"  title="Si">Si
                        </label>
                    </div>
                    <div class="form-check form-check-inline">
                        <label class="form-check-label" for="chakRe1">
                            <input class="form-check-input" type="radio" name="chakRe1" id="chakRe1" value="2"  title="No">No
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group row">
                <label for="chakTop1" class="col-sm-12 col-form-label col-md-5 col-lg-5 col-xl-5 text-right">
                    <strong class="requerido">*</strong>Tipo de Informe:
                </label>
                <div class="col-sm-12 col-md-5 col-lg-5 col-xl-5 validar">
                    <div class="form-check form-check-inline">
                        <label class="form-check-label" for="chakTop1">
                            <input class="form-check-input" type="radio" name="chkFile" id="chakTop1" value="1" required="" title="Exportar a pdf">PDF
                        </label>
                    </div>
                    <div class="form-check form-check-inline">
                        <label class="form-check-label" for="chakTop2">
                            <input class="form-check-input" type="radio" name="chkFile" id="chakTop2" value="2" title="Exportar a excel">EXCEL
                        </label>
                    </div>
                </div>
            </div>
            
            <div class="form-group row">
                <label for="btnGuardar" class="col-form-label col-md-5 col-lg-5 col-xl-5"></label>
                <div class="col-sm-2 col-md-1 col-lg-1 col-xl-1">
                    <button type="submit" class="btn btn-primary fa fa-save sombra"></button>
                </div>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
    $("#chakTop1").click(function(){
    if(document.getElementById('chakRe').checked){
        $("#form-inline").attr("action", "<?php echo e(route('ListadoRecaudosDR')); ?>");

      }else if(document.getElementById('chakRe1').checked){
       $("#form-inline").attr("action", "<?php echo e(route('ListadoRecaudosD')); ?>");
      }
        
    });
    $("#chakRe1").click(function(){
        document.getElementById('chakRe').checked = false;
        document.getElementById('chakTop1').checked = false;
        document.getElementById('chakTop2').checked = false;
        
    });
    $("#chakRe").click(function(){
        document.getElementById('chakRe1').checked= false;
        document.getElementById('chakTop1').checked = false;
        document.getElementById('chakTop2').checked = false;
    });

    $("#chakTop2").click(function(){
      if(document.getElementById('chakRe').checked){
          $("#form-inline").attr("action", "<?php echo e(route('GenearListadoPagosR')); ?>");
      }else if(document.getElementById('chakRe1').checked){
          $("#form-inline").attr("action", "<?php echo e(route('GenearListadoPagos')); ?>");
      }
      
    });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>