mivita/resources/views/home.blade.php
Kevin 27b4ad3eb5 Backoffice-Statistik vereinfacht & Dashboard-Monatsstatistik konsolidiert
- Statistik-Uebersicht: Tabelle auf Linie/Berater/Umsatz(Punkte)/Teamabos/
  Teamkundenabos reduziert; Neupartner als grünes "+N"-Badge in der
  Berater-Spalte; 1000-Punkte-Shop & Neupartner als klickbare KPI-Cards
  (Augen-Icon/Liste anzeigen)
- Teamkundenabos-Drilldown pro Teampartner gruppiert (Anzahl + Volumenpunkte
  gesamt, aufklappbar je Abo), CSV-Export angepasst
- Home: fehlerhafte Monatsstatistik-Card (inkonsistente aktiv-Definition,
  kein Monatsbezug, schwere Live-Logik im Blade) mit der Abo-KPI-Card
  zusammengefuehrt; Logik nach HomeController::buildMonthlyStats() ausgelagert,
  konsistent ueber TeamAboOverviewService/BackofficeDashboardService
- Team-Payline fuer laufenden Monat live berechnet und 6h gecacht (Snapshot)
- Kacheln in Cluster (Umsatz/Neupartner/Abos) gruppiert
- Services: teamKpis() um *_new ergaenzt, personalAboKpis() & newPartnersCount() neu
- i18n (de/en/es/fr), Tests ergaenzt/aktualisiert

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 13:00:38 +00:00

58 lines
1.8 KiB
PHP
Executable file

@extends('layouts.layout-2')
@section('content')
@if ($errors->any())
<div class="row">
<div class="col-sm-12">
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
</div>
</div>
@endif
<h4 class="media align-items-center font-weight-bold py-3 mb-2">
{{-- <img src="assets/img/avatars/1.png" alt="" class="ui-w-50 rounded-circle"> --}}
<div class="media-body ml-3">
{{ __('home.welcome_back') }}, {{ $user->account->first_name }}!
<div class="text-muted text-tiny mt-1"><small class="font-weight-normal">{{ __('home.today_is') }}
{{ __('cal.weekdays.' . $now->format('l')) }}, {{ $now->format('j') }}.
{{ __('cal.months.' . $now->format('F')) }} {{ $now->format('Y') }}</small></div>
</div>
</h4>
<hr class="container-m-nx mt-0 mb-4">
<div class="row">
@include('dashboard._abo_onetime')
@if (Auth::user()->isActiveAccount())
@include('dashboard._news', ['newsColClass' => empty($oneTimeAbo) ? 'col-xl-12' : 'col-xl-6'])
@include('dashboard._incentive')
@endif
@include('dashboard._reminder')
@include('dashboard._membership')
@include('dashboard._shop')
@if (Auth::user()->isActiveAccount())
@include('dashboard._statistics')
@include('dashboard._points')
@include('dashboard._activities')
@endif
@include('dashboard._settings')
</div>
<hr class="container-m-nx mt-0 mb-4">
@endsection