From e760bbbfc2fe8d5dd46fb6ec365e8efc3c349d67 Mon Sep 17 00:00:00 2001 From: gbanyan Date: Fri, 13 Feb 2026 12:32:58 +0800 Subject: [PATCH] feat(02-01): add inline note UI to member list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add Alpine.js x-data scope to each member row with noteFormOpen, noteContent, isSubmitting, errors, noteCount - Add submitNote() async method calling axios.post to admin.members.notes.store route - Add note count badge with reactive x-text binding to noteCount (initialized from withCount) - Add toggle button to expand/collapse inline note form - Add inline form with textarea, cancel button, and submit button - Submit button disabled when isSubmitting or noteContent is empty - Loading state toggles between 儲存 and 儲存中... - Validation errors display in Traditional Chinese via x-show and x-text - Cancel button clears content, closes form, and resets errors - Add 備忘錄 column header between 狀態 and 操作 - Update empty state colspan from 7 to 8 - Add x-cloak CSS to prevent flash of unstyled content - All elements include dark mode classes (dark:*) --- resources/views/admin/members/index.blade.php | 89 ++++++++++++++++++- 1 file changed, 87 insertions(+), 2 deletions(-) diff --git a/resources/views/admin/members/index.blade.php b/resources/views/admin/members/index.blade.php index f752362..152347e 100644 --- a/resources/views/admin/members/index.blade.php +++ b/resources/views/admin/members/index.blade.php @@ -5,6 +5,10 @@ + @push('styles') + + @endpush +
@@ -179,6 +183,9 @@ 狀態 + + 備忘錄 + 操作 @@ -186,7 +193,31 @@ @forelse ($members as $member) - + @@ -221,6 +252,60 @@ {{ $member->membership_status_label }} + +
+ + + + + + +
+ +
+
+ +

+
+ + +
+
+
+ 檢視 @@ -229,7 +314,7 @@ @empty - + 找不到會員。