<div class="grid grid-cols-12 gap-4">
    <div class="col-span-6">
        <label for="nombre" class="form-label"><?php echo __('Nombre') ?></label>
        <?php echo $this->Form->control('nombre', ['id'=>'nombre','class'=>'form-input','label'=>false]); ?>
    </div>
    <div class="col-span-6">
        <label for="apellido" class="form-label"><?php echo __('Apellido') ?></label>
        <?php echo $this->Form->control('apellido', ['id'=>'apellido','class'=>'form-input','label'=>false]); ?>
    </div>
    <div class="col-span-6">
        <label for="email" class="form-label"><?php echo __('Correo') ?></label>
        <?php echo $this->Form->control('email', ['id'=>'email','class'=>'form-input','label'=>false]); ?>
    </div>
    <div class="col-span-6">
        <label for="clave" class="form-label"><?php echo __('Contraseña') ?></label>
        <?php echo $this->Form->control('clave', ['id'=>'clave', 'type'=>'password', 'class'=>'form-input','label'=>false]); ?>
    </div>
    <div class="flex flex-col col-span-12">
        <label for="rol_id" class="form-label"><?php echo __('Rol') ?></label>
        <?php echo $this->Form->control('rol_id', ['options' => $roles,'id'=>'rol_id','class'=>'form-input form-select w-full h-11','label'=>false,'empty'=>__('Seleccione una opción')]); ?>
    </div>
    <div class="flex flex-col col-span-12">
        <label for="empresa_id" class="form-label"><?php echo __('Empresa') ?></label>
        <?php echo $this->Form->control('empresa_id', ['options' => $companies,'id'=>'empresa_id','class'=>'form-input form-select w-full h-11','label'=>false,'empty'=>__('Seleccione una opción')]); ?>
    </div>
    <div class="flex items-center gap-2 select-none  col-span-12">
        <?php echo $this->Form->control('activo',['id'=>'activo','class'=>'check check-primary-solid size-4 before:text-sm before:leading-none','checked' => $user->activo ? true : false, 'label'=>false, 'div' => false]); ?>
        <label for="activo" class="leading-none font-medium text-gray-500 dark:text-dark-text text-sm"><?php echo __('Usuario activo') ?></label>
    </div>
    <div class="flex items-center gap-2 select-none col-span-12">
        <?php echo $this->Form->control('cambiar_clave',['id'=>'cambiar_clave','class'=>'check check-primary-solid size-4 before:text-sm before:leading-none','checked' => $user->change_password ? true : false, 'label'=>false, 'div' => false]); ?>
        <label for="cambiar_clave" class="leading-none font-medium text-gray-500 dark:text-dark-text text-sm"><?php echo __('Forzar cambio de contraseña') ?></label>
    </div>
</div>
