diff --git a/front_minimal/src/sections/overview/client/view/overview-client-view.jsx b/front_minimal/src/sections/overview/client/view/overview-client-view.jsx
index 8bd5d5e..6857515 100644
--- a/front_minimal/src/sections/overview/client/view/overview-client-view.jsx
+++ b/front_minimal/src/sections/overview/client/view/overview-client-view.jsx
@@ -237,16 +237,6 @@ export function OverviewClientView({ childId, childName }) {
borderRight: { lg: `solid 1px ${varAlpha(theme.vars.palette.grey['500Channel'], 0.12)}` },
}}
>
- {/* Greeting */}
-
-
- Привет, {displayName}! 👋
-
-
- Твой прогресс и ближайшие занятия.
-
-
-
{/* Stat widgets */}
{
+ const upcoming = stats?.upcoming_lessons || [];
+ const now = new Date();
+ const day = now.getDay(); // 0=вс, 1=пн, ..., 6=сб
+ const diffToMon = (day === 0 ? -6 : 1 - day);
+ const mon = new Date(now); mon.setHours(0, 0, 0, 0); mon.setDate(now.getDate() + diffToMon);
+ const sun = new Date(mon); sun.setDate(mon.getDate() + 6); sun.setHours(23, 59, 59, 999);
+ return upcoming.filter((l) => {
+ const t = new Date(l.start_time);
+ return t >= now && t >= mon && t <= sun;
+ }).length;
+ }, [stats]);
+
// Последние сданные ДЗ
const recentSubmissions = stats?.recent_submissions || [];
@@ -283,14 +295,9 @@ export function OverviewCourseView() {
{/* ЛЕВАЯ ЧАСТЬ */}
-
- Привет, {user?.first_name || 'Ментор'}! 🦾
- Ваша активность и доходы.
-
-
-
+
@@ -310,10 +317,6 @@ export function OverviewCourseView() {
{/* ПРАВАЯ ЧАСТЬ */}
-
-
-
-
{/* Ближайшие уроки */}