<?php if( $datos->count()>0 ): ?>
  <div class='table mt-3'>
    <div class="row encabezado">
      <div class="col-lg-1 col-md-1 col-sm-12 d-none d-sm-none d-md-block">No</div>
      <div class="col-lg-1 col-md-1 col-sm-12 d-none d-sm-none d-md-block">No.Control/ No.Solicitud</div>
      <div class="col-lg-4 col-md-4 col-sm-12 d-none d-sm-none d-md-block">Nombre</div>
      <div class="col-lg-1 col-md-1 col-sm-12 d-none d-sm-none d-md-block">Carrera</div>
      <div class="col-lg-2 col-md-2 col-sm-12 d-none d-sm-none d-md-block">Fecha</div>
      <div class="col-lg-2 col-md-2 col-sm-12 d-none d-sm-none d-md-block">Importe</div>
      <div class="col-lg-1 col-md-1 col-sm-12 d-none d-sm-none d-md-block">Acción</div>
    </div>
    <div class="row contenido-700">
      <div class='col-md-12'>
        <?php $i = 0; ?>
        <?php $__currentLoopData = $datos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <?php $i++; ?>
          
          <div class="row cuerpo text-center align-self-center">
            <div class='col-6 d-block d-sm-block d-md-none bg-dark-blue text-white text-center'>No.</div>
            <div class="col-6 d-block d-sm-block d-md-none bg-dark-blue text-white text-center"><?php echo e($i); ?></div>
            <div class="col-6 col-lg-1 col-md-1 col-sm-6 d-none d-sm-none d-md-block"><?php echo e($i); ?></div>

            <div class='col-6 d-block d-sm-block d-md-none text-center'>No. Solicitud</div>
            <div class="col-6 col-lg-1 col-md-1 col-sm-6 text-right"><?php echo e($d->fk_idAlumno); ?></div>

            <div class='col-6 d-block d-sm-block d-md-none text-center'>Nombre</div>
            <div class="col-6 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-between">
              <?php echo e($d->nombre); ?> <?php echo e($d->ap_paterno); ?> <?php echo e($d->ap_materno); ?>

              <?php if($d->fk_idEstado=='1' || $d->fk_idEstado=='4'): ?> <label class="text-danger" data-toggle="popover" data-trigger="hover" data-placement="left" data-content="Por Revisar" id="ic_<?php echo e($d->a); ?>_<?php echo e($d->ids_pagos); ?>"><i class="fa fa-clock-o"></i></label> <?php endif; ?>
              <?php if($d->fk_idEstado=='3'): ?> <label class="text-secondary" data-toggle="popover" data-trigger="hover" data-placement="left" data-content="Rechazado" id="ic_<?php echo e($d->a); ?>_<?php echo e($d->ids_pagos); ?>"><i class="fa fa-thumbs-down"></i></label> <?php endif; ?>
            </div>

            <div class='col-6 d-block d-sm-block d-md-none text-center'>Carrera</div>
            <div class="col-6 col-lg-1 col-md-1 col-sm-6"><?php echo e($d->tipo); ?></div>

            <div class='col-6 d-block d-sm-block d-md-none text-center'>Fecha</div>
            <div class="col-6 col-lg-2 col-md-2 col-sm-6"><?php echo e($d->fecha_pago->format('d-m-Y')); ?></div>

            <div class='col-6 d-block d-sm-block d-md-none text-center'>Importe</div>
            <div class="col-6 col-lg-2 col-md-2 col-sm-6 text-right">$<?php echo e(number_format($d->total,2)); ?></div>
            
            <div class='col-6 d-block d-sm-block d-md-none text-center'>Acción</div>
            <div class="col-6 col-lg-1 col-md-1 col-sm-6 text-center">
              <div class="btn-group btn-group-xs" role="group" aria-label="...">
                <!--respetar los colores y botones para consultar, modificar y eliminar -->
                
                  
                  <button class="btn btn-outline-info" type="button" data-toggle="popover" data-trigger="hover" data-placement="left" data-content="#Servicios pagados: <?php echo e(count(explode(',', $d->id_servicios))); ?> <br># Vauchers enviados: <?php echo e(count(explode(',', $d->ids_pagos))); ?>" ><i class="fa fa-newspaper-o"></i></button>  

                  <button class="btn btn-outline-warning" type="button" data-toggle="popover" data-trigger="hover" data-placement="left" data-content="Consultar" onclick="pagos_consultar('<?php echo e($d->ids_pagos); ?>','<?php echo e($d->a); ?>')"><i class="fa fa-folder-open-o"></i></button>
                
                
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('requisicion_cancelar')): ?> 
                  <?php if($d->estado==10): ?>
                    <button class="btn btn-outline-danger"  type="button" data-toggle="popover" data-trigger="hover" data-placement="left" data-content="Cancelar" onclick="eliminar_firma('Requisicion de bienes y servicios - Cancelar', 'requi_cancelar(<?php echo e($d->id); ?>)');"><i class="fa fa-times"></i></button>
                  <?php endif; ?>
                <?php endif; ?>

              </div>
            </div>
          </div>

        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
      </div>
    </div>
    <!--<div class="row pie">
      <div class="col-md-4 col-sm-12">ID</div>
      <div class="col-md-4 col-sm-12">Año</div>
      <div class="col-md-4 col-sm-12">Acción</div>
    </div>-->
  </div>

  <?php if(true): ?>
    <div class="d-flex justify-content-end">
      <?php echo e($datos->links()); ?>

    </div>
  <?php endif; ?>
    


<?php else: ?>
  <div class="row mt-5">
    <div class="col-lg-12 col-md-12 text-center">
      <h2>No se encontraron resultados.</h2>
    </div>
  </div>
<?php endif; ?><?php /**PATH /home2/itzitacu/public_html/poa/laravel/resources/views/pagos/listado/contenido.blade.php ENDPATH**/ ?>