

<?php $__env->startSection('content'); ?>
    <a href="<?php echo e(url('cadastrador/home')); ?>" title="Back"><button class="btn btn-warning  btn-hero btn-sm"><i class="fa fa-arrow-left"
                aria-hidden="true"></i> Voltar</button></a>
    <br>
    <br>
    <script>
        $(document).ready(function() {
                                $('#myTable').DataTable({
                "bJQueryUI": true,
                "oLanguage": {
                    "sProcessing":   "Processando...",
                    "sLengthMenu":   "Mostrar _MENU_ registros",
                    "sZeroRecords":  "Não foram encontrados resultados",
                    "sInfo":         "Mostrando de _START_ até _END_ de _TOTAL_ registros",
                    "sInfoEmpty":    "Mostrando de 0 até 0 de 0 registros",
                    "sInfoFiltered": "",
                    "sInfoPostFix":  "",
                    "sSearch":       "Buscar:",
                    "sUrl":          "",
                    "oPaginate": {
                        "sFirst":    "Primeiro",
                        "sPrevious": "Anterior",
                        "sNext":     "Seguinte",
                        "sLast":     "Último"
                    }
                }
            });
                            });
    </script>
    <div class="block">
        <div class="row">
            <div class="col-md-3 p-4">
                <a href="<?php echo e(url('/funcionario/create')); ?>" class="btn btn-warning  btn-hero">Adicionar Funcionario</a>
            </div>
            <div class="col-sm-11"></div>
        </div>
        <div class="row">
            <div class="col-md-12 p-4">
                <table class="table " id="myTable">
                    <thead>
                        <tr>
                            <th scope="col">Nome</th>
                            <th scope="col">Email</th>
                            <th scope="col">CPF</th>
                            <th scope="col">Matricula</th>
                            <th scope="col">Setor</th>
                            <th scope="col">Cargo</th>
                            <th scope="col">Ações</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $funcionarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $funcionario): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <th><?php echo e($funcionario->name); ?></th>
                                <td><?php echo e($funcionario->email); ?></td>
                                <td><?php echo e($funcionario->cpf); ?></td>
                                <td><?php echo e($funcionario->matricula); ?></td>
                                <td><?php echo e($funcionario->nome); ?></td>
                                <td><?php echo e($funcionario->cargo); ?></td>
                                <td>
                                    <button class="btn btn-info mr-5" onclick="window.location.href = '<?php echo e(url('funcionario', ['id' => $funcionario->idUser])); ?>'">Detalhes</button>
                                    <a class="btn btn-primary mr-5" href="<?php echo e(url('funcionario/edit', ['id' => $funcionario->idUser])); ?>">Editar</a>
                                    <a class="btn btn-danger mr-5" href="<?php echo e(url('funcionario/destroy', ['id' => $funcionario->idUser])); ?>">Remover</a>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                    </tbody>
                </table>

            </div>
        </div>
    </div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('modelo.modelo', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\ouvidoria\resources\views/funcionario/index.blade.php ENDPATH**/ ?>