#4-public-user-profile
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
<tr>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">ID</th>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Username</th>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Created</th>
|
||||
<th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
|
||||
@@ -25,6 +26,15 @@
|
||||
<tr class="odd:bg-white even:bg-gray-50">
|
||||
<td class="px-4 py-3 text-sm text-gray-700">{{ $user->id }}</td>
|
||||
<td class="px-4 py-3 text-sm text-gray-900">{{ $user->name }}</td>
|
||||
<td class="px-4 py-3 text-sm text-gray-700">
|
||||
@if ($user->username)
|
||||
<a href="{{ route('author.show', $user->username) }}" class="font-medium text-indigo-600 hover:text-indigo-500">
|
||||
{{ $user->username }}
|
||||
</a>
|
||||
@else
|
||||
<span class="text-gray-400">{{ __('Not set') }}</span>
|
||||
@endif
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm text-gray-700">{{ $user->email }}</td>
|
||||
<td class="px-4 py-3 text-sm text-gray-700">{{ $user->created_at?->format('Y-m-d H:i') }}</td>
|
||||
<td class="px-4 py-3 text-sm text-gray-700">
|
||||
@@ -35,7 +45,7 @@
|
||||
</tr>
|
||||
@empty
|
||||
<tr>
|
||||
<td colspan="5" class="px-4 py-6 text-sm text-center text-gray-500">
|
||||
<td colspan="6" class="px-4 py-6 text-sm text-center text-gray-500">
|
||||
No users found.
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user