initial commit
This commit is contained in:
commit
1e1aa7d461
215 changed files with 35140 additions and 0 deletions
33
resources/views/user/edit.blade.php
Normal file
33
resources/views/user/edit.blade.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<x-layout name="app">
|
||||
|
||||
<x-slot name="title">
|
||||
<div class="flex">
|
||||
{{ __('Edit User') }} - {{ $user->username }}
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<div class="mx-auto max-w-sm p-4">
|
||||
|
||||
<x-form action="{{ route('user.update') }}">
|
||||
<div class="mb-2">
|
||||
<x-form.label for="current_password">{{ __('Current Password') }}</x-form.label>
|
||||
<x-input-password name="current_password" />
|
||||
</div>
|
||||
|
||||
<div class="mb-2">
|
||||
<x-form.label for="password">{{ __('New Password') }}</x-form.label>
|
||||
<x-input-password name="password" />
|
||||
</div>
|
||||
|
||||
<div class="mb-2">
|
||||
<x-form.label for="password_confirmation">{{ __('Confirm Password') }}</x-form.label>
|
||||
<x-input-password name="password_confirmation" />
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
<x-button element="input" type="submit" value="Save" />
|
||||
</div>
|
||||
</x-form>
|
||||
</div>
|
||||
|
||||
</x-layout>
|
||||
37
resources/views/user/index.blade.php
Normal file
37
resources/views/user/index.blade.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<x-layout name="app">
|
||||
|
||||
<x-slot name="title">
|
||||
<div class="flex">
|
||||
{{ __('User') }} - {{ $user->username }}
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<x-slot name="page_links">
|
||||
<x-button element="a" class="flex items-center" href="{{ route('user.edit') }}">
|
||||
{{ __('Edit password') }}
|
||||
</x-button>
|
||||
</x-slot>
|
||||
|
||||
<div class="p-4">
|
||||
|
||||
<x-section-heading>
|
||||
<h2 class="text-3xl">{{ __('Characters') }}</h2>
|
||||
<div>
|
||||
<x-button element="a" class="flex items-center" href="{{ route('character.create') }}">
|
||||
<x-icon name="plus" class="h-6 h-6 mr-1"/> {{ __('Add character') }}
|
||||
</x-button>
|
||||
</div>
|
||||
</x-section-heading>
|
||||
|
||||
@if ($user->characters->count())
|
||||
<div class="grid grid-cols-4 gap-4">
|
||||
@foreach($user->characters as $character)
|
||||
<x-character-card :character="$character" destroy="{{ route('character.destroy', [ 'character' => $character->slug ])}}"/>
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<x-empty-result title="No characters">Please add some of yours!</x-empty-result>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</x-layout>
|
||||
Reference in a new issue