akaunting/routes/portal.php

26 lines
999 B
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');
Route::post('invoices/{invoice}/payment', 'Portal\Invoices@payment')->name('invoices.payment');
Route::post('invoices/{invoice}/confirm', 'Portal\Invoices@confirm')->name('invoices.confirm');
Route::resource('invoices', 'Portal\Invoices');
Route::resource('payments', 'Portal\Payments');
Route::get('profile/read-invoices', 'Portal\Profile@readOverdueInvoices')->name('invoices.read');
Route::resource('profile', 'Portal\Profile');
Route::get('logout', 'Auth\Login@destroy')->name('logout');
});