Direct payments for invoices

Events can be moved to archive and moved back
Fixed validation
This commit is contained in:
2026-05-12 16:04:15 +02:00
parent e2fb616565
commit 0cf9602958
42 changed files with 851 additions and 132 deletions
@@ -0,0 +1,27 @@
<?php
namespace App\Domains\Event\Controllers;
use App\Providers\InertiaProvider;
use App\Scopes\CommonController;
use Illuminate\Http\Request;
use Inertia\Response;
class ArchivedEventsController extends CommonController
{
public function __invoke(Request $request): Response {
$events = [];
foreach ($this->events->getEventsByCriteria(['archived' => true]) as $event) {
$events[] = [
'id' => $event->id,
'name' => $event->name,
'location' => $event->location,
'postalCode' => $event->postal_code,
'eventBegin' => $event->start_date->format('d.m.Y'),
'eventEnd' => $event->end_date->format('d.m.Y'),
];
}
return (new InertiaProvider('Event/ArchivedEvents', ['events' => $events]))->render();
}
}