initial commit
This commit is contained in:
commit
1e1aa7d461
215 changed files with 35140 additions and 0 deletions
8
resources/views/recipe/index.blade.php
Normal file
8
resources/views/recipe/index.blade.php
Normal 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>
|
||||
35
resources/views/recipe/show.blade.php
Normal file
35
resources/views/recipe/show.blade.php
Normal 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>
|
||||
Reference in a new issue