<?php $__env->startPush('js'); ?>
    <script src="<?php echo e(asset('js/admin/telefones.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php
    $name = $name ?? 'telefone';
    $malaDireta = $malaDireta ?? false;
    $container = $container ?? 'form-row';
?>
<div class="div-telefones <?php echo e($container); ?>">
    <?php $__currentLoopData = $telefones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i => $telefone): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if($telefone->eTelefoneFixo()): ?>
            <?php echo $__env->make('components.telefone', ['name' => "{$name}[$i]", 'tipoTelefone' => 'fixo', 
                'valor' => old("$name.$i.numero") ?? $telefone->valor, 'observacoes' => old("$name.$i.observacoes") ?? $telefone->observacoes], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php else: ?>
            <?php echo $__env->make('components.telefone', ['name' => "{$name}[$i]", 'tipoTelefone' => 'celular', 'malaDireta' => $malaDireta,
                'valor' => old("$name.$i.numero") ?? $telefone->valor, 'malaDiretaChecked' => $telefone->aceita_mala_direta,
                'observacoes' => old("$name.$i.observacoes") ?? $telefone->observacoes], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div><?php /**PATH /home/gabriel/repos/sindserv/resources/views/components/telefones.blade.php ENDPATH**/ ?>