diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index dc5e6a6..36abafd 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -25,11 +25,18 @@ } $formatCurrency=static fn (float $value): string=> number_format($value, 2, ',', '.') . ' €'; + $formatCurrencyCompact = static function (float $value): string { + if ($value >= 1000000) { + return number_format($value / 1000000, 0, ',', '.') . ' Mio. €'; + } + return number_format($value, 2, ',', '.') . ' €'; + }; $formatNumber = static fn ($value): string => number_format($value, 0, ',', '.'); $riskSegments = collect([ 'Kritisch (≥80)' => $transactions->filter(fn ($trx) => $trx->risk_score >= 80), - 'Hoch (65-79)' => $transactions->filter(fn ($trx) => $trx->risk_score >= 65 && $trx->risk_score < 80), 'Beobachtung (40-64)'=> $transactions->filter(fn ($trx) => $trx->risk_score >= 40 && $trx->risk_score < 65), 'Routine (<40)'=> $transactions->filter(fn ($trx) => $trx->risk_score < 40), + 'Hoch (65-79)' => $transactions->filter(fn ($trx) => $trx->risk_score >= 65 && $trx->risk_score < 80), + 'Beobachtung (40-64)' => $transactions->filter(fn ($trx) => $trx->risk_score >= 40 && $trx->risk_score < 65), ])->map(fn ($group, $label) => [ 'label' => $label, 'count' => $group->count(), @@ -69,7 +76,7 @@
Gesamtvolumen
-{{ $formatCurrency($totalVolume) }}
+{{ $formatCurrencyCompact($totalVolume) }}
Alerts pro Analyst:in
@@ -108,7 +115,7 @@Volumen
-{{ $formatCurrency($segment['volume']) }}
+{{ $formatCurrencyCompact($segment['volume']) }}
Volumen
-{{ $formatCurrency($company['volume']) }}
+{{ $formatCurrencyCompact($company['volume']) }}
{{ __('Transaktionen gesamt') }}
{{ $metrics['total_count'] }}
-{{ __('Volumen') }} {{ $formatCurrency($metrics['total_volume']) }}
+{{ __('Volumen') }} {{ $formatCurrencyCompact($metrics['total_volume']) }}
{{ __('Offene Alerts') }}
{{ $metrics['open_alerts']['count'] }}
-{{ __('Volumen') }} {{ $formatCurrency($metrics['open_alerts']['amount']) }}
+{{ __('Volumen') }} {{ $formatCurrencyCompact($metrics['open_alerts']['amount']) }}
{{ __('High-Risk-Anteil') }}
diff --git a/resources/views/livewire/transaction-review.blade.php b/resources/views/livewire/transaction-review.blade.php index aaae9cb..603135d 100644 --- a/resources/views/livewire/transaction-review.blade.php +++ b/resources/views/livewire/transaction-review.blade.php @@ -432,18 +432,17 @@ Transaction::STATUS_CLEARED => [{{ $summaryText }}
- -