feature: make style like main page
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<div class="px-6 py-4 border-b border-border-light flex justify-between items-center bg-gray-50/50">
|
||||
<span class="text-sm font-medium text-text-medium" id="paginationStats">
|
||||
<div class="px-6 py-4 border-b border-gray-100 flex justify-between items-center bg-white">
|
||||
<span class="text-sm font-semibold text-gray-500" id="paginationStats">
|
||||
@if($users->total() > 0)
|
||||
Showing {{ $users->firstItem() }}-{{ $users->lastItem() }} of {{ $users->total() }} users
|
||||
Hiển thị {{ $users->firstItem() }}-{{ $users->lastItem() }} trên {{ $users->total() }} nhân viên
|
||||
@else
|
||||
Showing 0 users
|
||||
Hiển thị 0 nhân viên
|
||||
@endif
|
||||
</span>
|
||||
</div>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-border-light text-sm">
|
||||
<thead class="bg-gray-50/80">
|
||||
<table class="min-w-full divide-y divide-gray-100 text-sm">
|
||||
<thead class="bg-gray-50/50">
|
||||
<tr>
|
||||
<th class="table-header-cell">MSNV</th>
|
||||
<th class="table-header-cell">Email</th>
|
||||
<th class="table-header-cell">Nhân viên</th>
|
||||
<th class="table-header-cell">Đã Nhận</th>
|
||||
<th class="table-header-cell">Đã Gửi</th>
|
||||
<th class="table-header-cell">Số dư thẻ</th>
|
||||
@@ -20,24 +20,29 @@
|
||||
<th class="table-header-cell text-right">Thao tác</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="bg-white divide-y divide-border-light">
|
||||
<tbody class="bg-white divide-y divide-gray-100">
|
||||
@forelse($users as $u)
|
||||
<tr class="hover:bg-slate-50 transition-colors">
|
||||
<tr class="hover:bg-slate-50/60 transition-colors">
|
||||
<td class="table-body-cell font-bold text-text-dark">{{ $u->msnv }}</td>
|
||||
<td class="table-body-cell text-text-medium">{{ $u->mail }}</td>
|
||||
<td class="table-body-cell">
|
||||
<div class="flex flex-col">
|
||||
<span class="font-bold text-text-dark">{{ $u->name }}</span>
|
||||
<span class="text-xs text-gray-400 mt-0.5">{{ $u->mail }}</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="table-body-cell font-extrabold text-green-600">+{{ $u->total_received }}</td>
|
||||
<td class="table-body-cell font-extrabold text-blue-600">{{ $u->total_sent }}</td>
|
||||
<td class="table-body-cell font-extrabold text-orange-500">{{ $u->card }}</td>
|
||||
<td class="table-body-cell">
|
||||
@if($u->flag_send)
|
||||
<span class="px-2 py-1 inline-flex text-[10px] leading-5 font-semibold rounded-full bg-green-100 text-green-800">Được gửi</span>
|
||||
<span class="px-2.5 py-1 inline-flex text-[10px] leading-5 font-bold rounded-full bg-green-50 text-green-700 border border-green-100">Được gửi</span>
|
||||
@else
|
||||
<span class="px-2 py-1 inline-flex text-[10px] leading-5 font-semibold rounded-full bg-gray-100 text-gray-800">Không</span>
|
||||
<span class="px-2.5 py-1 inline-flex text-[10px] leading-5 font-bold rounded-full bg-gray-50 text-gray-500 border border-gray-100">Không</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="table-body-cell text-right font-medium space-x-3">
|
||||
<a href="{{ route('admin.users.edit', $u->msnv) }}" class="table-action-link text-primary">Quản lý</a>
|
||||
<button type="button" onclick="openDeleteModal('{{ $u->msnv }}', '{{ route('admin.users.destroy', $u->msnv) }}')" class="table-action-link text-red-500">Nghỉ việc</button>
|
||||
<a href="{{ route('admin.users.edit', $u->msnv) }}" class="table-action-link !text-[#3462f7] hover:!text-blue-800">Quản lý</a>
|
||||
<button type="button" onclick="openDeleteModal('{{ $u->msnv }}', '{{ route('admin.users.destroy', $u->msnv) }}')" class="table-action-link !text-red-500 hover:!text-red-700">Nghỉ việc</button>
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
@@ -49,7 +54,7 @@
|
||||
</table>
|
||||
</div>
|
||||
@if($users->hasPages())
|
||||
<div class="px-6 py-4 border-t border-border-light bg-gray-50/30">
|
||||
<div class="px-6 py-4 border-t border-gray-100 bg-white">
|
||||
{{ $users->links() }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user