From f3ace72ad610fd5a242b795f78c16b142b7058b6 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 14 Sep 2023 11:20:24 +0200 Subject: [PATCH] resources/views/item/show.blade.php: show some more info about the item. --- resources/views/item/show.blade.php | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/resources/views/item/show.blade.php b/resources/views/item/show.blade.php index de1e7c4..4cdd7fb 100644 --- a/resources/views/item/show.blade.php +++ b/resources/views/item/show.blade.php @@ -3,6 +3,43 @@ {{ __('Item') }} - {{ $item->name }}
+
+ {{ $item->name }} +
+ @if (count($item->recipes) > 0) +
+ +

{{ __('Created by') }}

+
+
    + @foreach($item->recipes as $recipe) +
  • + @if ($recipe->spell_id) + {{ $recipe->name }} + @else + {{ $recipe->name }} + @endif +
  • + @endforeach + +
+ @endif + + @if (count($item->reagent_for) > 0) +
+ +

{{ __('Reagent for') }}

+
+ +
    + @foreach($item->reagent_for as $recipe) +
  • + @endforeach +
+
+ @endif
+ +