commit 08-2025

This commit is contained in:
Kevin Adametz 2025-08-12 15:51:04 +02:00
parent 9b54eb0512
commit 02f2a4c23e
184 changed files with 31653 additions and 22327 deletions

View file

@ -0,0 +1,41 @@
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Services\PaymentReminderService;
use Illuminate\Http\Request;
class PaymentReminderController extends Controller
{
/* not used at the moment */
private $paymentReminderService;
public function __construct(PaymentReminderService $paymentReminderService)
{
$this->paymentReminderService = $paymentReminderService;
}
/**
* Zeige die Payment Reminders Übersicht
*/
public function index()
{
$detailedData = $this->paymentReminderService->getDetailedPaymentsData();
$summaryData = $this->paymentReminderService->getAllOpenPayments();
// Statistiken für die Übersicht
$totalPayments = collect($detailedData)->count();
$totalAmount = collect($detailedData)->sum('amount');
$clearingTypes = collect($detailedData)->groupBy('clearingtype')->map->count();
return view('admin.payment.reminder.index', compact(
'detailedData',
'summaryData',
'totalPayments',
'totalAmount',
'clearingTypes'
));
}
}