diff --git a/src/app/(dashboard)/admin/page.tsx b/src/app/(dashboard)/admin/page.tsx index 5f8bd7d4..1a66226f 100644 --- a/src/app/(dashboard)/admin/page.tsx +++ b/src/app/(dashboard)/admin/page.tsx @@ -4,26 +4,82 @@ import CountChartContainer from "@/components/CountChartContainer"; import EventCalendarContainer from "@/components/EventCalendarContainer"; import FinanceChart from "@/components/FinanceChart"; import UserCard from "@/components/UserCard"; +import Link from "next/link"; +import Image from "next/image"; const AdminPage = ({ searchParams, }: { searchParams: { [keys: string]: string | undefined }; }) => { + // Get current date for greeting + const today = new Date(); + const hour = today.getHours(); + let greeting = "Good morning"; + if (hour >= 12 && hour < 17) greeting = "Good afternoon"; + if (hour >= 17) greeting = "Good evening"; + return (
- {/* LEFT */} + {/* LEFT - Main Content */}
- {/* USER CARDS */} -
+ {/* Welcome Banner */} +
+

{greeting}, Admin!

+

+ Here's what's happening at Flood of Life Embassy today. +

+ + {/* Quick Action Buttons */} +
+ + + Schedule Event + + + + New Announcement + +
+
+ + {/* USER CARDS - Church Stats */} +
- - - + + +
+ + {/* Additional Stats Cards */} +
+ + +
+
+

Contributions (MTD)

+

₵45.2K

+

↑ 12% from last month

+
+
+ 💰 +
+
+
+
+

Attendance (Sun)

+

328

+

78% of members

+
+
+ +
+
+
+ {/* MIDDLE CHARTS */}
- {/* COUNT CHART */} + {/* COUNT CHART - Demographics */}
@@ -32,14 +88,100 @@ const AdminPage = ({
- {/* BOTTOM CHART */} + + {/* BOTTOM CHART - Finance */}
+ + {/* Recent Activities */} +
+
+

Recent Activities

+ + View All + +
+
+
+
+ 💰 +
+
+

New tithe recorded

+

5 minutes ago • Member #1234

+
+
+
+
+ 🙏 +
+
+

New prayer request

+

15 minutes ago • Sister Mary

+
+
+
+
+ 👥 +
+
+

New member registered

+

1 hour ago • John Doe

+
+
+
+
- {/* RIGHT */} + + {/* RIGHT - Sidebar */}
- + {/* Quick Stats */} +
+

QUICK STATS

+
+
+

12

+

Services This Week

+
+
+

8

+

Prayer Meetings

+
+
+

5

+

Outreach Programs

+
+
+

3

+

Baptisms

+
+
+
+ + {/* Event Calendar */} + + + {/* Upcoming Birthdays */} +
+

🎂 UPCOMING BIRTHDAYS

+
+
+ Sarah Johnson + Tomorrow +
+
+ Pastor Michael + May 15 +
+
+ Esther Williams + May 18 +
+
+
+ + {/* Announcements */}