The application includes a powerful, separate Admin Panel exclusively for Super Administrators (is_superadmin = true). It allows platform owners to manage the global health, data, and configuration of the SaaS.
- Admin Dashboard: High-level metrics tracking total users, active workspaces, daily signups, and plan distribution graphs.
- User Management: View, search, edit, and impersonate all registered users on the platform.
- Impersonation: Super admins can "login as" any user to troubleshoot issues exactly as the user sees them. A global persistent banner reminds the admin they are impersonating someone, providing a 1-click "Leave Impersonation" button.
- Workspace Management: View all workspaces, filter by active/deleted/trial states, and monitor member counts.
- Announcements: Create and schedule global banners to be displayed to all users across the app.
- Feature Flags: Manage system-wide or targeted rollouts using Laravel Pennant.
- Audit Logs: Monitor systemic activity and security events globally.
- Routing: All admin routes are prefixed with
/adminand protected by theApp\Http\Middleware\AdminMiddleware. - Frontend: The Admin Panel uses a distinct structural layout (
admin-layout.tsx) separating it entirely from the standard customer SaaS flow (app-layout.tsx). - Data Access: Controllers in
App\Http\Controllers\Admin\*bypass standard tenant scoping to provide a global view of all database records.