Handling ICAL import

This commit is contained in:
2026-04-25 16:50:32 +02:00
parent 6f8be58943
commit 1ee6b9968f
22 changed files with 510 additions and 19 deletions

View File

@@ -20,7 +20,8 @@ class DashboardController extends CommonController {
private function renderForLoggedInUser(Request $request) {
$authCheckProvider = new AuthCheckProvider;
$inertiaProvider = new InertiaProvider('Dashboard/Dashboard', [
'myInvoices' => $this->invoices->getMyInvoicesWidget()
'myInvoices' => $this->invoices->getMyInvoicesWidget(),
'myParticipations' => $this->eventParticipants->getMyParticipations(),
]);
return $inertiaProvider->render();
@@ -38,4 +39,9 @@ class DashboardController extends CommonController {
$costUnits = $this->costUnits->listForSummary(5);
return response()->json(['openCostUnits' => $costUnits]);
}
public function getMyParticipations() : JsonResponse {
//dd($this->eventParticipants->getMyParticipations());
return response()->json(['myParticipations' => $this->eventParticipants->getMyParticipations()]);
}
}