یاد رکھیے! ہمارا مقصد صرف انعام دینا نہیں بلکہ بچیوں میں نماز کی مستقل پابندی کی عادت پیدا کرنا ہے۔
Har din ki date, Fajr ka time aur Parhi / Nahi parhi status.
Apni bachi ki history dekhne ke liye upar Fajr entry mein apna parent email likhein.
—
Jo bachiyan Fajr ki namaz parhti hain, unhi mein se lucky draw nikalta hai. Draw ke baad winner ka naam yahin announce hota hai — har bachi aur parent khud yahan aa kar dekh sakti hai.
Neeche box mein PIN likh kar Admin Panel Kholein wala button dabayein — tab hi Lucky Draw aur baqi tabdeeliyan hongi.
PIN daalne ke baad hi saara record khulega.
Registration sab ke liye open hai — jo bhi form bharti hai wo foran Approved ho jati hai, approval system khatam kar diya gaya hai. Har registered bachi ka pura record ek jagah: Participant's Name, Father's Name, Email ID, Mother's Whatsapp No, Participant's Age, Area, IlmoAmal Organization ke baray mein pehle suna hai ya nahi, aur status.
| Participant | Father's Name | Email ID | Mother's Whatsapp No | Participant's Age | Area | Heard about IlmoAmal | Status |
|---|
10 Days Streak = is 10-day cycle mein lagatar parhi gayi Fajr. Lucky draw ke baad naya cycle automatic shuru ho jata hai; jo bachi beech mein namaz miss kar de wo is cycle se automatic bahir ho jati hai.
| Bachi | 10 Days Streak | Kul streak | Aakhri entry | Aaj |
|---|
Yahan se koi bhi bachi select karein — us ka pura record khul jayega: kis din Fajr parhi, kis din nahi parhi, aur jis din parhi us din kitne baje uthi. Upar us ke parent ka record bhi dikhega.
—
Draw un bachiyon mein se hoga jo 10 din ki streak mukammal kar chuki hongi — aisi bachiyan neeche wali list mein automatic aa jati hain, kuch add nahi karna parta. 10th day draw nikalein — winner foran Parent Dashboard ke Lucky Draw hisse mein sab ko announce ho jayega, aur draw ke baad naya 10-day streak cycle automatic shuru ho jayega.
—
Agar registration ya entry page reload ke baad gayab ho jati hai to wajah database ki taraf hai: ya tables bani hi nahi hain, ya RLS (Row Level Security) policies anon role ko insert/select ki ijazat nahi de rahi. App ab save fail honay par khamosh nahi rehti — asal error neeche wale status box mein dikh jata hai (ye tafseel sirf Admin Panel mein hai, parents ko technical message nahi dikhta). Permanent fix: neeche wala SQL Supabase Dashboard → SQL Editor mein ek dafa chalayein. Ye tables (agar na hon) bana deta hai aur teeno tables par anon ke liye select / insert / update / delete ki policies laga deta hai. Existing data ko kuch nahi hota.
-- Banat Al-Fajar — Supabase one-time setup -- Supabase Dashboard > SQL Editor mein ye poora SQL ek dafa chalayein. create table if not exists public.kids ( id bigint generated always as identity primary key, name text not null unique, parent text, email text, whatsapp text, age text, area text, enrolled text, status text not null default 'approved', created_at timestamptz not null default now() ); create table if not exists public.fajr_entries ( id bigint generated always as identity primary key, kid text not null, date date not null, time text, prayed boolean not null default false, created_at timestamptz not null default now(), unique (kid, date) ); create table if not exists public.draw_winners ( id bigint generated always as identity primary key, kid text not null, date date not null, prize text, basis text, created_at timestamptz not null default now() ); alter table public.kids enable row level security; alter table public.fajr_entries enable row level security; alter table public.draw_winners enable row level security; drop policy if exists "banat anon read kids" on public.kids; create policy "banat anon read kids" on public.kids for select to anon using (true); drop policy if exists "banat anon insert kids" on public.kids; create policy "banat anon insert kids" on public.kids for insert to anon with check (true); drop policy if exists "banat anon update kids" on public.kids; create policy "banat anon update kids" on public.kids for update to anon using (true) with check (true); drop policy if exists "banat anon delete kids" on public.kids; create policy "banat anon delete kids" on public.kids for delete to anon using (true); drop policy if exists "banat anon read entries" on public.fajr_entries; create policy "banat anon read entries" on public.fajr_entries for select to anon using (true); drop policy if exists "banat anon insert entries" on public.fajr_entries; create policy "banat anon insert entries" on public.fajr_entries for insert to anon with check (true); drop policy if exists "banat anon update entries" on public.fajr_entries; create policy "banat anon update entries" on public.fajr_entries for update to anon using (true) with check (true); drop policy if exists "banat anon delete entries" on public.fajr_entries; create policy "banat anon delete entries" on public.fajr_entries for delete to anon using (true); drop policy if exists "banat anon read winners" on public.draw_winners; create policy "banat anon read winners" on public.draw_winners for select to anon using (true); drop policy if exists "banat anon insert winners" on public.draw_winners; create policy "banat anon insert winners" on public.draw_winners for insert to anon with check (true); drop policy if exists "banat anon update winners" on public.draw_winners; create policy "banat anon update winners" on public.draw_winners for update to anon using (true) with check (true); drop policy if exists "banat anon delete winners" on public.draw_winners; create policy "banat anon delete winners" on public.draw_winners for delete to anon using (true);
SQL chalane ke baad upar wala "Database dobara check karein" button dabayein — teeno tables ki asal haalat (kitni rows milein ya asal error) yahin nazar aa jayegi. Phir ek test registration kar ke page reload kar ke dekhein: naam dobara milna chahiye.
Har bachi ka status yahan dikhta hai — sab registered bachiyan Approved hain. Admin kisi bachi ko seedha yahan se bhi add kar sakta hai. Tabdeeliyan Supabase shared database mein bhi save hoti hain.
Banat Al-Fajar · Sirf bachiyon (girls) ke liye · Dates Karachi time ke mutabiq hain