<div class="row">
  <div class="col-md-6 mb-3"><label class="form-label">Nombre completo</label><input name="full_name" class="form-control" required value="<?= e($item['full_name'] ?? '') ?>"></div>
  <div class="col-md-6 mb-3"><label class="form-label">Correo</label><input type="email" name="email" class="form-control" required value="<?= e($item['email'] ?? '') ?>"></div>
  <div class="col-md-4 mb-3"><label class="form-label">Rol</label><select name="role" class="form-select"><?php foreach (['admin'=>'Administrador','rrhh'=>'RRHH','supervisor'=>'Supervisor'] as $k=>$v): ?><option value="<?= e($k) ?>" <?= (($item['role'] ?? 'supervisor') == $k) ? 'selected' : '' ?>><?= e($v) ?></option><?php endforeach; ?></select></div>
  <div class="col-md-4 mb-3"><label class="form-label">Estado</label><select name="status" class="form-select"><?php foreach (['active'=>'Activo','inactive'=>'Inactivo'] as $k=>$v): ?><option value="<?= e($k) ?>" <?= (($item['status'] ?? 'active') == $k) ? 'selected' : '' ?>><?= e($v) ?></option><?php endforeach; ?></select></div>
  <div class="col-md-4 mb-3"><label class="form-label">Contraseña <?= isset($item) ? '(dejar vacío para mantener)' : '' ?></label><input type="password" name="password" class="form-control" <?= isset($item) ? '' : 'required' ?>></div>
</div>
