Admin Guide
Complete documentation for the GymHub admin panel.
The GymHub admin panel gives administrators full control over classes, users, bookings, content, and site settings. This guide covers every section of the panel.
Accessing the Admin Panel
To access the admin panel, your account must have the admin role.
Log in with an admin account and the admin panel link will appear in your dropdown menu.
You can also go directly to:
https://seehrar.myweb.cs.uwindsor.ca/project/admin/dashboard.php
Non-admin accounts are automatically redirected to the login page when they try to visit any admin URL.
Dashboard
The dashboard (admin/dashboard.php) is your overview page. It shows:
- 4 stat cards — total members, confirmed bookings, active classes, open questions
- Total revenue — sum of all confirmed booking prices
- Bar chart — bookings broken down by class category (Chart.js)
- Recent bookings table — latest 8 bookings with status
- New members table — most recently registered accounts
- Quick action buttons — shortcuts to common tasks
Managing Classes
Go to Manage Classes in the sidebar (admin/classes.php).
Adding a New Class
Click the ➕ Add Class button at the top right of the classes table.
Fill in the form: title, category, description, instructor, capacity, duration, price, and the two option choices (e.g. Beginner / Advanced).
Set Status to Active so the class appears in the member catalog. Click Add Class.
Editing or Deactivating a Class
- Click Edit next to any class to update its details.
- Click Deactivate to hide the class from members without deleting it. Click Activate to bring it back.
Managing Users
Go to Manage Users (admin/users.php) to see all registered accounts.
- Disable — Prevents the user from logging in. Their data is kept. Click Enable to restore access.
- Make Admin — Promotes a member to admin role, giving full admin panel access. Use with caution.
- Make Member — Demotes an admin back to regular member role.
- You cannot modify your own account from this panel — this prevents accidental lockout.
- Use the search bar to find users by name or email.
Answering Trainer Questions
Go to Trainer Q&A (admin/qa.php) to see
all questions submitted by members via the Ask a Trainer page.
- The default filter shows Open questions (unanswered).
- Type your response in the answer box and click Submit Answer. The question status changes to "answered" automatically.
- You can update a previous answer by resubmitting the form.
- Click Close Question to archive a question without answering it.
Switching Themes
Go to Theme Switcher (admin/theme.php).
Three themes are available:
- PowerZone — Dark charcoal with electric orange (default)
- ZenFit — Light white with sage green (calm/wellness feel)
- BlueSteel — Deep navy with steel blue (premium/professional)
Click Apply Theme on any card. The change takes effect immediately across the entire site for all visitors. The active theme name is stored in the database (site_settings table).
Site Monitoring
Go to Site Monitoring (admin/monitoring.php)
to see real-time status checks for all major site services.
- 🟢 Online — Service is working correctly
- 🟡 Warning — Working but something needs attention (e.g. no upcoming schedule)
- 🔴 Offline — Service has failed and needs immediate attention
Click 🔄 Refresh to re-run all checks. The server information table at the bottom shows PHP version, server details, and current configuration.