{{-- 文件功能:我的成就页面 按分类展示当前用户的固定成就解锁状态与进度。 --}} @extends('layouts.app') @section('title', '我的成就 - 飘落流星') @section('nav-icon', '🏅') @section('nav-title', '我的成就') @section('content')

{{ $user->username }} 的成就档案

已解锁 {{ $unlocked_count }} / {{ $total_count }} 项

@foreach ($categories as $categoryKey => $categoryLabel) @php $items = $achievements->where('category', $categoryKey)->values(); @endphp @if ($items->isEmpty()) @continue @endif

{{ $categoryLabel }}成就

{{ $items->where('unlocked', true)->count() }} / {{ $items->count() }}
@foreach ($items as $achievement)
{{ $achievement['icon'] }}

{{ $achievement['name'] }}

{{ $achievement['unlocked'] ? '已解锁' : '进行中' }}

{{ $achievement['description'] }}

{{ number_format($achievement['progress_value']) }} / {{ number_format($achievement['threshold']) }}
@if ($achievement['achieved_at'])

解锁于 {{ $achievement['achieved_at']->format('Y-m-d H:i') }}

@endif
@endforeach
@endforeach @if ($achievements->isEmpty())

暂无对应成就

切换其他筛选查看成就列表。

@endif
@endsection