Statistik-Änderungen 2026-08-19 (dev/2026-07-22/entwicklungsplan-2026-08-19.md, alle 8 Pakete gemäß beantworteten F-Fragen): - N1 Monatsstatistik: Team-Cluster (Firstlines klickbar -> neue Seite user_team_firstlines, Teampartner gesamt/Payline [nur aktive], Abos Payline mit +N) + Level-Kachel (Quali-Stufe, fehlende Payline-/persönliche Punkte, Karriere-Level); LiveCommissionService-Snapshot v3 reicht Level-/Quali-Daten durch - N2 Abo-Kacheln auf Home monatsbezogen (aboStockCount-Rückrechnung über cancel/deleted/Status-Historie; VIP-Statistik bleibt tagesaktuell) - N3 VIP-Statistik 'Recruiter des Monats' (Neupartner-Definition wie KPI, rekursives Ketten-Volumen als Gesamtpunkte inkl. Starterpaket) + Drilldown/CSV-Spalte 'Punkte gesamt' - N4 Prognose-Block 'Level & Provision laut Prognose (Stand 25.)' mit unverbindlich-Kennzeichnung (ebenengenaue offene Abo-Punkte + TP-Laufstände) - N5 Checkout-Herkunft: Dropdown raus, Pflicht-Freitext (lokalisierte Fehlermeldung) - N6 Berater-Profilfoto (user_accounts.profile_image, Einwilligung als Sprachkey-Platzhalter, DSGVO-Löschung) + teaminterne Top-3-Karte (TopResultsService, Scope-Schalter) - N7 USt-Optionen: 'nicht umsatzsteuerpflichtig' zuerst + '§ 19 UStG'-Textfix - N8 Jahresgebühr-Nachfassliste je Berater (AnnualFeeDueService, überfällig/1-3 Monate, Sidenav) Kontroll-Review (8 Perspektiven) angewendet: next-Level-Fallback im Steady-State (resolveNextLevel — sonst 'Höchstes Level erreicht' für Normalfälle), _calculated-Punktebasis bei mehr Paylines, keine Wiederbelebung deaktivierter Abos in der Monatsrückrechnung, Payline-Abo-Kachel monatskonsistent, Top-3-Nachrücker; Performance: BackofficeDashboardService als Singleton mit lineBuckets-Memo (+flushLineBucketsMemo), level_forecast 6h-Cache; Reuse: User-Scopes firstlinesOf/newPartnerIn, SalesVolumePoints::totalPointsByUser, Slim::storeCroppedImage (3 Upload-Kopien vereinigt), activeAbo-Scope statt Inline-Prädikate, Form::open-Konvention, Return-Types Repair-Härtung (Kundenentscheide): VP-Nachtrepair dedupliziert über shopping_order_id (Live-Pfad schreibt sie jetzt mit), zählende Alt-Zeilen-Erkennung, Vormonats-Scan für Monatswechsel, Firmenaccount-Buchungen (config mivita.company_user_id) werden automatisch auf den Berater umgebucht (in place bzw. per Gegenbuchung bei geschlossenem Monat; Echtfall Anna Schall Order 58797 -> Christina Schuder), Berater-zu-Berater nur Warnung; Incentive-Repair: m_sponsor=NULL löscht nicht mehr, FK-Repair vor Stale-Bereinigung, gebatchte Lookups, zentrales Incentive::qualificationWindow(); .env aus dem Git-Tracking entfernt (Pflege per SFTP) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
65 lines
3.6 KiB
PHP
65 lines
3.6 KiB
PHP
{{-- Berater-Profilfoto (N6): eigener Upload-Block (eigene Form, daher außerhalb
|
|
des Profil-Formulars eingebunden). Slim-Cropper-Muster wie beim Shop-Bild. --}}
|
|
<div class="card mb-4">
|
|
<h5 class="card-header">{{ __('account.profile_image') }}<br>
|
|
<small>{{ __('account.profile_image_copy') }}</small>
|
|
</h5>
|
|
<div class="card-body p-3">
|
|
@if ($user->account->getProfileImageUrl())
|
|
<div class="text-center">
|
|
@include('components._avatar', [
|
|
'imageUrl' => $user->account->getProfileImageUrl(),
|
|
'firstName' => $user->account->first_name,
|
|
'lastName' => $user->account->last_name,
|
|
'size' => 120,
|
|
])
|
|
<br><br>
|
|
<a href="{{ route('user_profile_delete_image') }}" class="btn btn-danger"
|
|
onclick="return confirm('{{ __('actions.really_delete_picture') }}');"><i class="fa fa-trash"></i>
|
|
{{ __('account.profile_image_delete') }}</a>
|
|
</div>
|
|
@else
|
|
<form method="POST" action="{{ route('user_profile_upload_image') }}" accept-charset="UTF-8" class="avatar"
|
|
enctype="multipart/form-data">
|
|
@csrf
|
|
<div class="slim_holder text-center">
|
|
<div class="slim" style="margin:20px auto; max-width: 320px;"
|
|
data-label='<span class="text-green">{{ __('actions.upload_photo') }}</span><br>({{ __('actions.search_file_or_drag_drop') }})'
|
|
data-size="400,400"
|
|
data-min-size="200,200"
|
|
data-max-file-size="10"
|
|
data-status-image-too-small="{{ __('actions.image_too_small') }}"
|
|
data-status-file-type="{{ __('actions.invalid_file') }}"
|
|
data-status-file-size="{{ __('actions.file_is_too_big') }}"
|
|
data-button-confirm-label="{{ __('actions.confirm') }}"
|
|
data-button-cancel-label="{{ __('actions.cancel') }}"
|
|
data-button-confirm-title="{{ __('actions.confirm') }}"
|
|
data-button-cancel-title="{{ __('actions.cancel') }}"
|
|
data-button-rotate-title="{{ __('actions.rotate') }}"
|
|
data-ratio="1:1">
|
|
<input type="file" name="images[]" required />
|
|
</div>
|
|
|
|
<div class="form-group text-left mx-auto" style="max-width: 480px;">
|
|
<label class="custom-control custom-checkbox m-0">
|
|
<input type="checkbox" class="custom-control-input" name="profile_image_consent"
|
|
id="profile_image_consent" value="1">
|
|
<span class="custom-control-label">{{ __('account.profile_image_consent') }}</span>
|
|
</label>
|
|
</div>
|
|
|
|
<button class="btn btn-primary" type="submit" id="profile-image-submit"
|
|
disabled>{{ __('actions.save_image') }}</button>
|
|
</div>
|
|
</form>
|
|
<script type="application/javascript">
|
|
$(document).ready(function() {
|
|
// Ohne Einwilligung kein Upload (zusätzlich serverseitig geprüft).
|
|
$('#profile_image_consent').on('change', function() {
|
|
$('#profile-image-submit').prop('disabled', !this.checked);
|
|
});
|
|
});
|
|
</script>
|
|
@endif
|
|
</div>
|
|
</div>
|