
<div class="mb-4">
    <label class="form-label" for="id">Código de Distrito</label>
    <div class="input-group">
        <span class="input-group-text bg-light border-0">
            <i class="fa fa-fingerprint text-muted"></i>
        </span>
        <input type="text" name="id" id="id" 
               class="form-control form-control-alt <?php echo e($distrito ? 'bg-light' : ''); ?>"
               value="<?php echo e(old('id', $distrito->id ?? $nuevoId ?? '')); ?>"
               <?php echo e($distrito ? 'readonly' : ''); ?> required>
    </div>
    <?php if($distrito): ?>
        <div class="form-text fs-xs text-muted">El código no es editable después de la creación.</div>
    <?php endif; ?>
</div>

<div class="row">
    
    <div class="col-md-7 mb-4">
        <label class="form-label" for="ddescripcion">Descripción / Nombre <span class="text-danger">*</span></label>
        <input type="text" name="ddescripcion" id="ddescripcion" 
               class="form-control form-control-alt <?php $__errorArgs = ['ddescripcion'];
$__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('ddescripcion', $distrito->nombre ?? '')); ?>"
               maxlength="50" style="text-transform:uppercase" placeholder="EJ: DISTRITO NORTE" required>
        <?php $__errorArgs = ['ddescripcion'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>

    
    <div class="col-md-5 mb-4">
        <label class="form-label" for="nombrecorto">Nombre Corto <span class="text-danger">*</span></label>
        <input type="text" name="nombrecorto" id="nombrecorto" 
               class="form-control form-control-alt <?php $__errorArgs = ['nombrecorto'];
$__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('nombrecorto', $distrito->nomcorto ?? '')); ?>"
               maxlength="50" style="text-transform:uppercase" placeholder="EJ: DN-01" required>
        <?php $__errorArgs = ['nombrecorto'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>
</div>


<div class="mb-4">
    <label class="form-label" for="cboUrbanizaciones">Urbanización Asociada <span class="text-danger">*</span></label>
    <select name="cboUrbanizaciones" id="cboUrbanizaciones" 
            class="form-select form-control-alt <?php $__errorArgs = ['cboUrbanizaciones'];
$__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); ?>" required>
        <option value="">Seleccione una Urbanización</option>
        <?php $__currentLoopData = $urbanizaciones; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $u): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($u->id); ?>"
                <?php echo e(old('cboUrbanizaciones', $distrito->relacion ?? 0) == $u->id ? 'selected' : ''); ?>>
                <?php echo e($u->nombre); ?>

            </option>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </select>
    <?php $__errorArgs = ['cboUrbanizaciones'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
</div>


<div class="block block-rounded block-bordered bg-body-extra-light mb-4">
    <div class="block-content">
        <div class="row">
            <div class="col-md-6 mb-4">
                <label class="form-label">Precio Calle</label>
                <div class="input-group">
                    <span class="input-group-text bg-transparent"><i class="fa fa-road"></i></span>
                    <input type="number" step="0.01" name="dpcalle"
                           class="form-control form-control-alt <?php $__errorArgs = ['dpcalle'];
$__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('dpcalle', $distrito->Calle ?? '')); ?>" required>
                </div>
                <?php $__errorArgs = ['dpcalle'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback d-block"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <div class="col-md-6 mb-4">
                <label class="form-label">Precio Avenida</label>
                <div class="input-group">
                    <span class="input-group-text bg-transparent"><i class="fa fa-car-side"></i></span>
                    <input type="number" step="0.01" name="dpavenida"
                           class="form-control form-control-alt <?php $__errorArgs = ['dpavenida'];
$__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('dpavenida', $distrito->Avenida ?? '')); ?>" required>
                </div>
                <?php $__errorArgs = ['dpavenida'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback d-block"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <div class="col-md-6 mb-4">
                <label class="form-label">Precio Área Verde</label>
                <div class="input-group">
                    <span class="input-group-text bg-transparent"><i class="fa fa-tree"></i></span>
                    <input type="number" step="0.01" name="dareaverde"
                           class="form-control form-control-alt <?php $__errorArgs = ['dareaverde'];
$__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('dareaverde', $distrito->AreaVerde ?? '')); ?>" required>
                </div>
                <?php $__errorArgs = ['dareaverde'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback d-block"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>

            <div class="col-md-6 mb-4">
                <label class="form-label">% de Costo</label>
                <div class="input-group">
                    <span class="input-group-text bg-transparent"><i class="fa fa-percentage"></i></span>
                    <input type="number" step="0.01" name="ddecosto"
                           class="form-control form-control-alt <?php $__errorArgs = ['ddecosto'];
$__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('ddecosto', $distrito->Costporc ?? '')); ?>" required>
                </div>
                <?php $__errorArgs = ['ddecosto'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback d-block"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
        </div>
    </div>
</div><?php /**PATH /var/www/proyect-laravel/cosmos-app/resources/views/distritos/_form.blade.php ENDPATH**/ ?>