@extends('layout.default')
@section('title')
{{ $user->username }} {{ __('user.achievements') }} - {{ config('other.title') }}
@endsection
@section('breadcrumbs')
{{ $user->username }}
{{ __('user.achievements') }}
@endsection
@section('nav-tabs')
@include('user.buttons.user')
@endsection
@section('page', 'page__achievements--index')
@if (auth()->user()->isAllowed($user, 'achievement', 'show_achievement'))
@section('main')
{{ __('user.unlocked-achievements') }}
@foreach ($achievements->load('details') as $achievement)
{{ $achievement->details->description }}
@endforeach
{{ __('user.pending-achievements') }}
@foreach ($pending->load('details') as $achievement)
{{ $achievement->details->description }}
@endforeach
@endsection
@section('sidebar')
{{ __('user.statistics') }}
- {{ __('user.unlocked-achievements') }}:
- {{ auth()->user()->unlockedAchievements()->count() }}
- {{ __('user.locked-achievements') }}
- {{ auth()->user()->lockedAchievements()->count() }}
@endsection
@else
@section('main')
{{ __('user.private-profile') }}
{{ __('user.not-authorized') }}
@endsection
@endif