
<?php $__env->startSection('content'); ?>
    <div class="row match-height">
        <div class="col-md-12 col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title text-primary">Secretários</h4>
                    <p class="text-muted">Cadastro de Secretários no Sistema</p>
                    <a class="btn btn-outline-primary btn-block d-grid gap-2" type="button"
                        href="<?php echo e(route('secretarios.create')); ?>" role="button">Novo Secretário</a>
                </div>
                <div class="card">
                    <div class="card-body">

                        <!-- Table -->
                        <div class="table-responsive">
                            <table class="table table-sm table-hover">
                                <thead>
                                    <tr>
                                        <th scope="col">Código</th>
                                        <th scope="col">Nome</th>
                                        <th scope="col">Fone</th>   
                                        <th scope="col">Ações</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php $__currentLoopData = $secretarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $secretario): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td scope="row"><?php echo e($secretario->id); ?></td>
                                            <td scope="row"><?php echo e($secretario->nome); ?></td>
                                            <td scope="row"><?php echo e($secretario->fone); ?></td>
                                            <td>
                                                <a href="<?php echo e(route('secretarios.edit', $secretario->id)); ?>"
                                                    class="btn btn-sm btn-outline-warning">Editar</a>
                                                <form class="d-inline" method="POST"
                                                    action="<?php echo e(route('secretarios.destroy', $secretario->id)); ?>"
                                                    onSubmit="return confirm('Tem certeza que deseja excluir?')">
                                                    <?php echo method_field('DELETE'); ?>
                                                    <?php echo csrf_field(); ?>
                                                    <button class="btn btn-sm btn-outline-danger">Exluir</button>
                                                </form>
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                </tbody>
                            </table>
                        </div>
                        <?php echo e($secretarios->links()); ?>

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

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