Archived
1
0
Fork 0

Add user page.

This commit is contained in:
Henrik Hautakoski 2021-07-21 18:57:10 +02:00
parent ecc35c6fe6
commit 2f215d0b82
5 changed files with 81 additions and 0 deletions

View 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>