resources/views/livewire/recipes.blade.php: show wowhead icon and tooltip.
This commit is contained in:
parent
ca1d3803d0
commit
2f689d0f38
1 changed files with 14 additions and 1 deletions
|
|
@ -18,7 +18,20 @@
|
|||
<tbody class="w-full">
|
||||
@foreach($recipes as $recipe)
|
||||
<tr class="focus:outline-none text-sm leading-none text-gray-800 bg-white hover:bg-gray-100 border-b border-t border-gray-100">
|
||||
<td class="px-3 py-4"><x-link href="{{ route('recipe.show', [ 'recipe' => $recipe ]) }}">{{ $recipe->name }}</x-link></td>
|
||||
<td class="px-3 py-4">
|
||||
@php
|
||||
if ($recipe->spell) {
|
||||
$id = $recipe->spell->id;
|
||||
$type = 'spell';
|
||||
} else {
|
||||
$id = $recipe->craft->external_id;
|
||||
$type = 'item';
|
||||
}
|
||||
@endphp
|
||||
<x-wowhead-link :type="$type" :wh-id="$id" href="{{ route('recipe.show', [ 'recipe' => $recipe ]) }}">
|
||||
{{ $recipe->name }}
|
||||
</x-wowhead-link>
|
||||
</td>
|
||||
<td class="px-3 py-4">
|
||||
<div class="flex items-center">
|
||||
<x-profession-icon class="w-4 h-4 mr-1" :name="$recipe->profession->name" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue