update student pages,

This commit is contained in:
louiscklaw
2025-04-24 13:19:21 +08:00
parent a3d2ee57f7
commit 92040c6efb
27 changed files with 598 additions and 63 deletions

View File

@@ -0,0 +1,9 @@
import { COL_STUDENTS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function GetBlockedCount(): Promise<number> {
const { totalItems: count } = await pb.collection(COL_STUDENTS).getList(1, 1, {
filter: 'status = "blocked"',
});
return count;
}