Files
2026-05-09 17:32:17 +02:00

49 lines
1.8 KiB
PHP
Executable File

<x-app-layout>
@push('title', __('Rare values'))
<div class="col-span-12">
<div class="flex flex-col gap-y-4">
<a href="{{ route('values.index') }}" class="text-[var(--color-text)] underline flex gap-x-1 items-center">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 12h-15m0 0l6.75 6.75M4.5 12l6.75-6.75" />
</svg>
{{ __('Go back to values') }}
</a>
<x-content.content-card icon="dragon.png">
<x-slot:title>
{{ $value->name }}
</x-slot:title>
<x-slot:under-title>
{{ __('Here is a list of all the owned :value`s', ['value' => $value->name]) }}
</x-slot:under-title>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-4">
@foreach($items as $item)
<div class="px-3 h-[100px] rounded bg-[var(--color-background)] flex gap-4 items-center overflow-hidden">
<div class="w-12 h-12 overflow-hidden rounded-full flex items-center justify-center bg-[var(--color-surface)]">
<img src="{{ sprintf('%s/%s', setting('avatar_imager'), $item['user']->look) }}&headonly=1" alt="">
</div>
<div class="flex flex-col gap-y-2">
<p class="text-[var(--color-text)]">{{ $item['user']->username }}</p>
<div class="w-full rounded h-[35px] flex items-center" style="background-color: var(--color-primary); opacity: 0.8">
<div class="rounded-l px-2 h-full flex items-center justify-center" style="background-color: var(--color-primary)">
<img class="h-[18px] w-[28px]" src="{{ asset('assets/images/icons/amount.png') }}" alt="">
</div>
<p class="w-full text-center truncate text-sm">
{{ $item['item_count'] ?? 0 }} {{ __('owned') }}
</p>
</div>
</div>
</div>
@endforeach
</div>
</x-content.content-card>
</div>
</div>
</x-app-layout>