

<?php $__env->startSection('title', 'Crear Parámetro'); ?>

<?php $__env->startSection('content'); ?>

<div class="container d-flex justify-content-center mt-4">
    <div class="card shadow p-4 mg-card w-100" style="max-width: 600px;">

        <div class="d-flex justify-content-between align-items-center mb-3">
            <h5 class="mb-0">Nuevo Parámetro</h5>
            <a href="<?php echo e(route('parametros.index')); ?>" class="btn btn-sm btn-outline-secondary">← Volver</a>
        </div>

        <form action="<?php echo e(route('parametros.store')); ?>" method="POST" class="mg-form">
            <?php echo csrf_field(); ?>

            <div class="mb-3">
                <label for="clave" class="form-label">Clave *</label>
                <input type="text" name="clave" id="clave"
                    class="form-control <?php $__errorArgs = ['clave'];
$__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('clave')); ?>"
                    placeholder="Ej: monto_por_falta" required>
                <?php $__errorArgs = ['clave'];
$__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="mb-3">
                <label for="descripcion" class="form-label">Descripción</label>
                <input type="text" name="descripcion" id="descripcion"
                    class="form-control"
                    value="<?php echo e(old('descripcion')); ?>"
                    placeholder="Descripción del parámetro">
            </div>

            <div class="mb-3">
                <label for="valor" class="form-label">Valor (Bs)</label>
                <input type="number" name="valor" id="valor"
                    class="form-control <?php $__errorArgs = ['valor'];
$__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('valor')); ?>"
                    step="0.01" min="0">
                <?php $__errorArgs = ['valor'];
$__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="d-flex justify-content-end gap-2">
                <a href="<?php echo e(route('parametros.index')); ?>" class="btn btn-outline-secondary">Cancelar</a>
                <button type="submit" class="btn btn-primary">Guardar</button>
            </div>

        </form>

    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\controlPersonal\resources\views/parametros/create.blade.php ENDPATH**/ ?>