@if (isAdmin()) {

## Admin Panel

@switch (activeTab()) { @case ('settings') {

### Room Settings

Room Name
Description

Private Room

Require approval to join

Max Users (0 = unlimited)

### Danger Zone

} @case ('members') {

### Server Members

@if (membersFiltered().length === 0) {

No other members online

} @else { @for (user of membersFiltered(); track user.id) {

{{ user.displayName }}

@if (user.role === 'host') { Owner } @else if (user.role === 'admin') { Admin } @else if (user.role === 'moderator') { Mod }
@if (user.role !== 'host') {
}
} }
} @case ('bans') {

### Banned Users

@if (bannedUsers().length === 0) {

No banned users

} @else { @for (ban of bannedUsers(); track ban.oderId) {
{{ ban.displayName?.charAt(0)?.toUpperCase() || '?' }}

{{ ban.displayName || 'Unknown User' }}

@if (ban.reason) {

Reason: {{ ban.reason }}

} @if (ban.expiresAt) {

Expires: {{ formatExpiry(ban.expiresAt) }}

} @else {

Permanent

}
} }
} @case ('permissions') {

### Room Permissions

Allow Voice Chat

Users can join voice channels

Allow Screen Share

Users can share their screen

Allow File Uploads

Users can upload files

Slow Mode

Limit message frequency

Admins Can Manage Rooms

Allow admins to create/modify chat & voice rooms

Moderators Can Manage Rooms

Allow moderators to create/modify chat & voice rooms

Admins Can Change Server Icon

Grant icon management to admins

Moderators Can Change Server Icon

Grant icon management to moderators

} }
@if (showDeleteConfirm()) {

Are you sure you want to delete this room? This action cannot be undone.

} } @else {

You don't have admin permissions

}