<div class="tab-pane mt-3 fade" id="profileStats" role="tabpanel" aria-labelledby="profileStats-tab">
    <div class="row">
        <div class="col-12 col-lg-8 col-xl-6">
            <div class="alert alert-info">
                {{ trans('admin/main.profile_stats_intro') }}
            </div>

            @if(!empty($profileStatsComputed))
                <div class="text-muted text-small mb-3">
                    {{ trans('admin/main.profile_stats_computed_hint') }}:
                    {{ trans('quiz.students') }} {{ $profileStatsComputed['students'] }},
                    {{ trans('webinars.classes') }} {{ $profileStatsComputed['webinars'] }},
                    {{ trans('product.reviews') }} {{ $profileStatsComputed['reviews'] }},
                    {{ trans('site.appointments') }} {{ $profileStatsComputed['appointments'] }}
                </div>
            @endif

            <form action="{{ getAdminPanelUrl('/users/' . $user->id . '/profile-display-stats') }}" method="POST">
                {{ csrf_field() }}

                <div class="form-group">
                    <label>{{ trans('quiz.students') }}</label>
                    <input type="number" min="0" name="profile_stat_students"
                           value="{{ old('profile_stat_students', $user->profile_stat_students ?? '') }}"
                           class="form-control @error('profile_stat_students') is-invalid @enderror"
                           placeholder="{{ trans('admin/main.profile_stats_leave_empty') }}"/>
                    @error('profile_stat_students')
                    <div class="invalid-feedback">{{ $message }}</div>
                    @enderror
                </div>

                <div class="form-group">
                    <label>{{ trans('webinars.classes') }}</label>
                    <input type="number" min="0" name="profile_stat_webinars"
                           value="{{ old('profile_stat_webinars', $user->profile_stat_webinars ?? '') }}"
                           class="form-control @error('profile_stat_webinars') is-invalid @enderror"
                           placeholder="{{ trans('admin/main.profile_stats_leave_empty') }}"/>
                    @error('profile_stat_webinars')
                    <div class="invalid-feedback">{{ $message }}</div>
                    @enderror
                </div>

                <div class="form-group">
                    <label>{{ trans('product.reviews') }}</label>
                    <input type="number" min="0" name="profile_stat_reviews"
                           value="{{ old('profile_stat_reviews', $user->profile_stat_reviews ?? '') }}"
                           class="form-control @error('profile_stat_reviews') is-invalid @enderror"
                           placeholder="{{ trans('admin/main.profile_stats_leave_empty') }}"/>
                    @error('profile_stat_reviews')
                    <div class="invalid-feedback">{{ $message }}</div>
                    @enderror
                </div>

                <div class="form-group">
                    <label>{{ trans('site.appointments') }}</label>
                    <input type="number" min="0" name="profile_stat_appointments"
                           value="{{ old('profile_stat_appointments', $user->profile_stat_appointments ?? '') }}"
                           class="form-control @error('profile_stat_appointments') is-invalid @enderror"
                           placeholder="{{ trans('admin/main.profile_stats_leave_empty') }}"/>
                    @error('profile_stat_appointments')
                    <div class="invalid-feedback">{{ $message }}</div>
                    @enderror
                </div>

                <div class="form-group">
                    <button type="submit" class="btn btn-primary">{{ trans('admin/main.submit') }}</button>
                </div>
            </form>
        </div>
    </div>
</div>
