<?php if( $requisiciones->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">ID</div>
      <div class="col-lg-1 col-md-1 col-sm-12 d-none d-sm-none d-md-block">Folio</div>
      <div class="col-lg-1 col-md-1 col-sm-12 d-none d-sm-none d-md-block">Estado</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-4 col-md-4 col-sm-12 d-none d-sm-none d-md-block">Departamento</div>
      <div class="col-lg-1 col-md-1 col-sm-12 d-none d-sm-none d-md-block">Total</div>
      <div class="col-lg-2 col-md-2 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 $__currentLoopData = $requisiciones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <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'>ID</div>
            <div class="col-6 d-block d-sm-block d-md-none bg-dark-blue text-white text-center"><?php echo e($r->id); ?></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($r->id); ?></div>

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

            <div class='col-6 d-block d-sm-block d-md-none text-center'>Estado</div>
            <div class="col-6 col-lg-1 col-md-1 col-sm-6"><?php echo e($r->nombre_estado->leyendaDepto); ?></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($r->created_at->format('d-m-Y H:i')); ?></div>

            <div class='col-6 d-block d-sm-block d-md-none text-center'>Departamento</div>
            <div class="col-6 col-lg-4 col-md-4 col-sm-6 text-left"><?php echo e($r->departamento->nombre); ?></div>

            <div class='col-6 d-block d-sm-block d-md-none text-center'>Total</div>
            <div class="col-6 col-lg-1 col-md-1 col-sm-6 text-right">$<?php echo e(number_format($r->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-2 col-md-2 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 -->
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('requisicion_consultar')): ?>
                  <button class="btn btn-outline-warning" type="button" data-toggle="popover" data-trigger="hover" data-placement="left" data-content="Consultar" onclick="requi_consultar('<?php echo e($r->id); ?>')"><i class="fa fa-folder-open-o"></i></button>
                <?php endif; ?>
                
                  <button class="btn btn-outline-info" type="button" data-toggle="popover" data-trigger="hover" data-placement="left" title="Requisición utilizada para:" data-content="<?php echo e($r->justificacion); ?>"><i class="fa fa-newspaper-o"></i></button>

                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('requisicion_descargar')): ?>
                  <a class="btn btn-outline-secondary" data-toggle="popover" data-trigger="hover" data-placement="left" data-content="Descargar" href="/requisicion/exportar/<?php echo e($r->id); ?>"><i class="fa fa-cloud-download"></i></a>
                  <!--<button class="btn btn-warning text-white" type="button" data-toggle="popover" data-placement="left" data-content="Activar"><i class="fa fa-check"></i></button>-->
                <?php endif; ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('requisicion_cancelar')): ?> 
                  <?php if($r->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($r->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($no_pag): ?>
    <div class="d-flex justify-content-end">
      <?php echo e($requisiciones->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 /home6/itzitacu/public_html/poa/laravel/resources/views/requisicion/listado/contenido.blade.php ENDPATH**/ ?>