

<?php $__env->startSection('content'); ?>
<?php if(Auth::user()->nivel == 1): ?>
<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>
<?php endif; ?>
    <br>
    <br>
<script>
    $(document).ready(function() {
        $('#myTable').DataTable( {
                                $('#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="row">
    <div class="col-md-12">
        <div class=" cor_olinda_azul_bg">
            <h3 class=" p-5 text-white">
                <center>Solicitações enviadas à minha secretaria</center>
            </h3>
        </div>
        <table class="table table-striped" id="myTable">
            <thead>
              <tr>
                <th scope="col">Codigo</th>
                <th scope="col">Tipo</th>
                <th scope="col">Descrição</th>
                <th scope="col">Status</th>
                <th scope="col">Data de Criação</th>
                <th scope="col">Ação</th>
              </tr>
            </thead>
            <tbody>
                <?php $__currentLoopData = $protocolos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $protocolo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
              <tr>
                <th><?php echo e($protocolo->codigo); ?></th>
                <td><?php echo e($protocolo->tipo); ?></td>
                <td><?php echo e($protocolo->descricao); ?></td>
                <td><?php echo e($protocolo->status); ?></td>
                <td><?php echo e(date_format(date_create($protocolo->created_at),"d/m/Y")); ?></td>
                <td><a class="btn btn-info text-white" href="<?php echo e(url('/protocolo')); ?>/<?php echo e($protocolo->id); ?>"><i class="fa fa-eye 2x text-white"></i> &nbsp; Visualizar Detalhes</a></td>
              </tr>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
          </table>

    </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/home.blade.php ENDPATH**/ ?>