<?php $__env->startSection('headers'); ?>
<style>
    td, th
    {
        text-align:center;
    }
    .oversized-col
    {
        max-width:150px;
        overflow:hidden;
    }
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Page Heading -->
<header class="bg-white shadow">
    <div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
        <h2 class="font-semibold text-xl text-gray-800 leading-tight">
            Ordenes de carga.
        </h2>
    </div>
</header>

<!-- Page Content -->

<div class="py-12">
<div class="max-w-8xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 bg-white border-b border-gray-200">

        <div class="col-lg-2 controlDiv" style="position:relative;top:30px;">
        <?php if($can_create_oc): ?> <a href="/ext/ordenes_de_carga/create" class="btn btn-success" role="button">Crear orden <i class="fas fa-plus"></i></a> <?php endif; ?>
        </div>
        <br>
        <br>

        <h5 class="separtor">Lista:</h5>

        <table class="table table-sm table-striped table-bordered table-hover">
            <thead>
                <tr>
                    <th scope="col">Orden #</th>
                    <th scope="col">Regimen</th>
                    <th scope="col">Fecha</th>
                    <th scope="col">Peso Neto</th>
                    <th scope="col">Notas</th>
                    <th scope="col">Status</th>
                    <th scope="col">Descargar</th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $load_orders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $load_order): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr id="oc_row_<?php echo e($load_order->id); ?>">
                    <td>OC-<?php echo e($load_order->id); ?></td>
                    <td><?php echo e($load_order->regimen); ?></td>
                    <td><?php echo e($load_order->cdate); ?></td>
                    <td><?php echo e($load_order->get_peso_neto()); ?></td>
                    <td><?php echo e($load_order->notes); ?></td>
                    <td><?php echo e($load_order->status); ?></td>
                    <td><a href="/ext/download_oc/<?php echo e($load_order->id); ?>" class="btn" role="button"><i style="color:#34a338" class="fas fa-file-excel"></i></a></td>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>

function descargarXLS()
{
    let path = "/ext/entradas_xls?txtRango="+$("#txtRango").val()+"&txtTracking="+$("#txtTracking").val();
    location.href = path;   
}

</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.common_customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/juanjacobo/Documents/GitHub/goDaddy/ecexv2/ecex-portal/resources/views/customer/ordenes_de_carga/index.blade.php ENDPATH**/ ?>