@php $artFallback = 'https://files.skinbase.org/default/missing_md.webp'; $avatarFallback = 'https://files.skinbase.org/default/avatar_default.webp'; $artwork = is_array($item ?? null) ? $item : []; $titleText = (string) ($artwork['title'] ?? $artwork['name'] ?? 'Untitled'); $artworkUrl = (string) ($artwork['url'] ?? '#'); $thumbUrl = (string) ($artwork['thumb'] ?? $artwork['thumb_url'] ?? $artFallback); $authorName = (string) ($artwork['author'] ?? 'Artist'); $authorUsername = (string) ($artwork['author_username'] ?? $artwork['username'] ?? ''); $authorAvatar = (string) ($artwork['author_avatar'] ?? $artwork['avatar_url'] ?? $avatarFallback); $authorUrl = !empty($artwork['publisher']['profile_url'] ?? null) ? (string) $artwork['publisher']['profile_url'] : ($authorUsername !== '' ? route('profile.show', ['username' => strtolower($authorUsername)]) : null); $metricBadge = is_array($artwork['metric_badge'] ?? null) ? $artwork['metric_badge'] : null; $maturity = is_array($artwork['maturity'] ?? null) ? $artwork['maturity'] : []; $shouldBlur = (bool) ($maturity['should_blur'] ?? false); $cardImageId = ($idPrefix ?? 'artwork') . '-image-' . ($index ?? 0); $medalScore = (int) data_get($artwork, 'medals.score_30d', data_get($artwork, 'medals.score', 0)); @endphp
{{ $titleText }} @if (!empty($badge))
{{ $badge }}
@elseif ($metricBadge && !empty($metricBadge['label']))
{{ $metricBadge['label'] }}
@endif @if ($medalScore > 0)
Medal {{ number_format($medalScore) }}
@endif @if ($shouldBlur)

Mature content

This artwork may contain mature material.

@endif
{{ $titleText }}
{{ $authorName }} {{ $authorName }} @if ($authorUsername !== '') @{{ $authorUsername }} @endif
{{ $titleText }}
@if ($authorUrl) {{ $authorName }} @else {{ $authorName }} @endif @if (!empty($artwork['category_name'])) {{ $artwork['category_name'] }} @endif
View