@extends('layouts.gamification')
@section('title', __('Задания недели'))
@section('gami-active', 'quests')
@push('styles')
@endpush
@section('gami-content')
{{ __('Задания недели') }}
{{ __('Обновляются каждый понедельник. Текущая неделя — до :date.', ['date' => $weekEnd->format('d.m')]) }}
@if (empty($quests))
@include('partials._mascot', ['pose' => 'thinking', 'class' => 'ax-mascot--empty'])
{{ __('Заданий пока нет.') }}
@endif
@foreach ($quests as $q)
{{ $q->icon }}
{{ $q->title }}
{{ (int) $q->progress }} / {{ (int) $q->target }}
{{ (int) $q->coin_reward }} 🪙
@if ($q->claimed)
{{ __('✅ получено') }}
@elseif ($q->done)
@endif
@endforeach
{{-- WeeklyQuests::forTeam(): the team's total, each member claims for themselves. --}}
{{ __('Задания команды') }}
@if (! $hasTeam)
{{ __('Вступи в команду или создай свою — задания команды выполняются вместе.') }}
{{ __('Команды') }}
@elseif (empty($teamQuests))
{{ __('На этой неделе заданий для команд нет.') }}
@endif
@foreach ($teamQuests as $q)
{{ $q->icon }}
{{ $q->title }}
{{ (int) $q->progress }} / {{ (int) $q->target }} · {{ __('твой вклад: :n', ['n' => (int) $q->mine]) }}
{{ (int) $q->coin_reward }} 🪙
@if ($q->claimed)
{{ __('✅ получено') }}
@elseif ($q->done)
@endif
@endforeach
@endsection