SEC-07A · Section 7: Mosque Activities and Programmes
✓ Fully Implemented
Creating, Updating & Scheduling Mosque Activities (/mosque-admin/activities)
Step-by-step instructions for creating mosque activities, configuring one-time or recurring schedules (daily, weekly, monthly, custom), managing locations, posters, registration URLs, and occurrence exceptions.
1. Creating or Updating a Mosque Activity (/mosque-admin/activities)
- Open
/{lang}/mosque-admin/activities. - Select the Activity Category and Status (
draft,published,cancelled, orarchived). - Set the Start Date/Time (
start_at) and End Date/Time (end_at) inAsia/Kuala_Lumpurtime. - Enter the SpeakerName, Event Location / Venue, optional Participant Capacity, and optional external Registration URL (must start with
https://). - Upload an optional Activity Poster (JPG, PNG, or WEBP, max 3 MB).
- Fill in the Title, Summary, and Description across the BM, EN, and AR tabs, then click Save.
2. Configuring Programme Recurrence Schedules
- Under Recurrence Type, choose:
once: Single occurrence.daily: Repeats every N days.weekly: Repeats on selected weekdays (mon..sun).monthly: Repeats on a specific day of the month (1–31).custom: Comma-separated list of customYYYY-MM-DDdates (up to 60 dates).
- Optionally set an Until Date to bound the recurrence series.
3. Managing Single-Occurrence Exceptions
- Edit the recurring activity at
/mosque-admin/activities?edit={id}. - In the Occurrence Exceptions section, select a specific occurrence date, choose
cancelled,rescheduled(with new start/end times), orrestore, add an optional note, and click Save.
Input Fields & Options Reference
| Field | Table | Validation & Constraints |
|---|---|---|
category_id | mosque_activities | Must reference an active category in activity_categories. |
start_at & end_at | mosque_activities | end_at must be greater than or equal to start_at. |
registration_url | mosque_activities | Optional; only valid https:// URLs are accepted. |
poster | mosque_activities | JPG/PNG/WEBP ≤ 3 MB; served via /media/activity?id={id}. |
recurrence_type | activity_schedules | once, daily, weekly, monthly, or custom. |
Expected Results: The activity is published on `/masjid/{slug}/activities` and indexed in the national `/activities` directory and calendar.
Important Notes & Data Boundaries: Activity posters are stored outside the web root in `storage/activity-media/{mosque_id}/`.
Common Errors & Troubleshooting
If saving fails with an end-time error, ensure end_at is not earlier than start_at.