diff --git a/resources/views/character/profession/show.blade.php b/resources/views/character/profession/show.blade.php
index eec9ae5..b91c5b0 100644
--- a/resources/views/character/profession/show.blade.php
+++ b/resources/views/character/profession/show.blade.php
@@ -35,13 +35,17 @@
@foreach($recipes as $recipe)
- -
- {{ $recipe->name }}
- @if ($recipe->spell)
-
- @elseif ($recipe->craft && $recipe->craft->external_id)
-
- @endif
+
-
+ @php
+ if ($recipe->spell) {
+ $id = $recipe->spell->id;
+ $type = 'spell';
+ } else {
+ $id = $recipe->craft->external_id;
+ $type = 'item';
+ }
+ @endphp
+ {{ $recipe->name }}
@endforeach