Skip to content

Commit

Permalink
feat: show number of user in admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
amrron committed Nov 12, 2024
1 parent ca92e99 commit f619024
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions resources/views/pages/admin/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class="inline-flex items-center justify-center w-1/2 px-3 py-2 text-sm font-medi
<table class="min-w-full divide-y divide-gray-200 table-fixed ">
<thead class="bg-gray-100 ">
<tr>
<th scope="col"
class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
No
</th>
<th scope="col"
class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
Name
Expand Down Expand Up @@ -77,8 +81,12 @@ class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200 ">
@foreach ($users as $user)
@foreach ($users as $user)

<tr class="hover:bg-gray-100 ">
<td class="p-4 text-base font-medium text-gray-900 whitespace-nowrap ">
{{ $loop->iteration }}
</td>
<td class="flex items-center p-4 mr-12 space-x-6 whitespace-nowrap">
<img class="w-10 h-10 rounded-full" src="{{ $user->gambar ? asset('storage/' . $user->gambar) : "https://flowbite.com/docs/images/people/profile-picture-5.jpg" }}"
<div class="text-sm font-normal text-gray-500 ">
Expand Down Expand Up @@ -162,8 +170,8 @@ class="inline-flex justify-center p-1 mr-2 text-gray-500 rounded cursor-pointer
</svg>
</a>
<span class="text-sm font-normal text-gray-500 ">Showing <span
class="font-semibold text-gray-900 ">1-20</span> of <span
class="font-semibold text-gray-900 ">2290</span></span>
class="font-semibold text-gray-900 ">1-{{ $users->count() }}</span> of <span
class="font-semibold text-gray-900 ">{{ $users->count() }}</span></span>
</div>
<div class="flex items-center space-x-3">
<a href="#"
Expand Down

0 comments on commit f619024

Please sign in to comment.