mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
5.0 KiB
PHP
67 lines
5.0 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
})->name('welcome');
|
|
|
|
Auth::routes(['register' => false]);
|
|
|
|
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
|
|
|
|
Route::prefix(config('app.panel.prefix'))->name('admin.')->group(
|
|
function () {
|
|
Route::group(
|
|
['middleware' => ['auth']],
|
|
function () {
|
|
|
|
|
|
Route::get('/',[\App\Http\Controllers\HomeController::class,'index'])->name('dash');
|
|
|
|
Route::post('ckeditor/upload', [\App\Http\Controllers\Admin\CkeditorController::class,'upload'])->name('ckeditor.upload');
|
|
Route::get('adminlogs', [\App\Http\Controllers\Admin\AdminLogController::class,'index'])->name('adminlogs.index');
|
|
Route::get('adminlogs/{user}', [\App\Http\Controllers\Admin\AdminLogController::class,'log'])->name('adminlogs.show');
|
|
|
|
Route::prefix('users')->name('user.')->group(
|
|
function () {
|
|
Route::get('', [\App\Http\Controllers\Admin\UserController::class, 'index'])->name('index');
|
|
Route::get('create', [\App\Http\Controllers\Admin\UserController::class, 'create'])->name('create');
|
|
Route::post('store', [\App\Http\Controllers\Admin\UserController::class, 'store'])->name('store');
|
|
Route::get('edit/{item}', [\App\Http\Controllers\Admin\UserController::class, 'edit'])->name('edit');
|
|
Route::get('log/{item}', [\App\Http\Controllers\Admin\AdminLogController::class, 'log'])->name('log');
|
|
Route::get('show/{item}', [\App\Http\Controllers\Admin\UserController::class, 'show'])->name('show');
|
|
Route::post('update/{item}', [\App\Http\Controllers\Admin\UserController::class, 'update'])->name('update');
|
|
Route::get('delete/{item}', [\App\Http\Controllers\Admin\UserController::class, 'destroy'])->name('destroy');
|
|
Route::get('restore/{item}', [\App\Http\Controllers\Admin\UserController::class, 'restore'])->name('restore');
|
|
Route::post('bulk', [\App\Http\Controllers\Admin\UserController::class, "bulk"])->name('bulk');
|
|
Route::get('trashed', [\App\Http\Controllers\Admin\UserController::class, "trashed"])->name('trashed');
|
|
});
|
|
Route::prefix('groups')->name('group.')->group(
|
|
function () {
|
|
Route::get('', [\App\Http\Controllers\Admin\GroupController::class, 'index'])->name('index');
|
|
Route::get('create', [\App\Http\Controllers\Admin\GroupController::class, 'create'])->name('create');
|
|
Route::post('store', [\App\Http\Controllers\Admin\GroupController::class, 'store'])->name('store');
|
|
Route::get('edit/{item}', [\App\Http\Controllers\Admin\GroupController::class, 'edit'])->name('edit');
|
|
Route::post('update/{item}', [\App\Http\Controllers\Admin\GroupController::class, 'update'])->name('update');
|
|
Route::get('delete/{item}', [\App\Http\Controllers\Admin\GroupController::class, 'destroy'])->name('destroy');
|
|
Route::get('restore/{item}', [\App\Http\Controllers\Admin\GroupController::class, 'restore'])->name('restore');
|
|
Route::post('bulk', [\App\Http\Controllers\Admin\GroupController::class, "bulk"])->name('bulk');
|
|
Route::get('trashed', [\App\Http\Controllers\Admin\GroupController::class, "trashed"])->name('trashed');
|
|
});
|
|
Route::prefix('posts')->name('post.')->group(
|
|
function () {
|
|
Route::get('', [\App\Http\Controllers\Admin\PostController::class, 'index'])->name('index');
|
|
Route::get('create', [\App\Http\Controllers\Admin\PostController::class, 'create'])->name('create');
|
|
Route::post('store', [\App\Http\Controllers\Admin\PostController::class, 'store'])->name('store');
|
|
Route::post('show/{item}', [\App\Http\Controllers\Admin\PostController::class, 'show'])->name('show');
|
|
Route::get('edit/{item}', [\App\Http\Controllers\Admin\PostController::class, 'edit'])->name('edit');
|
|
Route::post('update/{item}', [\App\Http\Controllers\Admin\PostController::class, 'update'])->name('update');
|
|
Route::get('delete/{item}', [\App\Http\Controllers\Admin\PostController::class, 'destroy'])->name('destroy');
|
|
Route::get('restore/{item}', [\App\Http\Controllers\Admin\PostController::class, 'restore'])->name('restore');
|
|
Route::post('bulk', [\App\Http\Controllers\Admin\PostController::class, "bulk"])->name('bulk');
|
|
Route::get('trashed', [\App\Http\Controllers\Admin\PostController::class, "trashed"])->name('trashed');
|
|
});
|
|
});
|
|
});
|