refactor: enhance attendance modal layout with sticky headers and improved styling
This commit is contained in:
parent
70216995b4
commit
8485e92aaa
@ -2,9 +2,9 @@
|
||||
@forelse ($attendances as $attendance)
|
||||
@if ($loop->first)
|
||||
<div
|
||||
class="fi-ta-content overflow-x-auto rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900">
|
||||
<table class="w-full text-sm text-left divider-y dark:divider-white/5">
|
||||
<thead class="bg-gray-50 dark:bg-white/5">
|
||||
class="fi-ta-content overflow-x-auto overflow-y-auto max-h-96 rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900">
|
||||
<table class="w-full text-sm text-left divider-y dark:divider-white/5 sticky-header-table">
|
||||
<thead class="bg-gray-50 dark:bg-gray-800 sticky top-0 z-10">
|
||||
<tr>
|
||||
<th class="px-4 py-3 font-bold text-gray-900 dark:text-white">Mahasiswa</th>
|
||||
<th class="px-4 py-3 font-bold text-gray-900 dark:text-white text-right">Waktu Presensi</th>
|
||||
@ -16,8 +16,7 @@ class="fi-ta-content overflow-x-auto rounded-xl border border-gray-200 dark:bord
|
||||
<td class="px-4 py-3 text-gray-950 dark:text-white font-medium">
|
||||
<div class="flex flex-col">
|
||||
<span>{{ $attendance->student->full_name }}</span>
|
||||
<span
|
||||
class="text-[10px] text-gray-500 dark:text-gray-400 font-normal uppercase tabular-nums">NIM:
|
||||
<span class="text-[10px] text-gray-500 dark:text-gray-400 font-normal uppercase tabular-nums">NIM:
|
||||
{{ $attendance->student->student_number }}</span>
|
||||
</div>
|
||||
</td>
|
||||
@ -34,8 +33,7 @@ class="inline-flex items-center rounded-md bg-success-50 dark:bg-success-400/10
|
||||
</div>
|
||||
<div class="mt-4 flex items-center justify-between px-2">
|
||||
<p class="text-xs text-gray-500 font-medium">
|
||||
Total Kehadiran: <span
|
||||
class="text-primary-600 dark:text-primary-400 font-bold font-mono">{{ $loop->count }}
|
||||
Total Kehadiran: <span class="text-primary-600 dark:text-primary-400 font-bold font-mono">{{ $loop->count }}
|
||||
Mahasiswa</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user