File: /home/armgroup/libs/routes/admin.php
<?php
use Illuminate\Support\Facades\Route;
Route::namespace('Admin')->name('admin.')->prefix('admin')
->middleware(['auth', 'isActive'])->group(function () {
Route::get('/', 'IndexController@index')->name('index');
Route::resource('settings', 'SettingController')->only('index', 'edit');
Route::resource('tags', 'TagController')->except('show', 'store', 'update');
Route::resource('activities', 'ActivityController')->only('index', 'destroy');
Route::resource('roles', 'RoleController')->except('update', 'store', 'show');
Route::resource('banners', 'BannerController')->only('index', 'edit');
Route::resource('pages', 'PageController')->except('store', 'update', 'show');
Route::resource('articles', 'ArticleController')->except('store', 'update', 'show');
Route::resource('brands', 'BrandController')->except('store', 'update', 'show');
Route::resource('authors', 'AuthorController')->except('store', 'update', 'show');
Route::resource('contacts', 'ContactController')->only('index', 'show', 'destroy');
Route::resource('users', 'UserController')->except('show', 'store', 'update');
Route::resource('/organizations', 'OrganizationController')->except('store', 'update', 'show');
Route::resource('categories', 'CategoryController')->except('store', 'update', 'show');
Route::resource('comments', 'CommentController')->except('store', 'create', 'edit');
Route::get('orders/group-print', 'OrderController@groupPrint')->name('orders.group-print');
Route::resource('orders', 'OrderController')->except('store', 'create', 'update');
Route::resource('provinces', 'ProvinceController')->only('index', 'edit', 'update');
Route::resource('cities', 'CityController')->only('index', 'edit');
Route::resource('discounts', 'DiscountController')->except('store', 'update', 'edit');
Route::post('comments/{comment}/reply', 'CommentController@reply')->name('comments.reply');
Route::resource('tickets', 'TicketController')->except('store', 'show');
Route::resource('products', 'ProductController')->except('store', 'update', 'show');
Route::get('products/select/category', 'ProductController@selectCategory')->name('products.selectCategory');
Route::resource('newsletter-members', 'NewsletterMemberController')->only('index', 'destroy');
Route::resource('shipping-prices', 'ShippingPriceController')->only('index', 'create');
Route::resource('attribute-groups', 'AttributeGroupController')->except('store', 'update');
Route::resource('attributes', 'AttributeController')->only('edit', 'update', 'destroy');
Route::resource('options', 'OptionController')->except('store', 'update', 'show');
Route::resource('favorites', 'FavoriteController')->only('index');
Route::resource('product-demands', 'ProductDemandController')->only('index');
Route::get('categories/type/{slug}', 'CategoryController@showCategories')->name('categories.showCategories');
Route::post('categories/ajax/{id}/fetch', 'CategoryController@ajax');
Route::resource('menus', 'MenuController')->except('store', 'update', 'show');
Route::get('wallet/{user}', 'WalletController@index')->name('user.wallet.index');
Route::get('wallet/{wallet}/edit', 'WalletController@edit')->name('user.wallet.edit');
Route::get('wallet/{user}/create', 'WalletController@create')->name('user.wallet.create');
Route::delete('wallet/{wallet}', 'WalletController@destroy')->name('user.wallet.destroy');
Route::get('points/{user}', 'PointController@index')->name('user.points.index');
Route::get('points/{point}/edit', 'PointController@edit')->name('user.points.edit');
Route::get('points/{user}/create', 'PointController@create')->name('user.points.create');
Route::delete('points/{point}', 'PointController@destroy')->name('user.points.destroy');
Route::post('menus/ajax/{id}/fetch', 'MenuController@ajax');
Route::get('/reports/logs', 'ReportController@logs')->name('reports.logs');
Route::get('/reports/charts', 'ReportController@charts')->name('reports.charts');
Route::get('/sending-days', 'SendingDayController@index')->name('sending-days.index');
Route::resource('/easy-pays', 'EasyPayController')->only('index', 'show', 'destroy');
Route::resource('faqs', 'FaqController')->except('store', 'update', 'show');
Route::get('products/import', 'ProductImportController@index')->name('products.import');
Route::post('products/import', 'ProductImportController@importProducts')->name('products.import.store');
Route::post('products/attribute-groups/import', 'ProductImportController@importAttributeGroups')->name('products.attribute-groups.import.store');
Route::post('products/prices/import', 'ProductImportController@importProductPrices')->name('products.prices.import.store');
Route::post('products/comments/import', 'ProductImportController@importCommentsImages')->name('products.comments.import.store');
});
Route::group(['prefix' => 'laravel-filemanager', 'middleware' => ['web', 'auth', 'isActive', 'permission:file-manager access']], function () {
\UniSharp\LaravelFilemanager\Lfm::routes();
});