Archived
1
0
Fork 0

initial commit

This commit is contained in:
Henrik Hautakoski 2021-06-28 17:33:29 +01:00
commit 1e1aa7d461
215 changed files with 35140 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<x-layout name="app">
<x-slot name="title">{{ __('Recipes') }}</x-slot>
<div class="p-4">
<livewire:recipes />
</div>
</x-layout>

View file

@ -0,0 +1,35 @@
<x-layout name="app">
<x-slot name="title">
<div class="flex">
<x-profession-icon class="w-8 h-8 mr-4" :name="$recipe->profession->name" />
{{ $recipe->profession->name }} - {{ __('Recipe') }}: {{ $recipe->craft->name }}
</div>
</x-slot>
<div class="p-4">
<div class="mb-4">
<x-section-heading>
<h2 class="text-3xl">Reagents</h2>
</x-section-heading>
<ul class="px-4">
@foreach($recipe->reagents as $reagent)
<li><strong>{{ $reagent->pivot->quantity }}</strong>x {{ $reagent->name }}</li>
@endforeach
</li>
</div>
<x-section-heading>
<h2 class="text-3xl">Crafters</h2>
</x-section-heading>
<ul class="mx-4 flex flex-wrap gap-4">
@foreach($recipe->crafters as $crafter)
<li>
<x-character-link class="inline-block" :character="$crafter" href="{{ route('character.profession.show', ['character' => $crafter, 'profession' => $recipe->profession ])}}" />
</li>
@endforeach
</ul>
</div>
</x-layout>