@extends('layouts.nova') @php $uname = $user->username ?? $user->name ?? 'Unknown'; $displayName = $user->name ?? $uname; $avatarUrl = \App\Support\AvatarUrl::forUser((int) $user->id, $user->profile?->avatar_hash, 128); $genderMap = [ 'M' => ['label' => 'Male', 'icon' => 'fa-mars', 'color' => 'text-blue-400'], 'F' => ['label' => 'Female', 'icon' => 'fa-venus', 'color' => 'text-pink-400'], 'X' => ['label' => 'N/A', 'icon' => 'fa-question', 'color' => 'text-gray-400'], ]; $genderCode = strtoupper((string) ($profile?->gender ?? 'X')); $gender = $genderMap[$genderCode] ?? $genderMap['X']; $birthdate = null; if ($profile?->birthdate) { try { $bd = \Carbon\Carbon::parse($profile->birthdate); if ($bd->year > 1900) { $birthdate = $bd->format('F d, Y'); } } catch (\Throwable) {} } $website = $profile?->website ?? null; if ($website && !preg_match('#^https?://#i', $website)) { $website = 'https://' . $website; } $about = $profile?->about ?? null; $lastVisit = null; if ($user->last_visit_at) { try { $lastVisit = \Carbon\Carbon::parse($user->last_visit_at); } catch (\Throwable) {} } $socialIcons = [ 'twitter' => ['icon' => 'fa-brands fa-x-twitter', 'label' => 'X / Twitter'], 'deviantart' => ['icon' => 'fa-brands fa-deviantart', 'label' => 'DeviantArt'], 'instagram' => ['icon' => 'fa-brands fa-instagram', 'label' => 'Instagram'], 'behance' => ['icon' => 'fa-brands fa-behance', 'label' => 'Behance'], 'artstation' => ['icon' => 'fa-solid fa-palette', 'label' => 'ArtStation'], 'youtube' => ['icon' => 'fa-brands fa-youtube', 'label' => 'YouTube'], 'website' => ['icon' => 'fa-solid fa-link', 'label' => 'Website'], ]; $seoPage = max(1, (int) request()->query('page', 1)); $seoBase = url()->current(); $seoQ = request()->query(); unset($seoQ['page']); $seoUrl = fn(int $p) => $seoBase . ($p > 1 ? '?' . http_build_query(array_merge($seoQ, ['page' => $p])) : (count($seoQ) ? '?' . http_build_query($seoQ) : '')); $seoPrev = $seoPage > 1 ? $seoUrl($seoPage - 1) : null; $seoNext = (isset($artworks) && method_exists($artworks, 'nextPageUrl')) ? $artworks->nextPageUrl() : null; @endphp @push('head') @if($seoPrev)@endif @if($seoNext)@endif @endpush @section('content') {{-- ═══════════════════════════════════════════════════════════ PROFILE HERO ═══════════════════════════════════════════════════════════ --}}
{{ e($displayName) }}
@endif @if($countryName)
@if($profile?->country_code)
@endif
{{ e($countryName) }}
Last seen {{ $lastVisit->diffForHumans() }}
@endif{{ e($feat->label) }}
@endif @if($feat->featured_at)Featured {{ \Carbon\Carbon::parse($feat->featured_at)->format('d M, Y') }}
@endif {{-- Side featured (2nd & 3rd) --}} @if($featuredArtworks->count() > 1){{ e($sideArt->name) }}
@endforeachNo artworks yet.
@endif| Username | {{ e($uname) }} |
| Real Name | {{ e($displayName) }} |
| Gender | {{ $gender['label'] }} |
| Birthday | {{ $birthdate }} |
| Country |
@if($profile?->country_code)
@endif
{{ e($countryName) }}
|
| Website | {{ e(parse_url($website, PHP_URL_HOST) ?? $website) }} |
| Last Activity | {{ $lastVisit->format('d.M.Y') }} {{ $lastVisit->format('H:i') }} |
| Member since | {{ $user->created_at ? $user->created_at->format('M Y') : 'N/A' }} |
| {{ $label }} | {{ $value }} @if($iconClass)@endif |
No comments yet.
@else{!! nl2br(e($comment->body)) !!}
@if(!empty($comment->author_signature)){!! nl2br(e($comment->author_signature)) !!}
@endifLog in to leave a comment.