diff --git a/resources/views/registrations.blade.php b/resources/views/registrations.blade.php
index f6f385a..c1c6997 100644
--- a/resources/views/registrations.blade.php
+++ b/resources/views/registrations.blade.php
@@ -366,14 +366,19 @@ function renderPanelComments(comments) {
el.innerHTML = '
No comments yet.
';
return;
}
- el.innerHTML = comments.map(c => `
-
-
-
${escHtml(c.author)}
-
${escHtml(c.created_at)}
+ el.innerHTML = comments.map(c => {
+ console.log(c);
+
+ return `
+
+
+ ${escHtml(c.author)}
+ ${escHtml(c.created_at)}
+
+
${escHtml(c.comment)}
-
${escHtml(c.comment)}
-
`).join('');
+ `;
+ }).join('');
}
function closeDetailPanel() {
@@ -407,9 +412,10 @@ document.getElementById('panelCommentBtn').addEventListener('click', function ()
const list = Array.isArray(r.comments) ? r.comments : Object.values(r.comments || {});
renderPanelComments(list.map(c => ({
comment: c.comment,
- author: c.author_name,
+ author: c.author,
created_at: c.created_at_human ?? c.created_at,
- })));
+ })));
+ console.log(list);
}
});
},