SEC-05A
✓ Fully Implemented
Registering a Mosque (/register-mosque) & Platform Verification (/admin/mosques)
Step-by-step instructions for submitting a public mosque registration application with supporting documents, and how platform administrators verify and approve mosques.
Step-by-Step Instructions
1. Submitting a Mosque Registration Application (/register-mosque)
- Click Register Mosque in the top navigation or visit
/{lang}/register-mosque. - Under Mosque Details:
- Enter the official Mosque Name (required, max 180 chars) and select Mosque Type (
Masjid,Surau, orSurau Jumaat). - Enter an optional Reference Number (up to 100 chars).
- Select State and District (the District list filters automatically to match the chosen State).
- Select the optional Official Prayer Zone (auto-suggested based on State and District).
- Fill in Address, 5-digit Postcode, Latitude (-90 to 90), Longitude (-180 to 180), Telephone, and Email.
- Enter the official Mosque Name (required, max 180 chars) and select Mosque Type (
- Under Applicant Details, enter Applicant Name, Applicant Position, Applicant Contact, and Applicant Email (
applicant_email). - Select 1 to 3 Supporting Documents (PDF, JPEG, or PNG, max 5 MB per file).
- Click Submit. The application is saved with status
pending.
2. Reviewing & Approving Mosque Applications (/admin/mosques)
- Sign in with
mosques.reviewpermission (Super Admin or Portal Admin) and open/{lang}/admin/mosques. - Click the supporting document links on a
pendingmosque to inspect files securely via/admin/mosque-document?id={doc_id}. - Verify that an active
usersaccount exists matching the application’sapplicant_email. - Enter a Review Note (mandatory when rejecting) and click:
- Approve: Sets
mosques.status = 'active', assigns the applicant user asmosque_admininmosque_users, and automatically starts the 1-Month Free Trial on themosque-standardplan. - Reject: Sets
mosques.status = 'rejected'and logs the rejection note.
- Approve: Sets
Verified Screenshots & UI Reference
Input Fields & Options Reference
| Form Field | Requirement | Validation Rules |
|---|---|---|
name | Required | Official mosque name (max 180 chars); generates a unique URL slug. |
mosque_type | Required | Allowed values: masjid, surau, or surau_jumaat. |
state_id & district_id | Required | District must belong to the selected State (enforced server-side). |
postcode | Required | Exact 5-digit numeric postcode (^\d{5}$). |
latitude & longitude | Required | Decimal coordinates: Latitude -90..90, Longitude -180..180. |
applicant_email | Required | Email address of the user who will be granted mosque_admin upon approval. |
documents[] | Required | 1 to 3 files; allowed MIME types: application/pdf, image/jpeg, image/png; max 5 MB each. |
Expected Results
The mosque transitions to `active`, the applicant becomes `mosque_admin`, the microsite `/masjid/{slug}` goes live, and the 1-month free trial starts.
Important Notes & Data Boundaries: Uploaded registration documents are stored outside the public web root in `storage/mosque-documents/` and served only to authorized reviewers.
Common Errors & Troubleshooting
If approval fails stating that the applicant user account must be created first, provision the account via php database/manage.php create-user with the exact applicant_email and retry approval.