SAFE RESOURCES LTD - V7 UPGRADE
================================

This package preserves the existing citytec_safe_resources records.

BEFORE UPGRADING
1. Download a database backup and keep a ZIP of the existing system folder.

DATABASE
1. Open phpMyAdmin and select citytec_safe_resources.
2. Import database/update_v7.sql once.
3. Do not import security_management.sql or old update files again.

FILES
1. Keep the current config/config.php on the server; it contains working credentials.
2. Upload the V7 files over security_management_system.
3. Do not replace config/config.php.
4. Never upload storage/php-errors.log or a password-reset file.

AFTER UPGRADING
1. Verify Dashboard, Guards, Roster, Attendance and Finance.
2. Open Account > Users & Roles and create a daily-use account.
3. Open Operations > Roster Groups & Settings.
4. Keep the safe default of 6 duty days, maximum 6 regular guards and one required reliever.
5. Create each group, assign its post(s), choose the reliever, then select every regular guard's fixed Day/Night shift and primary post.
6. Generate rosters as Draft. Publishing is blocked until Day/Night alerts are resolved.
7. Change the development admin password before final production use.

ROSTER CODES
- D: regular Day duty
- N: regular Night duty
- OFF: scheduled rest day
- R-D / R-N: reliever covering the absent guard's Day/Night position

ROSTER DISPLAY ORDER
- Groups appear in the order they were created.
- Regular group members are listed together below the group heading.
- The designated reliever appears after the regular members.
- Ungrouped guards appear last so they can be identified and configured.

V7 NAVIGATION AND RELATIONSHIPS
- Use the top search box to find guards, clients, posts and groups from any page.
- Guard search accepts name, guard number, phone, NIN, bank account, post or group.
- Open a guard profile to see group, fixed shift, primary post, live deployment and attendance.
- Open a roster group to see its members, reliever, covered posts and Day/Night totals.
- Roster filters show a complete group and do not split groups across pagination pages.
- Viewer accounts can inspect records; Manager and Administrator accounts maintain master records.

ROLES
- Administrator: full access, users, audit and backups.
- Manager: operations and finance editing.
- Supervisor: operational access.
- Viewer: read-only finance access.
