Archived
1
0
Fork 0

Initial Commit

This commit is contained in:
Henrik Hautakoski 2021-10-18 11:53:33 +02:00
commit ddf09fe00c
113 changed files with 187148 additions and 0 deletions

View file

@ -0,0 +1,56 @@
<div class="container mx-auto mt-10">
<div class="mb-10">
<x-button type="danger" wire:click="resetSettings()">{{ __('Clear') }}</x-button>
<x-button type="success" wire:click="save()">{{ __('Save') }}</x-button>
<x-button type="info" wire:click="share()">{{ __('Create shareable URL') }}</x-button>
</div>
@if ($shared_settings)
<div class="bg-blue-200 mb-10 px-6 py-4 rounded">
Sharable url: <strong>{{ route('setup-hash', [ 'setting' => $shared_settings ]) }}</strong>
</div>
@endif
<form class="flex gap-8" wire:submit.prevent="save" method="POST">
<div>
<x-form-section class="bg-yellow-200 border-yellow-300">
<h3 class="text-2xl">{{ __('Classes') }}</h3>
@foreach($all_classes as $class)
<div class="flex justify-between items-center space-x-4 my-2">
<label class="text-xl" for="class_{{ $class }}">{{ Str::ucFirst($class) }}</label>
<input id="class_{{ $class }}" type="checkbox" wire:model="values.classes.{{ $class }}" />
</div>
@endforeach
</x-form-section>
</div>
<div>
<x-form-section class="bg-blue-200 border-blue-300">
<h3 class="text-2xl">{{ __('Characters') }}</h3>
@foreach($all_characters as $ch)
<div class="flex justify-between items-center space-x-4 my-2">
<label class="text-xl" for="ch_{{ $ch->id }}">{{ $ch->name }}</label>
<input id="ch_{{ $ch->id }}" type="checkbox" wire:model="values.characters.{{ $ch->id }}" />
</div>
@endforeach
</x-form-section>
</div>
<div>
<x-form-section class="bg-green-200 border-green-300">
<h3 class="text-2xl">{{ __('Raids') }}</h3>
@foreach($all_raids as $raid)
<div class="flex justify-between items-center space-x-4 my-2">
<label class="text-xl" for="raid_{{ $raid->id }}">{{ $raid->name }}</label>
<input id="raid_{{ $raid->id }}" wire:model="values.raids.{{ $raid->id }}" type="checkbox" />
</div>
@endforeach
</x-form-section>
</div>
</form>
</div>