Spaces:
Running
Running
Ctrl+K
Create a full-stack B2B web application for internal use by government employees managing monthly social benefits (ESP) in Kyrgyzstan's Ministry of Labor. The app is part of the AIS ESSO system and focuses on employee workflows only, with no public access for citizens. Implement a minimalistic, responsive UI (light theme with blue accents, mobile-friendly, tables for data display, forms for input, buttons for actions like approve/annul, search/filters in lists). Include user authentication with role-based access: specialist_appointment (registers appeals, fills forms, appoints), chief (approves, annuls), specialist_payments (creates orders, statements), specialist_finance (creates applications), dsz_specialist (monitors, summarizes), accountant (sends to BuhUchet), admin (edits directories). Include modules: Appointment (registration, anketa filling, appointment calculation, approvals, rejections), Payments (order creation with account uniqueness check, period calculation with I/II sections, cessations, statements), Financing (applications aggregation by categories/regions), DSZ processes (monitoring, republic summaries). Store data in tables: applications (PIN, passport, status, history in separate statuses table), appointments (sum, period, category), payment_orders (account details, schedule, sections I/II), statements (aggregated orders, export), finance_applications (totals by categories/sections), directories (tariffs with validity, categories, reasons for cessation/rejection, payment methods bank/post, statuses new/appointed/approved/ceased/annulled, notifications types). Implement role-based access control (RBAC): specialists create/view/edit in their modules, chiefs approve/annul with checks for linked documents integrity (e.g., no annul if approved downstream). Add placeholders for Tunduk API integrations (JSON requests for data fetch: passportDataByPSN with PIN/series/number, MSEK, GRS passport/ZAGS/ASB, simulate auto-fill). Add email/SMS placeholders for notifications (e.g., cessation). Start with login page and dashboard showing role-specific folders like 'Incoming Cases', 'New', 'Appointed', 'Approved', 'Ceased', with audit logs for all actions. Ensure data migration placeholder for importing from old systems via CSV, preserving integrity.
68356c3 verified