Skip to content

Commit

Permalink
fix: admin user photo now show
Browse files Browse the repository at this point in the history
  • Loading branch information
amrron committed Nov 10, 2024
1 parent 81b20eb commit 7bf6692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/layouts/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class="inline-flex items-center justify-center w-3 h-3 p-3 ms-3 text-sm font-med
</a>
</li> --}}
<li>
<a href="#" class="flex items-center p-2 text-gray-900 rounded-lg ">
<a href="/admin" class="flex items-center p-2 text-gray-900 rounded-lg ">
<svg class="flex-shrink-0 w-5 h-5 text-gray-500 transition duration-75 " aria-hidden="true"
xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 20 18">
<path
Expand Down
8 changes: 3 additions & 5 deletions resources/views/pages/admin/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
</th>
<th scope="col"
class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
Tanggal Bergabung
Waktu Bergabung
</th>
<th scope="col"
class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
Expand All @@ -80,9 +80,7 @@ class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
@foreach ($users as $user)
<tr class="hover:bg-gray-100 ">
<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 ?? "https://flowbite.com/docs/images/people/profile-picture-5.jpg" }}"
alt="avatar">
<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 ">
<div class="text-base font-semibold text-gray-900 ">{{ $user->name }}</div>
<div class="text-sm font-normal text-gray-500 ">{{ $user->email }}
Expand All @@ -91,7 +89,7 @@ class="p-4 text-xs font-medium text-left text-gray-500 uppercase ">
</td>
<td
class="max-w-sm p-4 overflow-hidden text-base font-normal text-gray-500 truncate xl:max-w-xs ">
{{ $user->created_at->format('d F Y') }}
{{ $user->created_at }}
</td>
<td class="p-4 text-base font-medium text-gray-900 whitespace-nowrap ">
@if ($user->email_verified_at)
Expand Down

0 comments on commit 7bf6692

Please sign in to comment.