# UserPanel

> Presents the authenticated identity as a hero, its attributes grouped by section, and the RBAC roles and permissions.

[API reference](/docs/api/index.md) › [Debug Core](/docs/extensions/debug-core/reference/index.md) › [Panel](/docs/extensions/debug-core/reference/panel/index.md) › [User](/docs/extensions/debug-core/reference/panel/user/index.md) › UserPanel

| final class | `PHPForge\Debug\Panel\User\UserPanel` |
| --- | --- |
| Extends | `PHPForge\Debug\Panel` |
| Source | [`src/Panel/User/UserPanel.php`](https://github.com/php-forge/debug-core/blob/main/src/Panel/User/UserPanel.php#L21) |

Presents the authenticated identity as a hero, its attributes grouped by section, and the RBAC roles and permissions.

## Methods

| Method | Description | Defined by |
| --- | --- | --- |
| [`present()`](#method-present) | Builds the panel view from the decoded identity capture. | `UserPanel` |

## Constants

| Constant | Value | Description | Defined by |
| --- | --- | --- | --- |
| <span id="const-ICON"></span>`ICON` | `\PHPForge\Debug\Panel\User\UserMessage::ID->value` |  | `UserPanel` |
| <span id="const-ID"></span>`ID` | `\PHPForge\Debug\Panel\User\UserMessage::ID->value` |  | `UserPanel` |
| <span id="const-TITLE"></span>`TITLE` | `\PHPForge\Debug\Panel\User\UserMessage::TITLE->value` |  | `UserPanel` |

## Method details

### present() <span id="method-present"></span>

```php
public function present(array<string, mixed> $data): PHPForge\Debug\PanelView
```

Builds the panel view from the decoded identity capture.

An authenticated capture opens with a hero naming the user, its status, and its RBAC grant, followed by one
section per attribute bucket and one per RBAC list; a guest capture shows the empty state alone.

**Parameters**

| Parameter | Type | Description |
| --- | --- | --- |
| `$data` | `array<string, mixed>` | Decoded panel payload with a `data` key holding the tagged identity. |

**Returns**

[`PanelView`](https://github.com/php-forge/debug/blob/e4fbb8c3238a4d011ceef5e0094344abd50deaf4/src/PanelView.php): Identity hero, attribute sections, and the RBAC sections.