<div class="mt-3" id="mxc">
  <form class="form-inline md-form mr-auto mb-4" action="<?php echo e(url('ref')); ?>" method="GET">
    <input class="form-control mr-sm-2" type="text" placeholder="Referencia" name="refMX" aria-label="Search">
    <button class="btn btn-primary btn-rounded btn-sm my-0" type="submit">Buscar</button>
  </form>
  <div class="table-responsive">
    <table class="table mt-3" id="tablemx">
        <thead>
            <tr><th class="text-center titulo-tabla-color" colspan="14">REFERENCIAS MÉXICO</th></tr>

            <tr class="bg-priamry">
              <th class="columna">Editar</th>
              <th class="columna">Rectificar</th>
              <th class="columna">Detalles</th>
              <th class="columna">Folio</th>
              <th class="columna">Pedimento</th>
              <th class="columna">Cliente</th>
              <th class="columna">Tipo de operacion</th>
              <th class="columna">Tipo de carga</th>
              <th class="columna">Fecha ETA</th>
              <th class="columna">Fechar_Reg</th>
              <th class="columna">Ultimo pedido rectificado</th>
              <th class="columna">Usuario</th>
              <th class="columna">R</th>
              <th class="columna">Estatus</th>
            </tr>
        </thead>           
        <tbody>
            <?php $__currentLoopData = $MX; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <?php if($var->pedimento == "0000000"): ?>
                    <td><button disabled data-toggle="modal" data-target="#editarREFMX<?php echo e($var->id); ?>" class="btn btn-primary btn-sm"><i class="icon-pencil"></i></button></td>
                    <td><button disabled data-toggle="modal" data-target="#recRefMX<?php echo e($var->id); ?>" class="btn btn-secundary btn-sm"><i style="font-size:24px;" class="icon-post_add"></i></button></td>
                    <td><button disabled data-toggle="modal" data-target="#detallesRefMX<?php echo e($var->id); ?>" class="btn btn-info btn-sm"><i class="icon-th-small-outline"></i></button></td>
                    <?php else: ?>
                    <td><button data-toggle="modal" data-target="#editarREFMX<?php echo e($var->id); ?>" class="btn btn-primary btn-sm"><i class="icon-pencil"></i></button></td>
                    <td><button data-toggle="modal" data-target="#recRefMX<?php echo e($var->id); ?>" class="btn btn-secundary btn-sm"><i style="font-size:24px;" class="icon-post_add"></i></button></td>
                    <td><button data-toggle="modal" data-target="#detallesRefMX<?php echo e($var->id); ?>" class="btn btn-info btn-sm"><i class="icon-th-small-outline"></i></button></td>
                    <?php endif; ?>
                    <td><?php echo e($var->folio); ?></td>
                    <td><?php echo e($var->pedimento); ?></td>
                    <td><?php echo e($var->cliente); ?></td>
                    <td><?php echo e($var->tip_operacion); ?></td>
                    <td><?php echo e($var->tip_carga); ?></td>
                    <td><?php echo e($var->fecha_eta); ?></td>
                    <td><?php echo e($var->fecha_alt_ref); ?></td>
                    <td><?php echo e($var->ped_rect); ?></td>
                    <td><?php echo e($var->usuario); ?></td>
                    <td><?php echo e($var->Rectifiaciones); ?></td>
                    <td><?php echo e($var->estatus); ?></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
    <?php echo $MZ->render(); ?>

  </div>
</div>

<?php $__currentLoopData = $MX; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php echo $__env->make('referencias.modales.detalles.mdl_refDetallesMX', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('referencias.modales.editar.mdl_editarRefMX', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php echo $__env->make('rectificaciones.modelos.recReferencias.rec_referenciasMX', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<script>
    function myFunctionmx() {
      var input, filter, table, tr, td, i, txtValue;
      input = document.getElementById("inputBmx");
      filter = input.value.toUpperCase();
      table = document.getElementById("tablemx");
      tr = table.getElementsByTagName("tr");
      for (i = 0; i < tr.length; i++) {
        td = tr[i].getElementsByTagName("td")[3];
        if (td) {
          txtValue = td.textContent || td.innerText;
          if (txtValue.toUpperCase().indexOf(filter) > -1) {
            tr[i].style.display = "";
          } else {
            tr[i].style.display = "none";
          }
        }       
      }
    }
</script><?php /**PATH C:\xampp73\htdocs\Bitacora2022\resources\views/referencias/TBL-ListaRef/listMX.blade.php ENDPATH**/ ?>