2021-07-15 21:17:48 +02:00
|
|
|
<?php
|
2020-04-10 20:32:12 +02:00
|
|
|
|
2022-05-17 01:37:07 +02:00
|
|
|
use App\Contribution\ContributionController;
|
2021-11-19 22:58:27 +01:00
|
|
|
use App\Course\Controllers\CourseController;
|
2022-10-28 12:01:04 +02:00
|
|
|
use App\Efz\ShowEfzDocumentAction;
|
2021-07-15 21:17:48 +02:00
|
|
|
use App\Http\Controllers\HomeController;
|
2022-08-31 00:33:36 +02:00
|
|
|
use App\Initialize\Actions\InitializeAction;
|
|
|
|
use App\Initialize\Actions\InitializeFormAction;
|
2022-04-29 00:57:24 +02:00
|
|
|
use App\Member\Controllers\MemberResyncController;
|
2021-07-15 21:17:48 +02:00
|
|
|
use App\Member\MemberConfirmController;
|
2020-06-02 23:45:25 +02:00
|
|
|
use App\Member\MemberController;
|
2021-08-22 22:23:17 +02:00
|
|
|
use App\Membership\MembershipController;
|
2021-07-04 22:32:40 +02:00
|
|
|
use App\Payment\AllpaymentController;
|
2021-07-15 21:17:48 +02:00
|
|
|
use App\Payment\PaymentController;
|
2021-07-17 18:46:02 +02:00
|
|
|
use App\Payment\SendpaymentController;
|
2021-07-04 01:44:41 +02:00
|
|
|
use App\Payment\SubscriptionController;
|
2021-07-15 21:17:48 +02:00
|
|
|
use App\Pdf\MemberPdfController;
|
2020-04-12 00:26:44 +02:00
|
|
|
|
2022-03-20 16:33:56 +01:00
|
|
|
Route::group(['namespace' => 'App\\Http\\Controllers'], function (): void {
|
2020-04-12 00:26:44 +02:00
|
|
|
Auth::routes(['register' => false]);
|
|
|
|
});
|
2020-04-10 20:32:12 +02:00
|
|
|
|
2021-07-17 18:46:02 +02:00
|
|
|
Route::group(['middleware' => 'auth:web'], function (): void {
|
2020-04-12 00:26:44 +02:00
|
|
|
Route::get('/', HomeController::class)->name('home');
|
2022-08-31 00:33:36 +02:00
|
|
|
Route::get('/initialize', InitializeFormAction::class)->name('initialize.form');
|
|
|
|
Route::post('/initialize', InitializeAction::class)->name('initialize.store');
|
2020-06-02 23:45:25 +02:00
|
|
|
Route::resource('member', MemberController::class);
|
2022-11-07 16:18:11 +01:00
|
|
|
Route::apiResource('member.payment', PaymentController::class);
|
2021-07-04 22:32:40 +02:00
|
|
|
Route::resource('allpayment', AllpaymentController::class);
|
2021-07-04 01:44:41 +02:00
|
|
|
Route::resource('subscription', SubscriptionController::class);
|
2021-06-28 22:09:41 +02:00
|
|
|
Route::post('/member/{member}/confirm', MemberConfirmController::class);
|
2021-07-16 00:12:19 +02:00
|
|
|
Route::get('/member/{member}/pdf', MemberPdfController::class)
|
|
|
|
->name('member.singlepdf');
|
2021-07-17 18:46:02 +02:00
|
|
|
Route::get('/sendpayment', [SendpaymentController::class, 'create'])->name('sendpayment.create');
|
|
|
|
Route::get('/sendpayment/pdf', [SendpaymentController::class, 'send'])->name('sendpayment.pdf');
|
2021-08-22 22:23:17 +02:00
|
|
|
Route::apiResource('member.membership', MembershipController::class);
|
2021-11-19 22:58:27 +01:00
|
|
|
Route::resource('member.course', CourseController::class);
|
2022-10-28 12:01:04 +02:00
|
|
|
Route::get('/member/{member}/efz', ShowEfzDocumentAction::class)->name('efz');
|
2022-04-29 00:57:24 +02:00
|
|
|
Route::get('/member/{member}/resync', MemberResyncController::class)->name('member.resync');
|
2022-05-17 01:37:07 +02:00
|
|
|
Route::get('/contribution', [ContributionController::class, 'form'])->name('contribution.form');
|
|
|
|
Route::get('/contribution/generate', [ContributionController::class, 'generate'])->name('contribution.generate');
|
2020-04-10 20:32:12 +02:00
|
|
|
});
|