Platform Admin | root
arrow_back
admin_panel_settings Platform Admin
Admin Only
schedule {new Date().toLocaleDateString("en-US", { weekday: "long", month: "long", day: "numeric", year: "numeric", })}
(activeTab = v)} /> {#if activeTab === "overview"}

Recent Organizations

{#each data.organizations.slice(0, 5) as org}

{org.name}

/{org.slug}

{org.memberCount} members {org.eventCount} events
{/each} {#if data.organizations.length === 0}

No organizations yet

{/if}

Recent Users

{#each data.profiles.slice(0, 5) as profile}

{profile.full_name ?? "No name"}

{profile.email}

{#if profile.is_platform_admin} Admin {/if} {timeAgo(profile.created_at)}
{/each} {#if data.profiles.length === 0}

No users yet

{/if}

Recent Events

{#if data.events.length > 0}
{#each data.events.slice(0, 8) as event} {/each}
Event Organization Status Dates Created

{event.name}

/{event.slug}

{orgMap[event.org_id]?.name ?? "-"} {event.status} {formatDate(event.start_date)} - {formatDate(event.end_date)} {timeAgo(event.created_at)}
{:else}

No events yet

{/if}

Event Status Guide

planning

Event is being prepared. Team is setting up departments, tasks, and logistics.

active

Event is currently live/happening. All systems go.

completed

Event has finished. Data is preserved for review.

archived

Event is hidden from normal views. Can be restored.

{:else if activeTab === "organizations"}
{#each filteredOrgs as org} {/each} {#if filteredOrgs.length === 0} {/if}
Organization Slug Members Events Created Actions
{org.name}
/{org.slug} {org.memberCount} {org.eventCount} {formatDate(org.created_at)}
{orgSearch ? "No organizations match your search" : "No organizations yet"}

{filteredOrgs.length} of {data.organizations.length} organizations

{:else if activeTab === "users"}
{#each filteredUsers as profile} {/each} {#if filteredUsers.length === 0} {/if}
User Email Organizations Role Joined Actions
{profile.full_name ?? "No name"}
{profile.email} {userOrgCounts()[profile.id] ?? 0} {#if profile.is_platform_admin} Platform Admin {:else} User {/if} {formatDate(profile.created_at)}
{#if profile.is_platform_admin && profile.id !== data.currentUserId}
{:else if !profile.is_platform_admin}
{/if} {#if profile.id !== data.currentUserId} {/if}
{userSearch ? "No users match your search" : "No users yet"}

{filteredUsers.length} of {data.profiles.length} users

{:else if activeTab === "events"}
{#each filteredEvents as event} {/each} {#if filteredEvents.length === 0} {/if}
Event Organization Status Start End Created Actions

{event.name}

/{event.slug}

{orgMap[event.org_id]?.name ?? "-"}
{formatDate(event.start_date)} {formatDate(event.end_date)} {timeAgo(event.created_at)}
{eventSearch ? "No events match your search" : "No events yet"}

{filteredEvents.length} of {data.events.length} events

{/if}
(confirmModal = null)} title="Confirm Delete" > {#if confirmModal}

Are you sure you want to delete {confirmModal.name}?

This action cannot be undone. All associated data will be permanently removed.

{ actionLoading = true; return enhanceAction(); }} >
{/if}
(editOrgModal = null)} title="Edit Organization" > {#if editOrgModal}
{ actionLoading = true; return enhanceAction(); }} class="space-y-4" >
{/if}
(editUserModal = null)} title="Edit User" > {#if editUserModal}
{ actionLoading = true; return enhanceAction(); }} class="space-y-4" >
{/if}
(editEventModal = null)} title="Edit Event" > {#if editEventModal}
{ actionLoading = true; return enhanceAction(); }} class="space-y-4" >
{/if}