diff --git a/resources/views/dashboard/admin.blade.php b/resources/views/dashboard/admin.blade.php index d15ec95..f8e7a7b 100644 --- a/resources/views/dashboard/admin.blade.php +++ b/resources/views/dashboard/admin.blade.php @@ -39,6 +39,13 @@ Leaderboard + diff --git a/resources/views/dashboard/counselor.blade.php b/resources/views/dashboard/counselor.blade.php index 5892183..3577ee7 100644 --- a/resources/views/dashboard/counselor.blade.php +++ b/resources/views/dashboard/counselor.blade.php @@ -248,6 +248,9 @@

+ {{-- Hidden elements required by shared JS --}} + + @@ -338,13 +341,13 @@ function openDetailPanel(row) { // Status badge const statusEl = document.getElementById('panelStatus'); if (status === 'hot') { - statusEl.className = 'text-xs px-2 py-1 rounded bg-red-50 text-red-600'; + statusEl.className = 'text-xs px-2 py-1 rounded bg-red-50 text-red-600'; statusEl.textContent = '🔥 Hot'; } else if (status === 'cold') { - statusEl.className = 'text-xs px-2 py-1 rounded bg-blue-50 text-blue-600'; + statusEl.className = 'text-xs px-2 py-1 rounded bg-blue-50 text-blue-600'; statusEl.textContent = '❄️ Cold'; } else { - statusEl.className = 'text-xs px-2 py-1 rounded bg-amber-50 text-amber-600'; + statusEl.className = 'text-xs px-2 py-1 rounded bg-amber-50 text-amber-600'; statusEl.textContent = '☀️ Warm'; } @@ -384,7 +387,7 @@ function openDetailPanel(row) { }); // Load session history - $.get('/registrations/' + selectedRegId + '/history', function (r) { + $.get('{{ route("registrations.history", ":id") }}'.replace(':id', selectedRegId), function (r) { renderHistory(r.sessions || []); }).fail(function () { document.getElementById('panelHistory').innerHTML = '

No sessions found.

';