@extends('frontend.layouts.app') @section('title', $user->name . ' — Profil — Animexe') @section('meta_description', ($user->bio ? $user->bio . ' — ' : '') . $user->name . ' Animexe profili.') @push('styles') @endpush @section('content') @php $pColor = $user->profile_color ?? '#00f5ff'; $profBg = ($user->profile_bg && $user->hasPerk('profile_bg')) ? $user->profile_bg : null; $animBanner = $user->hasPerk('animated_banner') && $user->animated_banner; $watchRank = $user->watchRank(); $musicUrl = ($user->profile_music_url && $user->hasPerk('profile_music')) ? $user->profile_music_url : null; @endphp
@if($animBanner) @endif @if($user->banner_image)
@else
@endif
@php $hasFrame = $user->profile_frame && $user->hasPerk('profile_frame'); $avatarSrc = $user->gif_avatar && $user->hasPerk('gif_avatar') ? $user->gif_avatar : ($user->avatar ? \App\Support\MediaUrl::fromStoragePath($user->avatar) : null); @endphp
@if($hasFrame)
@endif
@if($avatarSrc) {{ $user->name }} @else {{ mb_strtoupper(mb_substr($user->name,0,1)) }} @endif
@php $unColor = $user->username_color && $user->hasPerk('username_color') ? 'username-color-'.$user->username_color : ''; $unEffect = $user->username_effect && $user->hasPerk('username_effect') ? 'username-effect-'.$user->username_effect : ''; @endphp
username_effect==='glitch' && $unEffect) data-text="{{ $user->name }}" @endif>{{ $user->name }}
@if($user->username)
@php echo '@' . e($user->username); @endphp
@endif @if($user->bio)
{{ $user->bio }}
@endif
@if($user->role==='admin') Admin @elseif($user->role==='moderator') Moderatör @endif @if($user->isPremium()) Premium @else Üye @endif @if($user->profile_badge && $user->hasPerk('profile_badge')) {{ $user->profile_badge }} @endif @if($watchRank) {{ $watchRank['label'] }} @endif {{ $user->created_at->format('Y') }}'den beri
@if($isOwnProfile) Profili Düzenle @elseif(auth()->check())
@csrf
@endif
@if($compatibility !== null)
Anime zevk uyumu
%{{ $compatibility }}
@endif
{{ $watchStats['episodes'] }}Bölüm
{{ $watchStats['hours'] }}Saat
{{ $followerCount }}Takipçi
{{ $followingCount }}Takip
{{ $commentCount }}Yorum
@if($musicUrl)
{{ $user->name }} · Profil Müziği
@endif
{{-- İzleme Listesi --}}
@php $watching = $watchlistItems->get('watching',[]); $completed = $watchlistItems->get('completed',[]); $planToWatch = $watchlistItems->get('plan_to_watch',[]); @endphp @if($watchlistItems->isEmpty())
Henüz izleme listesi yok.
@else @foreach(['watching'=>'İzliyor','completed'=>'Tamamladı','plan_to_watch'=>'İzleyecek'] as $status => $label) @php $items = $watchlistItems->get($status, collect()); @endphp @if($items->count())
{{ $label }} ({{ $items->count() }})
@foreach($items->take(12) as $wl) @if($wl->anime) @if($wl->anime->cover_image) {{ $wl->anime->title }} @else
@endif
{{ $wl->anime->title }}
@endif @endforeach
@endif @endforeach @endif
{{-- Başarımlar --}}
@if($achievements->isEmpty())
Henüz başarım kazanılmamış.
@else
@foreach($achievements as $ua)
{{ $ua->achievement->name }}
{{ $ua->achievement->description }}
@endforeach
@endif
{{-- Yorumlar --}}
@if($recentComments->isEmpty())
Henüz yorum yok.
@else @foreach($recentComments as $c) @php $ep = $c->episode; $anime = $ep?->anime ?? $c->anime; @endphp
@if($anime) {{ $anime->title }} @endif {{ $c->created_at->diffForHumans() }}
{{ Str::limit($c->content, 200) }}
@endforeach @endif
@endsection @push('scripts') @endpush