<?php
    $tipoTelefone = $tipoTelefone ?? 'fixo';
    $name = $name ?? 'telefone[]';
    $label = $label ?? "Telefone {$tipoTelefone}";
    $valor = $valor ?? '';
    $observacoes = $observacoes ?? '';
    $obrigatorio = $obrigatorio ?? false;
    $malaDiretaChecked = $malaDiretaChecked ?? false;
    $malaDireta = $malaDireta ?? false;
?>
<div class="form-group col-3">
    <label for="<?php echo e($name.'[numero]'); ?>"><?php echo e($label); ?> <?php echo e($obrigatorio ? '*' : ''); ?></label>
    <input <?php echo e($obrigatorio ? 'required' : ''); ?> type="text" name="<?php echo e($name.'[numero]'); ?>" class="form-control telefone-<?php echo e($tipoTelefone); ?> <?php $__errorArgs = [$name];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" value="<?php echo e(old('name') ?? $valor); ?>">
    <input type="text" name="<?php echo e($name.'[observacoes]'); ?>" class="form-control" value="<?php echo e(old('name') ?? $observacoes); ?>" maxlength="50" placeholder="Observações">

    <?php if($tipoTelefone == 'celular' && $malaDireta): ?>
    <div class="form-check">
        <input class="form-check-input" type="checkbox" value="" id="check-mala-direta" name="<?php echo e($name.'[mala_direta]'); ?>" <?php echo e($malaDiretaChecked ? 'checked' : ''); ?>>
        <label class="form-check-label" for="check-mala-direta">
            Enviar mala direta?
        </label>
    </div>
    <?php endif; ?>
</div><?php /**PATH /home/gabriel/repos/sindserv/resources/views/components/telefone.blade.php ENDPATH**/ ?>