#4-public-user-profile
This commit is contained in:
24
resources/views/author/show.blade.php
Normal file
24
resources/views/author/show.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<x-guest-layout>
|
||||
<div class="space-y-6">
|
||||
<div class="space-y-2">
|
||||
<p class="text-sm font-medium text-indigo-600">{{ '@'.$author->username }}</p>
|
||||
<h1 class="text-2xl font-semibold text-gray-900">{{ $author->name }}</h1>
|
||||
<p class="text-sm text-gray-600">
|
||||
{{ __('Joined :date', ['date' => $author->created_at?->format('F j, Y')]) }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p class="text-xs font-medium uppercase tracking-wider text-gray-500">{{ __('Roles') }}</p>
|
||||
<div class="mt-2 flex flex-wrap gap-2">
|
||||
@forelse ($author->roles as $role)
|
||||
<span class="rounded-md bg-gray-100 px-2.5 py-1 text-sm text-gray-700">
|
||||
{{ $role->name }}
|
||||
</span>
|
||||
@empty
|
||||
<span class="text-sm text-gray-500">{{ __('No roles assigned.') }}</span>
|
||||
@endforelse
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-guest-layout>
|
||||
Reference in New Issue
Block a user