Add user page.
This commit is contained in:
parent
ecc35c6fe6
commit
2f215d0b82
5 changed files with 81 additions and 0 deletions
25
resources/views/user/show.blade.php
Normal file
25
resources/views/user/show.blade.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<x-layout name="app">
|
||||
|
||||
<x-slot name="title">{{ __('User') }} - {{ $user->username }}</x-slot>
|
||||
|
||||
<div class="p-4">
|
||||
|
||||
<x-section-heading>
|
||||
<h2 class="text-3xl">{{ __('Characters') }}</h2>
|
||||
</x-section-heading>
|
||||
|
||||
@if ($user->characters->count())
|
||||
<div class="grid md:grid-cols-2 lg:grid-cols-4 gap-4">
|
||||
@if ($user->main_character)
|
||||
<x-character-card :character="$user->main_character" frame="true" />
|
||||
@endif
|
||||
|
||||
@foreach($user->alt_characters as $character)
|
||||
<x-character-card :character="$character" />
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<x-empty-result title="No characters"></x-empty-result>
|
||||
@endif
|
||||
</div>
|
||||
</x-layout>
|
||||
Reference in a new issue