<?php $__env->startSection('title', 'Autorizar Anulacion de Egresos'); ?>

<?php $__env->startSection('content'); ?>
<style>
    .panel {
        background: #fff;
        border: 1px solid #d9dee3;
        border-radius: 6px;
        margin-bottom: 20px;
        overflow: hidden;
    }

    .panel-primary {
        border-color: #374c62;
    }

    .panel-primary > .panel-heading {
        background: #374c62;
        color: #fff;
        padding: 12px 15px;
        font-weight: 700;
        font-size: 15px;
    }

    .panel-body {
        padding: 18px;
    }

    thead th,
    tbody td {
        vertical-align: middle;
        text-align: center;
    }
</style>

<div class="container">
    <div class="row justify-content-center">
        <div class="col-lg-10">
            <div class="panel panel-primary shadow-sm">
                <div class="panel-heading">LISTA DE EGRESOS POR ANULAR</div>

                <div class="panel-body">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover table-sm" style="font-size: 12px;">
                            <thead>
                                <tr>
                                    <th>ITEM</th>
                                    <th>FECHA</th>
                                    <th>SERIE-NUMERO</th>
                                    <th>CODIGO</th>
                                    <th>MOTIVO DE ANULACION</th>
                                    <th>ACCION</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td><?php echo e($loop->iteration); ?></td>
                                        <td><?php echo e(\Carbon\Carbon::parse($item->fecha_movimiento)->format('d-m-Y')); ?></td>
                                        <td><?php echo e($item->serie); ?>-<?php echo e($item->numero); ?></td>
                                        <td><?php echo e($item->codigo); ?></td>
                                        <td class="text-start"><?php echo e($item->motivo_anulacion); ?></td>
                                        <td>
                                            <a href="<?php echo e(route('admin.salida-anular.edit', $item->id)); ?>" class="btn btn-sm btn-danger">
                                                <i class="fas fa-ban me-1"></i>Autorizar
                                            </a>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="6">No existen egresos pendientes de anulacion.</td>
                                    </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\laragon\www\seminario\resources\views/Caja/salida_anular/index.blade.php ENDPATH**/ ?>