@extends('frontend.layouts.app') @section('title', $user->name . ' — Profil — Animexe') @push('styles') @endpush @section('content') @php $pColor = $user->profile_color ?? '#00f5ff'; @endphp {{-- Hero --}}
{{-- Banner --}} @if($user->banner_image)
@else
@endif
{{-- Top row: avatar + info + edit button --}}
{{-- Avatar --}}
@if($user->avatar) {{ $user->name }} @else {{ mb_strtoupper(mb_substr($user->name,0,1)) }} @endif
{{ $user->name }}
@if($user->username)
@php echo '@' . e($user->username); @endphp
@endif @if($user->bio)
{{ $user->bio }}
@endif {{-- Sosyal linkler --}} @if($user->twitter || $user->instagram || $user->discord || $user->website)
@if($user->twitter) {{ $user->twitter }} @endif @if($user->instagram) {{ $user->instagram }} @endif @if($user->discord) {{ $user->discord }} @endif @if($user->website) {{ parse_url($user->website, PHP_URL_HOST) }} @endif
@endif
@if($user->role==='admin') Admin @elseif($user->role==='moderator') Moderatör @endif @if($user->isPremium()) Premium @else Üye @endif {{ $user->created_at->format('Y') }}'den beri
{{-- Ayarlar butonu — ayrı satırda, üstte sabit --}} Profili Düzenle
{{-- Stats --}}
{{ $watchStats['episodes'] }} Bölüm
{{ $watchStats['hours'] }} Saat
{{ $watchStats['watchlist'] }} Listede
{{ $commentCount }} Yorum
@if($allAchievements->count())
{{ $achievements->count() }} Başarım
@endif
{{-- Tab nav --}}
@if($continueItems->count()) @endif @if($allAchievements->count()) @endif
{{-- Body --}}
{{-- DEVAM ET --}} @if($continueItems->count())
Kaldığın Yerden Devam Et
@endif {{-- İZLEME LİSTESİ --}}
İzleme Listesi @if(auth()->user()->hasPerk('watchlist_export'))
CSV JSON
@endif
@if($watchlistItems->count()) {{-- Filter buttons --}}
@foreach(\App\Models\Watchlist::STATUSES as $status => $label) @if(isset($watchlistItems[$status]) && $watchlistItems[$status]->count()) @endif @endforeach
@foreach(\App\Models\Watchlist::STATUSES as $status => $label) @if(isset($watchlistItems[$status]) && $watchlistItems[$status]->count())
@foreach($watchlistItems[$status] as $wl) @if(!$wl->anime) @continue @endif @if($wl->anime->cover_image) @else
@endif
{{ $wl->anime->title }}
@endforeach
@endif @endforeach @else
Liste henüz boş.
@endif
{{-- AKTİVİTE / HEATMAP --}}
İzleme Aktivitesi — Son 1 Yıl
@php $today = now()->startOfDay(); $start = $today->copy()->subDays(364); $gridStart= $start->copy()->startOfWeek(\Carbon\Carbon::MONDAY); $weeks = []; $cur = $gridStart->copy(); while ($cur->lte($today)) { $week = []; for ($d = 0; $d < 7; $d++) { $key = $cur->format('Y-m-d'); $week[] = ['date'=>$key,'count'=>$heatmapRaw[$key]??0,'past'=>$cur->lte($today)&&$cur->gte($start)]; $cur->addDay(); } $weeks[] = $week; } $maxCount = !empty($heatmapRaw) ? max($heatmapRaw) : 1; $totalDays = collect($heatmapRaw)->filter()->count(); $totalEpYear= array_sum($heatmapRaw); @endphp
@foreach($weeks as $week)
@foreach($week as $cell) @php $alpha = 0; $bg = 'rgba(255,255,255,.05)'; if ($cell['past'] && $cell['count'] > 0) { $intensity = min(1, $cell['count'] / max($maxCount,1)); $alpha = 0.18 + $intensity * 0.82; $bg = "rgba(0,245,255,{$alpha})"; } elseif (!$cell['past']) { $bg = 'transparent'; } @endphp
@endforeach
@endforeach
Az
Çok
{{ $totalDays }} aktif gün {{ $totalEpYear }} bölüm izlendi
{{-- BAŞARIMLAR --}} @if($allAchievements->count())
@php $earnedIds = $achievements->pluck('achievement_id')->toArray(); @endphp
Başarımlar {{ $achievements->count() }}/{{ $allAchievements->count() }}
@foreach($allAchievements->sortByDesc(fn($a)=>in_array($a->id,$earnedIds)) as $ach) @php $earned = in_array($ach->id, $earnedIds); @endphp
{{ $ach->title }}
{{ $ach->description }}
@if($earned) @php $ea = $achievements->firstWhere('achievement_id',$ach->id); @endphp
{{ $ea?->earned_at?->format('d.m.Y') }}
@endif
@endforeach
@endif {{-- NOTLAR --}}
Bölüm Notlarım
@forelse($episodeNotes as $note)
@if($note->anime){{ $note->anime->title }}@endif @if($note->episode){{ $note->episode->episode_number }}. Bölüm@endif @if($note->timestamp_at) {{ $note->timestamp_label }}@endif {{ $note->created_at->format('d.m.Y') }}
{{ $note->content }}
@empty
Henüz not almadın.
İzlerken bölüm içindeki not ikonuna tıklayarak not alabilirsin.
@endforelse
{{-- YORUMLAR --}} {{-- ── Keşfet Geçmişi ──────────────────────────────────────── --}}
Keşfet Geçmişi @if($swipeHistory->count())
{{ $swipeHistory->where('direction','like')->count() }} beğeni {{ $swipeHistory->where('direction','skip')->count() }} geç Devam et
@endif
@if($swipeHistory->isEmpty())
Henüz hiç anime keşfetmedin. Hemen başla →
@else {{-- Filter buttons --}}
@endif
Son Yorumlar
@if($recentComments->isEmpty())
Henüz yorum yok.
@else @foreach($recentComments as $c)
{{ mb_strtoupper(mb_substr($user->name,0,1)) }}
{{ $user->name }} {{ $c->created_at->diffForHumans() }}
@if($c->content)
{{ $c->content }}
@endif @if($c->gif_url)@endif
@endforeach @endif
@endsection @push('scripts') @endpush