2021-07-15 21:17:48 +02:00
|
|
|
<?php
|
2020-04-10 20:32:12 +02:00
|
|
|
|
2021-11-19 22:58:27 +01:00
|
|
|
use App\Course\Controllers\CourseController;
|
2021-07-15 21:17:48 +02:00
|
|
|
use App\Http\Controllers\HomeController;
|
|
|
|
use App\Initialize\InitializeController;
|
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;
|
2022-03-20 16:33:56 +01:00
|
|
|
use App\Pdf\MemberEfzController;
|
2021-07-15 21:17:48 +02:00
|
|
|
use App\Pdf\MemberPdfController;
|
2021-11-19 00:15:20 +01:00
|
|
|
use App\Setting\Controllers\SettingController;
|
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');
|
2020-06-02 22:43:40 +02:00
|
|
|
Route::resource('initialize', InitializeController::class);
|
2020-06-02 23:45:25 +02:00
|
|
|
Route::resource('member', MemberController::class);
|
2021-07-04 16:56:07 +02:00
|
|
|
Route::resource('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 00:15:20 +01:00
|
|
|
Route::resource('setting', SettingController::class);
|
2021-11-19 22:58:27 +01:00
|
|
|
Route::resource('member.course', CourseController::class);
|
2022-03-20 16:33:56 +01:00
|
|
|
Route::get('/member/{member}/efz', MemberEfzController::class)->name('efz');
|
2022-04-29 00:57:24 +02:00
|
|
|
Route::get('/member/{member}/resync', MemberResyncController::class)->name('member.resync');
|
2020-04-10 20:32:12 +02:00
|
|
|
});
|