78 lines
5.0 KiB
PHP
78 lines
5.0 KiB
PHP
<?php
|
|
|
|
Route::group(['prefix' => 'seller', 'middleware' => ['auth', 'check.seller']], function () {
|
|
Route::get('/', 'SellerController@index')->name('seller');
|
|
|
|
Route::prefix('sites')->group(function () {
|
|
Route::get('/', 'SitesController@index')->name('sites');
|
|
Route::get('create', 'SitesController@create')->name('sites.create');
|
|
Route::post('store', 'SitesController@store')->name('sites.store');
|
|
Route::get('edit/{id}', 'SitesController@edit')->name('sites.edit');
|
|
Route::post('update/{id}', 'SitesController@update')->name('sites.update');
|
|
Route::get('detail/{id}', 'SitesController@detail')->name('sites.detail');
|
|
Route::get('delete/{id}', 'SitesController@delete')->name('sites.delete');
|
|
Route::post('removeImage', 'SitesController@removeImage')->name('sites.remove');
|
|
Route::post('uploadImage', 'SitesController@uploadImage')->name('sites.upload');
|
|
|
|
Route::get('domain', 'SitesController@domain')->name('sites.domain');
|
|
Route::get('domain/create', 'SitesController@createDomain')->name('sites.domain.create');
|
|
Route::post('domain/store', 'SitesController@storeDomain')->name('sites.domain.store');
|
|
Route::get('domain/edit/{id}', 'SitesController@editDomain')->name('sites.domain.edit');
|
|
Route::post('domain/update/{id}', 'SitesController@updateDomain')->name('sites.domain.update');
|
|
Route::get('domain/delete/{id}', 'SitesController@deleteDomain')->name('sites.domain.delete');
|
|
Route::get('domain/detail/{id}', 'SitesController@detailDomain')->name('sites.domain.detail');
|
|
});
|
|
|
|
Route::prefix('transaction')->group(function() {
|
|
Route::get('/', 'OrdersController@index')->name('orders');
|
|
Route::get('v/{invoice}', 'OrdersController@view')->name('orders.view');
|
|
Route::post('cancel/{invoice}', 'OrdersController@cancelOrder')->name('orders.cancel')->middleware('XssSanitization');
|
|
Route::post('reject/{invoice}', 'OrdersController@reject')->name('orders.reject')->middleware('XssSanitization');
|
|
Route::get('accept/{invoice}', 'OrdersController@accept')->name('orders.accept');
|
|
Route::post('process/{invoice}', 'OrdersController@process')->name('orders.process')->middleware('XssSanitization');
|
|
Route::post('revision/{invoice}', 'OrdersController@revision')->name('orders.revision')->middleware('XssSanitization');
|
|
Route::post('feedback/{invoice}', 'OrdersController@feedback')->name('orders.feedback')->middleware('XssSanitization');
|
|
});
|
|
|
|
Route::prefix('account')->group(function () {
|
|
Route::get('/', 'AccountController@index')->name('account');
|
|
|
|
Route::prefix('rekening')->group(function() {
|
|
Route::get('/', 'AccountController@rekening')->name('rekening');
|
|
Route::get('create', 'AccountController@createRekening')->name('rekening.create');
|
|
Route::post('store', 'AccountController@storeRekening')->name('rekening.store')->middleware('XssSanitization');
|
|
Route::get('edit/{id}', 'AccountController@editRekening')->name('rekening.edit');
|
|
Route::post('update/{id}', 'AccountController@updateRekening')->name('rekening.update')->middleware('XssSanitization');
|
|
Route::get('delete/{id}', 'AccountController@deleteRekening')->name('rekening.delete');
|
|
});
|
|
|
|
Route::prefix('withdrawal')->group(function() {
|
|
Route::get('/', 'AccountController@withdrawal')->name('withdrawal');
|
|
Route::get('create', 'AccountController@createRequest')->name('withdrawal.create');
|
|
Route::post('store', 'AccountController@storeRequest')->name('withdrawal.store')->middleware('XssSanitization');
|
|
Route::get('v/{invoice}', 'AccountController@viewRequest')->name('withdrawal.view');
|
|
Route::get('c/{invoice}', 'AccountController@cancelRequest')->name('withdrawal.cancel');
|
|
});
|
|
});
|
|
|
|
Route::prefix('ticket')->group(function() {
|
|
Route::get('/', 'TicketController@index')->name('ticket');
|
|
Route::get('create', 'TicketController@create')->name('ticket.create');
|
|
Route::post('store', 'TicketController@store')->name('ticket.store')->middleware('XssSanitization');
|
|
Route::get('view/{id}', 'TicketController@view')->name('ticket.view');
|
|
Route::get('delete/{id}', 'TicketController@delete')->name('ticket.delete');
|
|
});
|
|
|
|
Route::prefix('deposit')->group(function () {
|
|
Route::get('/', 'DepositsController@index')->name('deposit');
|
|
Route::get('topup', 'DepositsController@topup')->name('deposit.topup');
|
|
Route::post('store', 'DepositsController@store')->name('deposit.store')->middleware('XssSanitization');
|
|
Route::post('view/{invoice}', 'DepositsController@view')->name('deposit.view');
|
|
Route::get('cancel/{invoice}', 'DepositsController@cancel')->name('deposit.cancel');
|
|
});
|
|
|
|
Route::prefix('report')->group(function () {
|
|
Route::get('/', 'ReportController@index')->name('report');
|
|
Route::get('statistic', 'ReportController@statistic')->name('report.statistic');
|
|
});
|
|
}); |