feat: update student import and graduation workflows
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
</form>
|
||||
</x-master-card>
|
||||
|
||||
<x-master-card title="Daftar Token Sinkronisasi" subtitle="Token yang sudah dibuat untuk integrasi eksternal. Token yang direvoke tidak boleh dipakai lagi.">
|
||||
<x-master-card title="Daftar Token Sinkronisasi" subtitle="Token yang sudah dibuat untuk integrasi eksternal. Token yang dihapus akan hilang dari daftar dan database.">
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-slate-200 text-sm">
|
||||
<thead class="bg-slate-50 text-left text-slate-500">
|
||||
@@ -66,24 +66,16 @@
|
||||
<td class="px-4 py-3 text-slate-600">{{ $token->creator?->name ?? '-' }}</td>
|
||||
<td class="px-4 py-3 text-slate-600">{{ $token->last_used_at?->format('d M Y H:i') ?? 'Belum pernah' }}</td>
|
||||
<td class="px-4 py-3">
|
||||
@if ($token->revoked_at)
|
||||
<span class="inline-flex rounded-full bg-rose-100 px-3 py-1 text-xs font-semibold text-rose-700">Nonaktif</span>
|
||||
@else
|
||||
<span class="inline-flex rounded-full bg-emerald-100 px-3 py-1 text-xs font-semibold text-emerald-700">Aktif</span>
|
||||
@endif
|
||||
<span class="inline-flex rounded-full bg-emerald-100 px-3 py-1 text-xs font-semibold text-emerald-700">Aktif</span>
|
||||
</td>
|
||||
<td class="px-4 py-3 text-right">
|
||||
@if (! $token->revoked_at)
|
||||
<form method="POST" action="{{ route('settings.sync-tokens.revoke', $token) }}" onsubmit="return confirm('Nonaktifkan token ini?')" class="inline-flex">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<button type="submit" class="inline-flex items-center rounded-xl border border-rose-200 bg-rose-50 px-3 py-2 text-xs font-semibold text-rose-700 transition hover:bg-rose-100">
|
||||
Revoke
|
||||
</button>
|
||||
</form>
|
||||
@else
|
||||
<span class="text-xs text-slate-400">Sudah direvoke</span>
|
||||
@endif
|
||||
<form method="POST" action="{{ route('settings.sync-tokens.revoke', $token) }}" onsubmit="return confirm('Hapus token ini dari database?')" class="inline-flex">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
<button type="submit" class="inline-flex items-center rounded-xl border border-rose-200 bg-rose-50 px-3 py-2 text-xs font-semibold text-rose-700 transition hover:bg-rose-100">
|
||||
Hapus
|
||||
</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
|
||||
Reference in New Issue
Block a user