akaunting/routes/portal.php

28 lines
1.2 KiB
PHP
Raw Normal View History

2019-11-16 10:21:14 +03:00
<?php
2020-03-04 11:09:28 +03:00
use Illuminate\Support\Facades\Route;
2020-01-31 00:23:09 +03:00
/**
* 'portal' middleware and prefix applied to all routes
*
* @see \App\Providers\Route::mapPortalRoutes
* @see \modules\OfflinePayments\Routes\portal.php for module example
*/
2020-01-30 15:19:33 +03:00
2019-11-16 10:21:14 +03:00
Route::group(['as' => 'portal.'], function () {
Route::get('invoices/{invoice}/print', 'Portal\Invoices@printInvoice')->name('invoices.print');
Route::get('invoices/{invoice}/pdf', 'Portal\Invoices@pdfInvoice')->name('invoices.pdf');
2022-06-01 10:15:55 +03:00
Route::get('invoices/{invoice}/finish', 'Portal\Invoices@finish')->name('invoices.finish');
2019-11-16 10:21:14 +03:00
Route::resource('invoices', 'Portal\Invoices');
2021-01-12 22:21:59 +03:00
Route::get('payments/currencies', 'Portal\Payments@currencies')->name('payment.currencies');
Route::get('payments/{payment}/print', 'Portal\Payments@printPayment')->name('payments.print');
Route::get('payments/{payment}/pdf', 'Portal\Payments@pdfPayment')->name('payments.pdf');
2019-11-16 10:21:14 +03:00
Route::resource('payments', 'Portal\Payments');
Route::get('profile/read-invoices', 'Portal\Profile@readOverdueInvoices')->name('invoices.read');
2021-02-10 12:06:41 +03:00
Route::resource('profile', 'Portal\Profile', ['middleware' => ['dropzone']]);
2019-11-16 10:21:14 +03:00
Route::get('logout', 'Auth\Login@destroy')->name('logout');
});