sms and update admin

changes
This commit is contained in:
2026-06-12 12:57:23 +05:45
parent 3b529327bf
commit 85e87beaf6
8 changed files with 519 additions and 13 deletions
+10 -10
View File
@@ -97,7 +97,7 @@
</svg>
Today's Sessions
</div>
<span class="text-xs font-medium text-slate-400 bg-slate-100 px-2 py-0.5 rounded-full">{{ $total }} students</span>
<span class="text-xs font-medium text-slate-400 bg-slate-100 px-2 py-0.5 rounded-full">{{ $todayTotal }} students</span>
</div>
<table class="w-full text-sm">
<thead>
@@ -178,7 +178,7 @@
</tbody>
</table>
<div class="px-5 py-3 border-t border-slate-100 flex items-center justify-between">
<p class="text-xs text-slate-400">Showing <span class="font-medium text-slate-600">{{ $total }}</span> students</p>
<p class="text-xs text-slate-400">Showing <span class="font-medium text-slate-600">{{ $todayTotal }}</span> students</p>
</div>
</div>
</div>
@@ -293,10 +293,10 @@
</div>
<!-- Dev OTP preview -->
<div id="otpPreview" class="hidden bg-amber-50 border border-amber-200 rounded-xl px-4 py-2.5 mb-4 flex items-center gap-2">
{{-- <div id="otpPreview" class="hidden bg-amber-50 border border-amber-200 rounded-xl px-4 py-2.5 mb-4 flex items-center gap-2">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="#d97706" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
<p class="text-xs font-semibold text-amber-700">Dev OTP: <span id="otpValue" class="font-mono tracking-widest"></span></p>
</div>
</div> --}}
<label class="block text-xs font-semibold text-slate-600 mb-1.5 uppercase tracking-wide">Enter OTP</label>
<input type="text" id="otp" maxlength="6" placeholder="— — — — — —"
@@ -527,10 +527,10 @@ function refreshPanel() {
el.innerHTML = '✕ Miss';
}
} else if (i === currentShot) {
el.classList.add('border-indigo-400', 'bg-indigo-50', 'text-indigo-600', 'animate-pulse');
el.classList.add('border-indigo-400', 'bg-indigo-50', 'text-indigo-600', 'animate-pulse', 'cursor-pointer');
el.innerHTML = 'Shot ' + i;
} else {
el.classList.add('border-slate-200', 'bg-slate-50', 'text-slate-400');
el.classList.add('border-slate-200', 'bg-slate-50', 'text-slate-400', 'cursor-pointer');
el.innerHTML = 'Shot ' + i;
}
}
@@ -827,10 +827,10 @@ document.getElementById('sendOtpBtn').addEventListener('click', function () {
})
.done(res => {
document.getElementById('phoneSentTo').textContent = phone;
if (res.otp) {
document.getElementById('otpPreview').classList.remove('hidden');
document.getElementById('otpValue').textContent = res.otp;
}
// if (res.otp) {
// document.getElementById('otpPreview').classList.remove('hidden');
// document.getElementById('otpValue').textContent = res.otp;
// }
goToStep(2);
})
.fail(() => showError('Failed to send OTP. Please try again.'))