commit 08-2025
This commit is contained in:
parent
9b54eb0512
commit
02f2a4c23e
184 changed files with 31653 additions and 22327 deletions
41
app/Http/Controllers/Admin/PaymentReminderController.php
Normal file
41
app/Http/Controllers/Admin/PaymentReminderController.php
Normal 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'
|
||||
));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue