@extends('web.default.panel.layouts.panel_layout') @section('content')

{{ trans('update.points_statistics') }}

{{ $availablePoints }} {{ trans('update.available_points') }}
{{ $totalPoints }} {{ trans('update.total_points') }}
{{ $spentPoints }} {{ trans('update.spent_points') }}
gift

{{ trans('update.exchange_or_get_a_course') }}

@if(!empty($rewardsSettings) and !empty($rewardsSettings['exchangeable']) and $rewardsSettings['exchangeable'] == '1')

{{ trans('update.exchange_or_get_a_course_by_spending_points_hint') }}

{{ handlePrice($earnByExchange) }}

{{ trans('update.for_your_available_points') }}

@else

{{ trans('update.just_get_a_course_by_spending_points_hint') }}

@endif
@if(!empty($rewardsSettings) and !empty($rewardsSettings['exchangeable']) and $rewardsSettings['exchangeable'] == '1') @endif {{ trans('update.browse_courses') }}
medal

{{ trans('update.want_more_points') }}

{{ trans('update.want_more_points_hint') }}

@if(!empty($mostPointsUsers) and count($mostPointsUsers))
@php $leaderboard = $mostPointsUsers->shift(); @endphp

{{ trans('update.leaderboard') }}

{{ $leaderboard->user->full_name }}
{{ $leaderboard->user->full_name }} {{ $leaderboard->total_points }} {{ trans('update.points') }}
@foreach($mostPointsUsers as $mostPoint)
{{ $mostPoint->user->full_name }}
{{ $mostPoint->user->full_name }} {{ $mostPoint->total_points }} {{ trans('update.points') }}
@endforeach
@endif

{{ trans('update.points_statistics') }}

@if(!empty($rewards))
@foreach($rewards as $reward) @endforeach
{{ trans('public.title') }} {{ trans('update.points') }} {{ trans('public.type') }} {{ trans('public.date_time') }}
{{ trans('update.reward_type_'.$reward->type) }} {{ $reward->score }} @if($reward->status == \App\Models\RewardAccounting::ADDICTION) {{ trans('update.add') }} @else {{ trans('update.minus') }} @endif {{ dateTimeFormat($reward->created_at, 'j F Y H:i') }}
{{ $rewards->links('vendor.pagination.panel') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'quiz.png', 'title' => trans('update.reward_no_result'), 'hint' => nl2br(trans('update.reward_no_result_hint')), ]) @endif
@if(!empty($rewardsSettings) and !empty($rewardsSettings['exchangeable']) and $rewardsSettings['exchangeable'] == '1') @include('web.default.panel.rewards.exchange_modal') @endif @endsection @push('scripts_bottom') @endpush