@extends('frontend.layouts.app')
@section('title', $user->name . ' — Profil — Animexe')
@push('styles')
@endpush
@section('content')
@php $pColor = $user->profile_color ?? '#00f5ff'; @endphp
{{-- Hero --}}
{{-- DEVAM ET --}}
@if($continueItems->count())
@endif
{{-- İZLEME LİSTESİ --}}
İzleme Listesi
@if(auth()->user()->hasPerk('watchlist_export'))
@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())
@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
{{ $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)
@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())
@else
{{-- Filter buttons --}}
@endif
@endsection
@push('scripts')
@endpush