2021-07-15 21:17:48 +02:00
|
|
|
<?php
|
2020-04-10 20:32:12 +02:00
|
|
|
|
2023-02-15 01:36:59 +01:00
|
|
|
use App\Activity\Actions\ActivityStoreAction;
|
2023-02-17 01:50:44 +01:00
|
|
|
use App\Activity\Actions\ActivityUpdateAction;
|
2023-02-25 18:00:23 +01:00
|
|
|
use App\Activity\Actions\CreateAction as ActivityCreateAction;
|
2023-02-25 17:19:17 +01:00
|
|
|
use App\Activity\Actions\DestroyAction as ActivityDestroyAction;
|
2023-03-04 12:02:17 +01:00
|
|
|
use App\Activity\Actions\EditAction as ActivityEditAction;
|
|
|
|
use App\Activity\Actions\IndexAction as ActivityIndexAction;
|
2023-03-07 01:35:39 +01:00
|
|
|
use App\Activity\Api\SubactivityShowAction;
|
2023-03-04 12:02:17 +01:00
|
|
|
use App\Activity\Api\SubactivityStoreAction;
|
2023-03-07 00:22:01 +01:00
|
|
|
use App\Activity\Api\SubactivityUpdateAction;
|
2022-11-17 21:47:45 +01:00
|
|
|
use App\Contribution\Actions\FormAction as ContributionFormAction;
|
2023-03-14 22:29:39 +01:00
|
|
|
use App\Contribution\Actions\GenerateAction as ContributionGenerateAction;
|
|
|
|
use App\Contribution\Actions\ValidateAction as ContributionValidateAction;
|
2023-10-18 01:11:36 +02:00
|
|
|
use App\Course\Actions\CourseDestroyAction;
|
|
|
|
use App\Course\Actions\CourseIndexAction;
|
|
|
|
use App\Course\Actions\CourseStoreAction;
|
2023-12-13 00:35:39 +01:00
|
|
|
use App\Invoice\Actions\InvoiceStoreAction;
|
2023-10-18 01:11:36 +02:00
|
|
|
use App\Course\Actions\CourseUpdateAction;
|
2023-04-29 21:30:41 +02:00
|
|
|
use App\Dashboard\Actions\IndexAction as DashboardIndexAction;
|
2022-10-28 12:01:04 +02:00
|
|
|
use App\Efz\ShowEfzDocumentAction;
|
2023-08-25 00:23:38 +02:00
|
|
|
use App\Group\Actions\ListAction;
|
2022-08-31 00:33:36 +02:00
|
|
|
use App\Initialize\Actions\InitializeAction;
|
|
|
|
use App\Initialize\Actions\InitializeFormAction;
|
2023-05-18 01:13:28 +02:00
|
|
|
use App\Initialize\Actions\NamiGetSearchLayerAction;
|
2023-05-07 21:17:28 +02:00
|
|
|
use App\Initialize\Actions\NamiLoginCheckAction;
|
2023-05-07 21:15:17 +02:00
|
|
|
use App\Initialize\Actions\NamiSearchAction;
|
2023-12-17 22:33:29 +01:00
|
|
|
use App\Invoice\Actions\DisplayPdfAction;
|
2023-12-17 00:55:31 +01:00
|
|
|
use App\Invoice\Actions\InvoiceDestroyAction;
|
2023-12-16 01:13:49 +01:00
|
|
|
use App\Invoice\Actions\InvoiceIndexAction;
|
2023-12-17 00:45:03 +01:00
|
|
|
use App\Invoice\Actions\InvoiceUpdateAction;
|
2023-12-16 00:16:07 +01:00
|
|
|
use App\Invoice\Actions\MassStoreAction;
|
2023-12-17 21:13:52 +01:00
|
|
|
use App\Invoice\Actions\PaymentPositionIndexAction;
|
2023-06-13 22:03:32 +02:00
|
|
|
use App\Maildispatcher\Actions\CreateAction;
|
2023-06-15 00:08:01 +02:00
|
|
|
use App\Maildispatcher\Actions\DestroyAction;
|
|
|
|
use App\Maildispatcher\Actions\EditAction;
|
2023-06-13 22:03:32 +02:00
|
|
|
use App\Maildispatcher\Actions\IndexAction;
|
2023-06-12 13:12:46 +02:00
|
|
|
use App\Maildispatcher\Actions\StoreAction as MaildispatcherStoreAction;
|
2023-06-15 00:08:01 +02:00
|
|
|
use App\Maildispatcher\Actions\UpdateAction as MaildispatcherUpdateAction;
|
2023-06-01 15:45:02 +02:00
|
|
|
use App\Mailgateway\Actions\StoreAction;
|
2023-06-08 00:00:35 +02:00
|
|
|
use App\Mailgateway\Actions\UpdateAction;
|
2023-03-14 23:55:50 +01:00
|
|
|
use App\Member\Actions\ExportAction;
|
2023-08-15 23:03:51 +02:00
|
|
|
use App\Member\Actions\MemberDeleteAction;
|
2023-02-08 00:14:59 +01:00
|
|
|
use App\Member\Actions\MemberResyncAction;
|
2022-11-18 15:55:44 +01:00
|
|
|
use App\Member\Actions\MemberShowAction;
|
2023-02-26 20:51:59 +01:00
|
|
|
use App\Member\Actions\SearchAction;
|
2020-06-02 23:45:25 +02:00
|
|
|
use App\Member\MemberController;
|
2023-10-16 12:52:59 +02:00
|
|
|
use App\Membership\Actions\IndexAction as MembershipIndexAction;
|
2023-10-16 12:36:56 +02:00
|
|
|
use App\Membership\Actions\ListForGroupAction;
|
2022-11-16 23:39:44 +01:00
|
|
|
use App\Membership\Actions\MembershipDestroyAction;
|
|
|
|
use App\Membership\Actions\MembershipStoreAction;
|
2022-12-11 21:00:48 +01:00
|
|
|
use App\Membership\Actions\MembershipUpdateAction;
|
2023-10-16 12:36:56 +02:00
|
|
|
use App\Membership\Actions\StoreForGroupAction;
|
2021-07-17 18:46:02 +02:00
|
|
|
use App\Payment\SendpaymentController;
|
2021-07-04 01:44:41 +02:00
|
|
|
use App\Payment\SubscriptionController;
|
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 {
|
2023-04-29 21:30:41 +02:00
|
|
|
Route::get('/', DashboardIndexAction::class)->name('home');
|
2023-05-07 21:17:28 +02:00
|
|
|
Route::post('/nami/login-check', NamiLoginCheckAction::class)->name('nami.login-check');
|
2023-05-18 01:13:28 +02:00
|
|
|
Route::post('/nami/get-search-layer', NamiGetSearchLayerAction::class)->name('nami.get-search-layer');
|
2023-05-07 21:15:17 +02:00
|
|
|
Route::post('/nami/search', NamiSearchAction::class)->name('nami.search');
|
2022-08-31 00:33:36 +02:00
|
|
|
Route::get('/initialize', InitializeFormAction::class)->name('initialize.form');
|
|
|
|
Route::post('/initialize', InitializeAction::class)->name('initialize.store');
|
2023-08-15 23:03:51 +02:00
|
|
|
Route::resource('member', MemberController::class)->except('show', 'destroy');
|
|
|
|
Route::delete('/member/{member}', MemberDeleteAction::class);
|
2022-11-18 15:55:44 +01:00
|
|
|
Route::get('/member/{member}', MemberShowAction::class)->name('member.show');
|
2021-07-04 01:44:41 +02:00
|
|
|
Route::resource('subscription', SubscriptionController::class);
|
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');
|
2022-10-28 12:01:04 +02:00
|
|
|
Route::get('/member/{member}/efz', ShowEfzDocumentAction::class)->name('efz');
|
2023-02-08 00:14:59 +01:00
|
|
|
Route::get('/member/{member}/resync', MemberResyncAction::class)->name('member.resync');
|
2023-03-14 23:55:50 +01:00
|
|
|
Route::get('member-export', ExportAction::class)->name('member-export');
|
2023-02-14 14:27:11 +01:00
|
|
|
Route::get('/activity', ActivityIndexAction::class)->name('activity.index');
|
2023-02-25 17:19:17 +01:00
|
|
|
Route::get('/activity/{activity}/edit', ActivityEditAction::class)->name('activity.edit');
|
2023-02-25 18:00:23 +01:00
|
|
|
Route::get('/activity/create', ActivityCreateAction::class)->name('activity.create');
|
2023-02-15 01:36:59 +01:00
|
|
|
Route::post('/activity', ActivityStoreAction::class)->name('activity.store');
|
2023-02-17 01:50:44 +01:00
|
|
|
Route::patch('/activity/{activity}', ActivityUpdateAction::class)->name('activity.update');
|
2023-02-25 17:19:17 +01:00
|
|
|
Route::delete('/activity/{activity}', ActivityDestroyAction::class)->name('activity.destroy');
|
2023-03-04 12:02:17 +01:00
|
|
|
Route::post('/subactivity', SubactivityStoreAction::class)->name('api.subactivity.store');
|
2023-03-07 00:22:01 +01:00
|
|
|
Route::patch('/subactivity/{subactivity}', SubactivityUpdateAction::class)->name('api.subactivity.update');
|
2023-03-07 01:35:39 +01:00
|
|
|
Route::get('/subactivity/{subactivity}', SubactivityShowAction::class)->name('api.subactivity.show');
|
2023-10-13 15:48:29 +02:00
|
|
|
Route::post('/api/member/search', SearchAction::class)->name('member.search');
|
2023-03-14 22:29:39 +01:00
|
|
|
|
|
|
|
// ------------------------------- Contributions -------------------------------
|
|
|
|
Route::get('/contribution', ContributionFormAction::class)->name('contribution.form');
|
|
|
|
Route::get('/contribution-generate', ContributionGenerateAction::class)->name('contribution.generate');
|
|
|
|
Route::post('/contribution-validate', ContributionValidateAction::class)->name('contribution.validate');
|
2023-06-01 15:02:35 +02:00
|
|
|
|
2023-06-12 13:12:46 +02:00
|
|
|
// ----------------------------------- mail ------------------------------------
|
2023-06-07 21:39:41 +02:00
|
|
|
Route::post('/api/mailgateway', StoreAction::class)->name('mailgateway.store');
|
2023-06-08 00:00:35 +02:00
|
|
|
Route::patch('/api/mailgateway/{mailgateway}', UpdateAction::class)->name('mailgateway.update');
|
2023-06-13 22:03:32 +02:00
|
|
|
Route::get('/maildispatcher', IndexAction::class)->name('maildispatcher.index');
|
|
|
|
Route::get('/maildispatcher/create', CreateAction::class)->name('maildispatcher.create');
|
2023-06-15 00:08:01 +02:00
|
|
|
Route::get('/maildispatcher/{maildispatcher}', EditAction::class)->name('maildispatcher.edit');
|
|
|
|
Route::patch('/maildispatcher/{maildispatcher}', MaildispatcherUpdateAction::class)->name('maildispatcher.update');
|
2023-06-13 22:03:32 +02:00
|
|
|
Route::post('/maildispatcher', MaildispatcherStoreAction::class)->name('maildispatcher.store');
|
2023-06-15 00:08:01 +02:00
|
|
|
Route::delete('/maildispatcher/{maildispatcher}', DestroyAction::class)->name('maildispatcher.destroy');
|
2023-08-25 00:23:38 +02:00
|
|
|
|
|
|
|
// ----------------------------------- group -----------------------------------
|
|
|
|
Route::get('/group', ListAction::class)->name('group.index');
|
2023-10-13 15:48:29 +02:00
|
|
|
|
2023-12-16 00:16:07 +01:00
|
|
|
// -------------------------------- allpayment ---------------------------------
|
2023-12-16 01:13:49 +01:00
|
|
|
Route::post('/invoice/mass-store', MassStoreAction::class)->name('invoice.mass-store');
|
2023-12-16 00:16:07 +01:00
|
|
|
|
2023-12-13 00:35:39 +01:00
|
|
|
// ---------------------------------- invoice ----------------------------------
|
2023-12-16 01:13:49 +01:00
|
|
|
Route::get('/invoice', InvoiceIndexAction::class)->name('invoice.index');
|
2023-12-13 00:35:39 +01:00
|
|
|
Route::post('/invoice', InvoiceStoreAction::class)->name('invoice.store');
|
2023-12-17 00:45:03 +01:00
|
|
|
Route::patch('/invoice/{invoice}', InvoiceUpdateAction::class)->name('invoice.update');
|
2023-12-17 00:55:31 +01:00
|
|
|
Route::delete('/invoice/{invoice}', InvoiceDestroyAction::class)->name('invoice.destroy');
|
2023-12-17 22:33:29 +01:00
|
|
|
Route::get('/invoice/{invoice}/pdf', DisplayPdfAction::class)->name('invoice.pdf');
|
2023-12-13 00:35:39 +01:00
|
|
|
|
2023-12-17 21:13:52 +01:00
|
|
|
|
|
|
|
// ----------------------------- invoice-position ------------------------------
|
|
|
|
Route::get('/member/{member}/invoice-position', PaymentPositionIndexAction::class)->name('member.invoice-position.index');
|
|
|
|
|
2023-10-13 15:48:29 +02:00
|
|
|
// --------------------------------- membership --------------------------------
|
2023-10-16 12:52:59 +02:00
|
|
|
Route::get('/member/{member}/membership', MembershipIndexAction::class)->name('member.membership.index');
|
2023-10-13 15:48:29 +02:00
|
|
|
Route::post('/member/{member}/membership', MembershipStoreAction::class)->name('member.membership.store');
|
|
|
|
Route::patch('/membership/{membership}', MembershipUpdateAction::class)->name('membership.update');
|
|
|
|
Route::delete('/membership/{membership}', MembershipDestroyAction::class)->name('membership.destroy');
|
2023-10-16 12:36:56 +02:00
|
|
|
Route::post('/api/membership/member-list', ListForGroupAction::class)->name('membership.member-list');
|
|
|
|
Route::post('/api/membership/sync', StoreForGroupAction::class)->name('membership.sync');
|
2023-10-18 01:11:36 +02:00
|
|
|
|
|
|
|
// ----------------------------------- course ----------------------------------
|
|
|
|
Route::get('/member/{member}/course', CourseIndexAction::class)->name('member.course.index');
|
|
|
|
Route::post('/member/{member}/course', CourseStoreAction::class)->name('member.course.store');
|
|
|
|
Route::patch('/course/{course}', CourseUpdateAction::class)->name('course.update');
|
|
|
|
Route::delete('/course/{course}', CourseDestroyAction::class)->name('course.destroy');
|
2020-04-10 20:32:12 +02:00
|
|
|
});
|