
<?php $__env->startSection('contenido'); ?>
<div class="content">
	<div class="card">
        <div class="card-header header-elements-inline">
            <h5 class="card-title">LISTADO DE ZONAS</h5>
            <div class="header-elements">
                <div class="list-icons">
                    <a href="<?php echo e(route('zona.crear')); ?>" class="btn btn-link btn-float text-default">
                        <i class="icon-file-plus2 text-primary"></i><span>Nuevo zona</span>
                    </a>
                    <a class="list-icons-item" data-action="collapse"></a>
                </div>
            </div>
        </div>
        <table id="tablaJS" class="table datatable-basic">
            <thead>
                <tr>
                    <th>id</th>
                    <th>País</th>
                    <th>Departamento</th>
                    <th>Municipio</th>
                    <th>Zona</th>
                    <th class="text-center">Acciones</th>
                </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $zonas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $zona): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><?php echo e($zona['id']); ?></td>
                        <td><?php echo e($zona->paises?$zona->paises['descripcion_pais']:''); ?></td>
                        <td><?php echo e($zona->departamentos?$zona->departamentos['descripcion_departamento']:''); ?></td>
                        <td><?php echo e($zona->municipios?$zona->municipios['descripcion_municipio']:''); ?></td>
                        <td><?php echo e($zona['descripcion_zona']?$zona['descripcion_zona']:''); ?></td>
                        <td class="text-center">
                            <div class="list-icons">
                                <div class="dropdown">
                                    <a href="#" class="list-icons-item" data-toggle="dropdown">
                                        <i class="icon-menu9"></i>
                                    </a>

                                    <div class="dropdown-menu dropdown-menu-right">
                                        <a href="<?php echo e(route('zona.editar', $zona['id'])); ?>" class="dropdown-item"><i class="icon-pencil6"></i> Editar</a>
                                        <a href="<?php echo e(route('zona.eliminar', $zona['id'])); ?>" class="dropdown-item"><i class="icon-trash"></i> Eliminar</a>
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('javascript'); ?>
<script>
    jQuery( document ).ready(function() {

    });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\jarvis\resources\views/zonas/lista.blade.php ENDPATH**/ ?>