From 9a1cb3adfd9b098ca38425f0a159c230f5b0f873 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sat, 29 Aug 2026 02:55:07 +0300 Subject: [PATCH] feat: Add UI button to watch NotebookLM AI Video Summary in Student Portal if ai_video_url exists for the lesson --- backend/app/Views/StudentPortal.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/backend/app/Views/StudentPortal.php b/backend/app/Views/StudentPortal.php index 533263e..5493a5e 100644 --- a/backend/app/Views/StudentPortal.php +++ b/backend/app/Views/StudentPortal.php @@ -824,6 +824,15 @@ class StudentPortal + +
+ + + 🎬 مشاهدة ملخص الذكاء الاصطناعي (AI Video) + + +
+
@@ -1239,6 +1248,22 @@ class StudentPortal badge.textContent = `الفحص السقراطي الذكي نشط (${checkpoints.length} نقاط فحص) 🧠`; } + // Update AI Video Button + const aiAssetsContainer = document.getElementById('ai_assets_container'); + if (aiAssetsContainer && les) { + if (les.ai_video_url) { + aiAssetsContainer.style.display = 'flex'; + aiAssetsContainer.innerHTML = ` + + 🎬 مشاهدة ملخص الذكاء الاصطناعي (AI Video) + + `; + } else { + aiAssetsContainer.style.display = 'none'; + aiAssetsContainer.innerHTML = ''; + } + } + // Render AI Timeline Chapters const chaptersList = document.getElementById('ai_timeline_chapters_list'); if (chaptersList) {