


<?php $__env->startSection('content'); ?>
<h2>Crear Usuario</h2>

<form action="<?php echo e(route('superadmin.usuarios.store')); ?>" method="POST">
    <?php echo csrf_field(); ?>

    <div class="mb-3">
        <label class="form-label">Nombre</label>
        <input type="text" name="name" class="form-control" required>
    </div>

    <div class="mb-3">
        <label class="form-label">Correo Electrónico</label>
        <input type="email" name="email" class="form-control" required>
    </div>

    <div class="mb-3">
        <label class="form-label">Contraseña</label>
        <input type="password" name="password" class="form-control" required>
    </div>

    <div class="mb-3">
        <label class="form-label">Rol</label>
        <select name="role" class="form-select" required>
            <option value="">Seleccione un rol</option>
            <option value="empresa">Empresa</option>
            <option value="empleado">Empleado</option>
            <option value="usuario_final">Usuario Final</option>
            <option value="operador">Operador</option>
            <option value="seguridad">Seguridad</option>
        </select>
    </div>

    <div class="mb-3">
        <label class="form-label">Empresa (opcional)</label>
        <select name="empresa_id" class="form-select">
            <option value="">Sin empresa</option>
            <?php $__currentLoopData = $empresas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $empresa): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($empresa->id); ?>"><?php echo e($empresa->nombre); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>

    <button type="submit" class="btn btn-primary">Guardar</button>
    <a href="<?php echo e(route('superadmin.usuarios.index')); ?>" class="btn btn-secondary">Cancelar</a>
</form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.dashboard', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/ofertasv/public_html/botondepanico/resources/views/superadmin/usuarios/create.blade.php ENDPATH**/ ?>