0%
balqalam Logo
balqalam
FeaturesCommunityPricingDocumentation
Login
  • Introduction
  • Help center
  • Common questions
  • Get Started
  • Localhost
  • Architecture
  • Structure
  • Pattern
  • Page
  • Layout
  • Content
  • Types
  • Config
  • Actions
  • Queries
  • Authorization
  • Validation
  • Form
  • Table
  • Detail
  • Card
  • Util
  • Hooks
  • List Params
  • Views
  • README.md
  • ISSUE.md
  • Technology Stack
  • Database
  • File
  • CDN Assets
  • Entry Points
  • Dashboard
  • Authentication
  • Credentials
  • OAuth
  • Flow Diagrams
  • Multi-Tenancy
  • Offline
  • Onboarding
  • Onboarding Videos
  • Add Values
  • Admission
  • Application
  • Attendance
  • Compliance
  • Profile
  • Exams
  • Exam Wizard
  • Timetable
  • Classrooms
  • Notifications
  • Conference
  • LMS (Lumos)
  • Finance
  • Fee Management
  • Invoice
  • Wallet
  • Salary
  • Payroll
  • Timesheet
  • Expenses
  • Budget
  • Receipt
  • Accounts
  • Banking
  • Reports
  • Dashboard
  • Permissions
  • Messages
  • Integration Flow
  • Provision
  • AI Document Processing
  • Document Intelligence
  • Internationalization
  • Translation
  • Translation Guide
  • Icons
  • Docs Factory
  • Inspiration
  • Listings
  • Teachers
  • Students
  • Catalog
  • Library
  • Contributing
  • Code of conduct
  • GitHub Workflow
  • Database Seeds
  • Database Safety
  • Test Accounts
  • Bulk import
  • Playwright
  • Prettier
  • Block Rebound
  • Transportation

Dashboard

PreviousNext

Role-scoped financial overview — KPI cards, charts, smart alerts, quick actions, and a recent-transactions feed. KPI totals are real DB aggregations, but the trend sparklines are Math.random() mock data.

The finance dashboard aggregates the block into a role-scoped overview: admins and accountants see full KPIs and charts; teachers, students, and guardians see scoped slices (own salary, fee status). It is the landing page at /finance/dashboard.

Flow

Load (role-scoped)  →  KPI cards (real totals)  +  trend charts (mock)
  +  smart alerts  +  quick actions  +  recent transactions

Status

FeatureStatus
Role-scoped KPI cardsProduction (real DB aggregations)
Revenue / expense / cash-flow chartsProduction (totals real)
Recent transactions feedProduction
Bank-accounts summaryProduction
Budget overviewProduction
Currency + locale formattingProduction (School.currency, date-fns locale)
Trend sparklinesStubbed — Math.random() mock data
Real-time refresh (WebSocket)Planned (currently full-page SSR)
Mobile layout optimizationPlanned

Routes

RoutePageStatus
/{lang}/finance/dashboardFinancial dashboardReady

Server actions

ActionPurpose
getDashboardStatsKPI totals + trend series (totals real, trends mock)
getFinancialAlertsSmart alerts (overdue, low balance, etc.)
getQuickActionsForRoleRole-appropriate action buttons
getRecentTransactionsRecent transactions feed

Ledger / accounting

Not a money-mover — the dashboard reads and aggregates across the invoice, fees, expenses, payroll, banking, budget, and wallet models for display only.

Schema

No model of its own; composes reads across the other finance models.

Stubs

  • dashboard/actions.ts:278-288 — generateTrend() fabricates the revenue/expense/profit/collection sparklines with Math.random(). The comment says "mock data for now - should calculate from historical data." KPI totals are real; only the trend lines are fake.

Tests

None.

Key files

ComponentPath
Server actionssrc/components/school-dashboard/finance/dashboard/actions.ts
Compositionsrc/components/school-dashboard/finance/dashboard/content.tsx
Chartssrc/components/school-dashboard/finance/dashboard/revenue-chart.tsx (+ expense-chart, cash-flow-chart)

See also

  • Finance — block overview
  • Reports — formal statements behind the KPIs
  • Banking — bank-balance source
ReportsPermissions

On This Page

FlowStatusRoutesServer actionsLedger / accountingSchemaStubsTestsKey filesSee also

Built by Databayt ·

Welcome to balqalam.

A great journey is about to begin.