+
+ Umsatz {{ salesStatistics?.year || '' }}
+ Card Description
+
+
+
+
+ {{
+ toRoundedCurrency(salesStatistics?.paid) || '' }}
+ {{ toRoundedCurrency(salesTarget) }}
+
+
+
+
+
+
+
+
+
+
+
+
+ Bezahlt
+ {{ toRoundedCurrency(salesStatistics.paid) }}
+
+
+
+
+
+
+
+
+
+
+ Gestellt
+ {{ toRoundedCurrency(salesStatistics.issued) }}
+
+
+
+
+
+
+
+
+
+
+ Fällig
+ {{ toRoundedCurrency(salesStatistics.due) }}
+
+
+
+
+
+
+
+
+
+
+ Gemahnt
+ {{ toRoundedCurrency(salesStatistics.reminded) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Neuer Erfolg
+ Card Description
+
+
+
+
+
+ Du hast zwei neue Erfolge
+
+ Weiter so
+
+
+
+
+
+ Du hast länger keine Bestandskunden mehr kontaktiert
+
+ Hier sind ein paar Vorschläge für Dich
+
+
+
+
+
+
+
+
+
+
diff --git a/routes/api.php b/routes/api.php
index 3cd0655..5b4bbb6 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -26,6 +26,7 @@
Route::get('/invoices/summary', [InvoiceController::class, 'summaryAll']);
Route::get('/invoices/summaryThisYear', [InvoiceController::class, 'summaryThisYear']);
Route::get('/invoices/summaryBeforeThisYear', [InvoiceController::class, 'summaryBeforeThisYear']);
+Route::get('/invoices/salesStatistics', [InvoiceController::class, 'salesStatistics']);
Route::get('/invoices', [InvoiceController::class, 'index']);
Route::post('/invoices', [InvoiceController::class, 'store']);
Route::get('/invoices/{id}', [InvoiceController::class, 'single']);