<table class="table mt-3">
    <thead>
        <tr>
            <th>CEP</th>
            <th>Logradouro</th>
            <th>Bairro</th>
            <th>Número</th>
            <th>Cidade</th>
            <th>Mala direta</th>
            <th class="w-25">Ação</th>
        </tr>
    </thead>
    <tbody>
        <?php $__currentLoopData = $enderecos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $endereco): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <tr>
            <td><?php echo e($endereco->cep); ?></td>
            <td><?php echo e($endereco->logradouro); ?></td>
            <td><?php echo e($endereco->bairro); ?></td>
            <td><?php echo e($endereco->numero != 0 ? $endereco->numero : 'S/N'); ?></td>
            <td><?php echo e($endereco->cidade); ?></td>
            <td><?php echo e($endereco->aceita_mala_direta ? 'SIM' : 'NÃO'); ?></td>
            <td>
                <?php $__env->startComponent('components.button', [
                'route' => 'admin.servidores.enderecos.edit',
                'routeParams' => ['servidor' => $servidor, 'endereco' => $endereco],
                'class' => 'btn-primary',
                'label' => 'Visualizar/Editar',
                'icon' => 'edit'
                ]); ?>
                <?php echo $__env->renderComponent(); ?>
                <?php $__env->startComponent('components.button', [
                'class' => 'btn-danger btn-excluir-endereco',
                'icon' => 'x',
                'label' => 'Excluir',
                'route' => 'admin.servidores.enderecos.destroy',
                'routeParams' => ['servidor' => $servidor, 'endereco' => $endereco],
                ]); ?>
                <?php echo $__env->renderComponent(); ?>
            </td>
        </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table><?php /**PATH /home/gabriel/repos/sindserv/resources/views/components/listagem-endereco.blade.php ENDPATH**/ ?>