# Admin panel guide

## Sign in

1. Open `/login` (locally: `http://localhost/Niyomito%20Group/public/login`).
2. Sign in with the values configured as `SEED_ADMIN_EMAIL` and `SEED_ADMIN_PASSWORD` before the first database installation.
3. Open `/control`. If `ADMIN_REQUIRE_2FA=true`, the development code is written to `storage/logs/raw-php.log`; production must deliver this code through an approved email/SMS provider.

The current local seed is `admin@niyomito.com`. Never keep the seed password on a public server. Use **Forgot password** immediately after first sign-in to set a private password.

## Control-center sections

- Overview: site and operations metrics.
- Pages, services, posts, partners, testimonials and FAQs: public content management.
- Inquiries, careers and support: incoming requests, applications and ticket workflows.
- Campaigns, affiliates, conversions and payouts: referral operations.
- Users: invite staff, marketing users and administrators.
- Settings: public contact and site settings (super-admin only).
- Audit log: records sensitive control-center actions.

Roles are `super-admin`, `admin`, `staff`, `marketing`, `affiliate`, and `customer`. Give staff the smallest role needed for their work.

## Important behavior

Running `php database/install.php` again updates the schema and preserves an existing admin password. `--fresh` deletes all application data and must only be used for a deliberate rebuild with a backup.

