Current File : /home/tradevaly/new.tradevaly.com.bd/routes/web.php |
<?php
use App\Http\Controllers\Admin\AboutController;
use App\Http\Controllers\Admin\FeaturesController;
use App\Http\Controllers\Admin\BannerController;
use App\Http\Controllers\Admin\CategoryController;
use App\Http\Controllers\Admin\BusinessController;
use App\Http\Controllers\Admin\tagsController;
use App\Http\Controllers\Admin\PackageController;
use App\Http\Controllers\Admin\RoleController;
use App\Http\Controllers\Admin\TopMenuController;
use App\Http\Controllers\Admin\TradeShowController;
use App\Http\Controllers\AdminController;
use App\Http\Controllers\Frontend\ContactController;
use App\Http\Controllers\Frontend\RfqController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\Admin\NewsController;
use App\Models\Banner;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
Route::get('/logout', function(){
Auth::logout();
return Redirect::to('login');
});
Route::get('/terms', function () {
return view('frontend.pages.terms');
});
Route::get('/privacy&policy', function () {
return view('frontend.pages.privacy&policy');
});
Route::get('/countrycheck', function () {
return visitorip();
});
Route::get('/optimize-clear', function() {
\Artisan::call('optimize:clear');
return 'View cache cleared';
});
Route::post('/stripe/create-checkout-session', 'SubscriptionController@create_checkout_session')->name('stripe.get_token');
Route::any('/stripe/payment/callback', 'StripePaymentController@callback')->name('stripe.callback');
Route::get('stripe/{slug}', 'SubscriptionController@stripe');
Route::post('subscribe/{slug}', 'SubscriptionController@stripePost')->name('stripe.post');
Route::get('/', 'HomeController@index')->name('homepage');
Route::post('/registers', 'HomeController@register')->name('user.register');
Route::get('/cronJobs', 'HomeController@cronJobs')->name('cronJobs');
Route::post('/submit_registers/{id}', 'SubscriptionController@register')->name('submit.register');
Route::get('/country', 'HomeController@country')->name('country');
Route::get('/countries', 'HomeController@countries')->name('countries');
Route::get('/about-us', 'HomeController@about_us')->name('about_us');
Route::get('/events/{slug}', 'HomeController@events')->name('events');
Route::get('/feature/{id}', 'Admin\PackageController@features')->name('package.getfeature');
Route::get('/categories/{slug}', 'HomeController@categories')->name('category');
Route::get('/all_categories', 'HomeController@all_categories')->name('allcategory');
Route::get('/buy/view_more', 'HomeController@all_categories')->name('buy.more');
Route::get('/product/view_more', 'HomeController@all_product')->name('product.more');
Route::get('/viefied/seller/products', 'HomeController@verified_products')->name('verified.products');
Route::get('/viefied/cronjobsfeature', 'HomeController@cronJobsfeature')->name('cronJobsfeature');
Route::get('/buy/offer/{slug}', 'OfferController@buy_offer')->name('buy.view');
Route::get('/product/{slug}', 'ProductController@view')->name('product.view');
Route::any('/product/inquery/{slug}', 'HomeController@inquery')->name('product.inquery')->middleware(['auth']);
Route::any('/company/inquery/{slug}', 'HomeController@inquery_contact')->name('company.inquery')->middleware(['auth']);
Route::get('/importers/{slug}', 'HomeController@list_tag')->name('list.tag');
Route::get('/products_tags/{slug}', 'ProductController@list_tag')->name('product.tag');
Route::any('/premium-services/{slug}', 'SubscriptionController@buy')->name('subscription.buy');
Route::any('/premium_services/apply/{slug}', 'SubscriptionController@apply')->name('subscription.apply');
Route::any('/premium-service', 'SubscriptionController@package')->name('packages');
Route::any('/stripe/success/{id}', 'SubscriptionController@stripe_success')->name('stripe.success');
Route::get('/region/{country}', 'HomeController@index')->name('region.change');
Route::get('/supplier/{username}', 'UserController@supplier')->name('supplier.view');
Route::get('/buyers', 'HomeController@buyers')->name('buyers');
Route::get('/products', 'HomeController@products')->name('products');
Route::get('/companies', 'HomeController@companies')->name('companies');
Route::get('/companies/initial/{a}', 'HomeController@alcompanies')->name('alcompanies');
Route::any('/company/contact/{slug}', 'HomeController@contact')->name('company.contact')->middleware(['auth']);
Route::get('/manufacturers', 'HomeController@manufacturers')->name('manufacturers');
Route::get('/search', 'HomeController@search')->name('search');
Route::any('/ajax_cat', 'HomeController@ajax_cat')->name('ajax.cat');
Route::any('/ajax_subcat', 'HomeController@ajax_subcat')->name('ajax.subcat');
Route::any('/country_code', 'HomeController@country_code')->name('country.code');
Route::get('/news/{slug}', 'NewsController@view')->name('news.view');
Route::get('/advertiser', 'HomeController@advertiser')->name('advertiser');
Route::post('/advertiser/buy/{slug}', 'HomeController@advertiser_buy')->name('advertiser.buy')->middleware(['auth']);
Route::post('/advertiser/buy/preview/{slug}', 'HomeController@advertiser_buy_preview')->name('advertiser.buy.preview')->middleware(['checkFormSubmission']);
Route::any('/payment/success', 'SubscriptionController@payment_success')->name('payment.success');
Route::any('/payment/cancel', 'SubscriptionController@payment_cancel')->name('payment.cancel');
Route::get('/related/seller/list/', 'HomeController@related_seller_list')->name('related_seller_list')->middleware(['auth']);;
Route::get('/related/buyer/list/', 'HomeController@related_buyer_list')->name('related_buyer_list')->middleware(['auth']);;
Route::get('/get/banner/amount', 'HomeController@get_banner_amount')->name('get_banner_amount');
Route::group(['prefix' => 'user/' ,'as'=>'user.','namespace' => 'User', 'middleware' => ['auth']] , function () {
Route::get('/dashboard', 'UserController@dashboard')->name('dashboard');
Route::get('/profile/view', 'UserController@profile_view')->name('profile.view');
Route::get('/recommand/buy_offer/global', 'UserController@recommand_offerglobal')->name('recommand.offer.global');
Route::get('/recommand/buy_offer/foryou', 'UserController@recommand_offerforyou')->name('recommand.offer.foryou');
Route::get('/recommand/buy_offer/foryou/details/{id}', 'UserController@recommand_offerforyou_details')->name('recommand.offer.foryou.details');
Route::get('/recommand/products', 'UserController@recommand_products')->name('recommand.products');
Route::resource('/ticket', TicketController::class, ['names' => 'user.ticket']);
Route::post('/update/basic_infirmation', 'UserController@basic_infirmation')->name('profile.basic_infirmation');
Route::get('my/active/buy/advertiser', 'UserController@activebuy_advertiser')->name('my.buy.advertiser.active');
Route::get('my/buy/pending/advertiser', 'UserController@my_pending_buy_advertiser')->name('my.buy.advertiser.pending');
Route::get('my/buy/all/advertiser', 'UserController@my_all_buy_advertiser')->name('my.buy.advertiser.all');
Route::get('my/buy/advertiser/{id}/invoice-details', 'UserController@advertiserInvoiceDetails')->name('my.buy.advertiser.invoice_details');
Route::get('my/buy/advertiser/{id}/money-receipt', 'UserController@advertiserMoneyReceipt')->name('my.buy.advertiser.money_receipt');
Route::get('my/buy/advertiser/{id}/postpaid/payment', 'UserController@advertiserPostpaidPayment')->name('my.buy.advertiser.pospaid_payment');
Route::match(['get','post'],'update-profile', [UserController::class,'profile'])->name('profile');
Route::match(['get','post'],'update-pass', [UserController::class,'password'])->name('password');
Route::any('/subscription/index', 'UserController@subs')->name('subs');
Route::any('/subscription/changeplan', 'UserController@changeplan')->name('changeplan');
Route::any('/subscription/renew', 'UserController@renew')->name('renew');
Route::any('/subscription/choose/{id}', 'UserController@choose')->name('choose');
Route::get('/subscription/invoice', 'UserController@subscriptionInvoice')->name('subscription.invoice');
Route::get('/subscription/money-receipt', 'UserController@subscriptionMoneyReceipt')->name('subscription.money_receipt');
Route::middleware(['EXPIRE'])->group(function () {
Route::any('/featured/submit/{id}', 'UserController@featuredsubmit')->name('featured.submit');
Route::post('/featured/product/create', 'UserController@feature_product_create')->name('feature_product_create');
Route::get('/featured/list', 'UserController@featuredlist')->name('featuredlist');
Route::get('/featured/list/delete/{id}', 'UserController@featuredlistdelete')->name('featuredlist.delete');
Route::get('/featured/active/product/list', 'UserController@activefeatureProfuctlist')->name('active.feature.Profuct.list');
Route::any('/company/setting', 'UserController@setting')->name('setting');
Route::get('/offer/index', 'UserController@offers')->name('offers');
Route::get('/products/index', 'UserController@products')->name('products');
Route::any('/products/rejected', 'UserController@rej_product')->name('rej_products');
Route::any('/products/trashed', 'UserController@trashed_product')->name('trashed_products');
Route::get('/products/trashed/destroy/{id}', 'UserController@trashed_product_destroy')->name('trashed_products.destroy');
Route::get('/products/trashed/return/{id}', 'UserController@trash_product_rerurn')->name('trashed_products.return');
Route::any('/products/pending', 'UserController@pending_product')->name('pending_products');
Route::any('/products/add', 'UserController@addproduct')->name('addproducts');
Route::any('/product/delete/{id}', 'UserController@delproduct')->name('delproducts');
Route::any('/product/edit/{id}', 'UserController@editproduct')->name('editproducts');
Route::get('/pdf/index', 'UserController@pdf')->name('pdf');
Route::any('/pdf/add', 'UserController@addpdf')->name('addpdf');
Route::any('/pdf/delete/{id}', 'UserController@delpdf')->name('delpdf');
Route::get('/award/index', 'UserController@award')->name('award');
Route::any('/award/add', 'UserController@addaward')->name('addaward');
Route::any('/award/delete/{id}', 'UserController@delaward')->name('delaward');
Route::get('/certificate/index', 'UserController@certificate')->name('certificate');
Route::any('/certificate/add', 'UserController@addcertificate')->name('addcertificate');
Route::any('/certificate/delete/{id}', 'UserController@delcertificate')->name('delcertificate');
Route::any('/offer/add', 'UserController@addoffer')->name('addoffer');
Route::any('/offer/delete/{id}', 'UserController@deloffer')->name('deloffer');
Route::any('/offer/edit/{id}', 'UserController@editoffer')->name('editoffer');
Route::any('/inbox/view/{id}', 'UserController@inbox_view')->name('inbox.view');
Route::any('/inbox/index', 'UserController@inbox')->name('inbox');
});
});
Route::get('/logins', function () {
return view('frontend.pages.login');
});
Route::get('/about_us', function () {
return view('frontend.pages.contact');
});
Route::get('/company_overview', function () {
return view('frontend.pages.company_overview');
});
Route::get('/user-login', function () {
return view('frontend.pages.login');
});
Auth::routes(['register' => true]);
Route::match(['get', 'post'], 'contact',[ContactController::class ,'contact'])->name('contact');
Route::match(['get', 'post'], '/help',[ContactController::class ,'help'])->name('help');
Route::match(['get', 'post'], 'rfq',[RfqController::class ,'add'])->name('rfq');
Route::group(['prefix' => 'b2b/' ,'as'=>'admin.','namespace' => 'Admin'] , function () {
Route::match(['get', 'post'], 'addProduct',[AboutController::class ,'addProduct'])->name('productAdd')->middleware('admin:admin,admin_add');
Route::match(['get', 'post'], 'advertiser/banner',[AboutController::class ,'advertiser_banner'])->name('advertiser_banner');
Route::match(['get','post'],'update-pass/admin', [UserController::class,'password_admin'])->name('password_admin');
Route::get("/add-user",[aboutController::class, "addUser"])->name("addUser");
Route::match(['get', 'post'], 'admin_login',[AdminController::class ,'login'])->name('login');
Route::group([],function () {
Route::match(['get', 'post'], 'logo',[AboutController::class ,'uploadLogo'])->name('logo');
Route::get('dashboard',[AdminController::class ,'index'])->name('dashboard')->middleware('admin:admin,admin_dashboard');
Route::get('logout',[AdminController::class ,'logout'])->name('logout');
Route::get('secretlogin/{id}',[AdminController::class ,'secretlogin'])->name('secrretlogin');
Route::match(['get', 'post'], 'reset_password',[AdminController::class ,'reset'])->name('reset');
Route::match(['get', 'post'], 'profile',[AdminController::class ,'profile'])->name('profile');
Route::match(['get', 'post'], 'add',[AdminController::class ,'add'])->name('add');
Route::any('edit/pages/{id}',[AdminController::class ,'editpages'])->name('editpages');
Route::match(['get', 'post'], 'pages',[AdminController::class ,'pages'])->name('pages');
Route::group(['prefix' => 'package/' ,'as'=>'package.','middleware' => "admin:admin,admin_packages"] , function () {
Route::get('index',[PackageController::class ,'index'])->name('index');
Route::get('feature/list',[PackageController::class ,'feature_list'])->name('feature_list');
Route::get('feature/list/show/{id}',[PackageController::class ,'feature_list_show'])->name('feature_list.show');
Route::post('feature/list/update/{id}',[PackageController::class ,'feature_list_update'])->name('feature_list.update');
Route::get('feature/list/status/{id}',[PackageController::class ,'feature_list_status'])->name('feature_list.status');
Route::post('update-package-status',[PackageController::class ,'updatePackageStatus'])->name('updatePackageStatus');
Route::match(['get', 'post'], 'edit/{id}',[PackageController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'add',[PackageController::class ,'add'])->name('add');
Route::match(['get', 'post'], 'add',[PackageController::class ,'add'])->name('add');
Route::get('delete/{id}',[PackageController::class ,'delete'])->name('delete');
Route::get('/featured/edit/status/{id}', 'PackageController@featured_edit_status')->name('feature_edit_status');
Route::get('/featured/{id}', 'PackageController@featured')->name('featured');
Route::any('/featured_add/{id}', 'PackageController@featured_add')->name('addfeatured');
Route::any('/featured_edit/{id}', 'PackageController@featured_edit')->name('editfeatured');
Route::get('/featured_delete/{id}', 'PackageController@featured_delete')->name('deletefeatured');
});
Route::group(['prefix' => 'component/' ,'as'=>'component.','middleware' => "admin:admin,admin_mange_web_site"] , function () {
Route::group(['prefix' => 'banner/' ,'as'=>'banner.'] , function () {
Route::get('index',[BannerController::class ,'index'])->name('index');
Route::get('buyers',[BannerController::class ,'buyers'])->name('buyers');
Route::get('product',[BannerController::class ,'product'])->name('product');
Route::get('contact',[BannerController::class ,'contact'])->name('contact');
Route::get('company',[BannerController::class ,'company'])->name('company');
Route::get('manufacture',[BannerController::class ,'manufacture'])->name('manufacture');
Route::get('category',[BannerController::class ,'category'])->name('category');
Route::post('update-banner-status',[BannerController::class ,'updateBannerStatus'])->name('updateBannerStatus');
Route::match(['get', 'post'], 'edit/{id}',[BannerController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'home/page/edit/{id}',[BannerController::class ,'home_page_banner'])->name('home_page_banner');
Route::match(['get', 'post'], 'add',[BannerController::class ,'add'])->name('add');
Route::get('delete/{id}',[BannerController::class ,'delete'])->name('delete');
});
});
Route::group(['prefix' => 'news/' ,'as'=>'news.','middleware' => "admin:admin,admin_mange_web_site"] , function () {
Route::get('index',[NewsController::class ,'index'])->name('index');
Route::match(['get', 'post'], 'edit/{id}',[NewsController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'add',[NewsController::class ,'add'])->name('add');
Route::get('delete/{id}',[NewsController::class ,'delete'])->name('delete');
Route::get('discount/edit',[NewsController::class ,'discount'])->name('discount');
Route::post('discount/update',[NewsController::class ,'discount_update'])->name('discount_update');
});
Route::group(['prefix' => 'category/' ,'as'=>'category.','middleware' => "admin:admin,admin_category"] , function () {
Route::any('index',[CategoryController::class ,'index'])->name('index');
Route::any('subcat/{id?}',[CategoryController::class ,'subcat'])->name('subcat');
Route::post('update-category-status',[CategoryController::class ,'updateCategoryStatus'])->name('updateCategoryStatus');
Route::match(['get', 'post'], 'edit/{id}',[CategoryController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'add/{id?}',[CategoryController::class ,'add'])->name('add');
Route::get('delete/{id}',[CategoryController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'btype/' ,'as'=>'btype.','middleware' => "admin:admin,admin_category"] , function () {
Route::any('index',[BusinessController::class ,'index'])->name('index');
Route::post('update-category-status',[BusinessController::class ,'updateCategoryStatus'])->name('updateCategoryStatus');
Route::match(['get', 'post'], 'edit/{id}',[BusinessController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'add/{id?}',[BusinessController::class ,'add'])->name('add');
Route::match(['get', 'post'], 'subcat/{id?}',[BusinessController::class ,'subcat'])->name('subcat');
Route::get('delete/{id}',[BusinessController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'tags/' ,'as'=>'tags.','middleware' => "admin:admin,admin_tags"] , function () {
Route::get('index',[tagsController::class ,'index'])->name('index');
Route::match(['get', 'post'], 'add',[tagsController::class ,'add'])->name('add');
Route::get('delete/{id}',[tagsController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'users/' ,'as'=>'users.','middleware' => "admin:admin,admin_users"] , function () {
Route::match(['get', 'ajax','post'], 'index',[UserController::class ,'index'])->name('index');
Route::match(['get', 'ajax','post'], 'seller-list',[UserController::class ,'sellerListOnly'])->name('seller-list');
Route::match(['get', 'ajax','post'], 'buyer-list',[UserController::class ,'buyerListOnly'])->name('buyer-list');
Route::any('view/{id}',[UserController::class ,'view'])->name('view');
Route::any('delete/{id}',[UserController::class ,'delete'])->name('delete');
Route::any('verified/{id}',[UserController::class ,'verified'])->name('verified');
Route::get('thread/{id}',[UserController::class ,'inbox'])->name('inbox');
Route::get('user_delete/{id}',[UserController::class ,'user_delete'])->name('user_delete');
Route::post('update-profile/{id}',[UserController::class ,'updateProfile'])->name('updateProfile');
});
Route::group(['prefix' => 'trash/' ,'as'=>'trash.','middleware' => "admin:admin,admin_recycle_bin"] , function () {
Route::group(['prefix' => 'user/' ,'as'=>'users.'] , function () {
Route::match(['get', 'ajax'], 'index',[UserController::class ,'index_trash'])->name('index');
Route::get('delete/{id}',[UserController::class ,'delete_trash'])->name('delete_trash');
Route::get('restore/{id}',[UserController::class ,'restore_trash'])->name('restore_trash');
});
Route::group(['prefix' => 'category/' ,'as'=>'category.','middleware' => "admin:admin,admin_recycle_bin"] , function () {
Route::any('index',[CategoryController::class ,'index_trash'])->name('index');
Route::any('subcat/{id?}',[CategoryController::class ,'subcat_trash'])->name('subcat');
Route::get('delete/{id}',[CategoryController::class ,'delete_trash'])->name('delete_trash');
Route::get('trash_category_resore/{id}',[CategoryController::class ,'trash_category_resore'])->name('trash_category_resore');
});
});
Route::group(['prefix' => 'buy_offer/' ,'as'=>'buy_offer.','middleware' => "admin:admin,admin_offers"] , function () {
Route::get('index/{id?}',[AboutController::class ,'buy_offer'])->name('buy_offer');
Route::get('pending',[AboutController::class ,'bpending'])->name('pending');
Route::get('approve/{id}',[AboutController::class ,'bapprove'])->name('approve');
Route::get('reject/{id}',[AboutController::class ,'breject'])->name('reject');
});
Route::group(['prefix' => 'product_list/' ,'as'=>'product_list.','middleware' => "admin:admin,admin_products"] , function () {
Route::get('index/{id?}',[AboutController::class ,'product_list'])->name('product_list');
Route::get('pending',[AboutController::class ,'pending'])->name('pending');
});
Route::get('product/approve/{id}',[AboutController::class ,'approve'])->name('product.approve');
Route::get('product/delete/{id}',[AboutController::class ,'pdelete'])->name('product.delete');
Route::get('user/approve/{id}',[AboutController::class ,'uapprove'])->name('user.approve');
Route::group(['prefix' => 'income_list/' ,'as'=>'income.','middleware' => "admin:admin,admin_income"] , function () {
Route::get('index',[AboutController::class ,'income'])->name('index');
Route::get('pending',[AboutController::class ,'pending'])->name('pending');
Route::get('others',[AboutController::class ,'others'])->name('others');
Route::get('invoice-details/{id}', [AboutController::class, 'IncomeInvoiceDetails'])->name('invoice_details');
Route::get('money-receipt/{id}', [AboutController::class, 'IncomeMoneyReceipt'])->name('money_receipt');
});
Route::group(['prefix' => 'advertiser/' ,'as'=>'advertiser.','middleware' => "admin:admin,admin_advertiser"] , function () {
Route::get('index',[AboutController::class ,'advertiser'])->name('index');
Route::get('pending',[AboutController::class ,'pending_advertiser'])->name('pending');
Route::get('others',[AboutController::class ,'others_advertiser'])->name('others');
Route::post('status/{id}',[AboutController::class ,'status'])->name('status');
Route::get('unactive/status/{id}',[AboutController::class ,'unactive_status'])->name('unactive_status');
Route::get('destroy/{id}',[AboutController::class ,'destroy_advertiser'])->name('destroy');
Route::get('show/{id}',[AboutController::class ,'show_advertiser'])->name('show');
Route::get('invoice-details/{id}', [AboutController::class, 'advertiserInvoiceDetails'])->name('invoice_details');
Route::get('money-receipt/{id}', [AboutController::class, 'advertiserMoneyReceipt'])->name('money_receipt');
});
Route::group(['prefix' => 'about/' ,'as'=>'about.','middleware' => "admin:admin,admin_mange_web_site"] , function () {
Route::get('index',[AboutController::class ,'index'])->name('index');
Route::post('update-about-status',[AboutController::class ,'updateAboutStatus'])->name('updateAboutStatus');
Route::match(['get', 'post'], 'edit/{id}',[AboutController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'add',[AboutController::class ,'add'])->name('add');
Route::get('delete/{id}',[AboutController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'feature_product/' ,'as'=>'features.','middleware' => "admin:admin,admin_feature_product"] , function () {
Route::get('index',[FeaturesController::class ,'index'])->name('index');
Route::get('pending',[FeaturesController::class ,'pending'])->name('pending');
Route::match(['get', 'post'], 'app/{id}',[FeaturesController::class ,'approve'])->name('approve');
Route::match(['get', 'post'], 'delreq/{id}',[FeaturesController::class ,'delreq'])->name('delreq');
Route::get('delete/{id}',[FeaturesController::class ,'delete'])->name('delete');
Route::get('requestdelete/{id}',[FeaturesController::class ,'featur_request_delete'])->name('request_delete');
});
Route::group(['prefix' => 'feature_category/' ,'as'=>'cfeatures.','middleware' => "admin:admin,admin_feature_product"] , function () {
Route::get('index',[FeaturesController::class ,'cindex'])->name('index');
Route::match(['get', 'post'], 'add',[FeaturesController::class ,'cadd'])->name('add');
Route::get('delete/{id}',[FeaturesController::class ,'cdelete'])->name('delete');
});
Route::group(['prefix' => 'top_menu/' ,'as'=>'top_menu.','middleware' => "admin:admin,admin_mange_web_site"] , function () {
Route::get('index',[TopMenuController::class ,'index'])->name('index');
Route::post('update-top_menu-status',[TopMenuController::class ,'updateTopMenuStatus'])->name('updateTopMenuStatus');
Route::match(['get', 'post'], 'edit/{id}',[TopMenuController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'add',[TopMenuController::class ,'add'])->name('add');
Route::get('delete/{id}',[TopMenuController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'tradeShow/' ,'as'=>'tradeShow.','middleware' => "admin:admin,admin_mange_web_site"] , function () {
Route::get('index',[TradeShowController::class ,'index'])->name('index');
Route::match(['get', 'post'], 'edit/{id}',[TradeShowController::class ,'edit'])->name('edit');
Route::match(['get', 'post'], 'add',[TradeShowController::class ,'add'])->name('add');
Route::get('delete/{id}',[TradeShowController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'contact/' ,'as'=>'top_menu.'] , function () {
Route::get('view/{id}',[ContactController::class ,'view'])->name('view');
Route::get('delete/{id}',[ContactController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'contactus/' ,'as'=>'contuct_us.','middleware' => "admin:admin,admin_mange_web_site"] , function () {
Route::get('index',[ContactController::class ,'index'])->name('index');
Route::get('show/{id}',[ContactController::class ,'show'])->name('show');
Route::get('delete/{id}',[ContactController::class ,'c_delete'])->name('delete');
});
Route::group(['prefix' => 'rfq/' ,'as'=>'rfq.','middleware' => "admin:admin,admin_rfqs"] , function () {
Route::get('index',[RfqController::class ,'index'])->name('index');
Route::get('approved/{id}',[RfqController::class ,'approved'])->name('approved');
Route::get('show/{id}',[RfqController::class ,'show'])->name('show');
Route::get('delete/{id}',[RfqController::class ,'delete'])->name('delete');
});
Route::group(['prefix' => 'user/management/' ,'as'=>'user_namagement.'] , function () {
Route::group(['prefix' => 'admin/' ,'as'=>'admin.'] , function () {
Route::post('admin_store',[RoleController::class ,'admin_store'])->name('admin_store');
Route::get('admin_create',[RoleController::class ,'admin_create'])->name('admin_create');
Route::get('admin_index',[RoleController::class ,'admin_index'])->name('admin_index');
});
Route::group(['prefix' => 'role/' ,'as'=>'role.'] , function () {
Route::get('index',[RoleController::class ,'index'])->name('index');
Route::get('create',[RoleController::class ,'create'])->name('create');
Route::post('store',[RoleController::class ,'store'])->name('store');
Route::put('update/{id}',[RoleController::class ,'update'])->name('update');
Route::get('show/{id}',[RoleController::class ,'show'])->name('show');
Route::get('destroy/{id}',[RoleController::class ,'destroy'])->name('destroy');
});
});
});
});
Route::get('/lol', [App\Http\Controllers\HomeController::class, 'root'])->name('root');
Route::middleware('admin')->name('admin.')->group(function () {
Route::controller('AdminController')->group(function(){
Route::get('profile', 'profile')->name('profile');
Route::post('profile', 'profileUpdate')->name('profile.update');
Route::get('password', 'password')->name('password');
Route::post('password', 'passwordUpdate')->name('password.update');
//Notification
Route::get('notifications','notifications')->name('notifications');
Route::get('notification/read/{id}','notificationRead')->name('notification.read');
Route::get('notifications/read-all','readAll')->name('notifications.readAll');
//Report Bugs
Route::get('request-report','requestReport')->name('request.report');
Route::post('request-report','reportSubmit');
Route::get('download-attachments/{file_hash}', 'downloadAttachment')->name('download.attachment');
});
// Users Manager
Route::controller('ManageUsersController')->name('users.')->prefix('users')->group(function(){
Route::get('/', 'allUsers')->name('all');
Route::get('active', 'activeUsers')->name('active');
Route::get('banned', 'bannedUsers')->name('banned');
Route::get('email-verified', 'emailVerifiedUsers')->name('email.verified');
Route::get('email-unverified', 'emailUnverifiedUsers')->name('email.unverified');
Route::get('mobile-unverified', 'mobileUnverifiedUsers')->name('mobile.unverified');
Route::get('kyc-unverified', 'kycUnverifiedUsers')->name('kyc.unverified');
Route::get('kyc-pending', 'kycPendingUsers')->name('kyc.pending');
Route::get('mobile-verified', 'mobileVerifiedUsers')->name('mobile.verified');
Route::get('mobile-verified', 'mobileVerifiedUsers')->name('mobile.verified');
Route::get('with-balance', 'usersWithBalance')->name('with.balance');
Route::get('detail/{id}', 'detail')->name('detail');
Route::get('kyc-data/{id}', 'kycDetails')->name('kyc.details');
Route::post('kyc-approve/{id}', 'kycApprove')->name('kyc.approve');
Route::post('kyc-reject/{id}', 'kycReject')->name('kyc.reject');
Route::post('update/{id}', 'update')->name('update');
Route::post('add-sub-balance/{id}', 'addSubBalance')->name('add.sub.balance');
Route::get('send-notification/{id}', 'showNotificationSingleForm')->name('notification.single');
Route::post('send-notification/{id}', 'sendNotificationSingle')->name('notification.single');
Route::get('login/{id}', 'login')->name('login');
Route::post('status/{id}', 'status')->name('status');
Route::get('send-notification', 'showNotificationAllForm')->name('notification.all');
Route::post('send-notification', 'sendNotificationAll')->name('notification.all.send');
Route::get('notification-log/{id}', 'notificationLog')->name('notification.log');
});
// Deposit Gateway
Route::name('gateway.')->prefix('gateway')->group(function(){
// Automatic Gateway
Route::controller('AutomaticGatewayController')->group(function(){
Route::get('automatic', 'index')->name('automatic.index');
Route::get('automatic/edit/{alias}', 'edit')->name('automatic.edit');
Route::post('automatic/update/{code}', 'update')->name('automatic.update');
Route::post('automatic/remove/{id}', 'remove')->name('automatic.remove');
Route::post('automatic/activate/{code}', 'activate')->name('automatic.activate');
Route::post('automatic/deactivate/{code}', 'deactivate')->name('automatic.deactivate');
});
// Manual Methods
Route::controller('ManualGatewayController')->group(function(){
Route::get('manual', 'index')->name('manual.index');
Route::get('manual/new', 'create')->name('manual.create');
Route::post('manual/new', 'store')->name('manual.store');
Route::get('manual/edit/{alias}', 'edit')->name('manual.edit');
Route::post('manual/update/{id}', 'update')->name('manual.update');
Route::post('manual/activate/{code}', 'activate')->name('manual.activate');
Route::post('manual/deactivate/{code}', 'deactivate')->name('manual.deactivate');
});
});
// DEPOSIT SYSTEM
Route::name('deposit.')->controller('DepositController')->prefix('deposit')->group(function(){
Route::get('/', 'deposit')->name('list');
Route::get('pending', 'pending')->name('pending');
Route::get('rejected', 'rejected')->name('rejected');
Route::get('approved', 'approved')->name('approved');
Route::get('successful', 'successful')->name('successful');
Route::get('initiated', 'initiated')->name('initiated');
Route::get('details/{id}', 'details')->name('details');
Route::post('reject', 'reject')->name('reject');
Route::post('approve/{id}', 'approve')->name('approve');
});
// WITHDRAW SYSTEM
Route::name('withdraw.')->prefix('withdraw')->group(function(){
Route::controller('WithdrawalController')->group(function(){
Route::get('pending', 'pending')->name('pending');
Route::get('approved', 'approved')->name('approved');
Route::get('rejected', 'rejected')->name('rejected');
Route::get('log', 'log')->name('log');
Route::get('details/{id}', 'details')->name('details');
Route::post('approve', 'approve')->name('approve');
Route::post('reject', 'reject')->name('reject');
});
// Withdraw Method
Route::controller('WithdrawMethodController')->group(function(){
Route::get('method/', 'methods')->name('method.index');
Route::get('method/create', 'create')->name('method.create');
Route::post('method/create', 'store')->name('method.store');
Route::get('method/edit/{id}', 'edit')->name('method.edit');
Route::post('method/edit/{id}', 'update')->name('method.update');
Route::post('method/activate/{id}', 'activate')->name('method.activate');
Route::post('method/deactivate/{id}', 'deactivate')->name('method.deactivate');
});
});
//refer
Route::controller('ReferralController')->name('referrals.')->prefix('referrals')->group(function(){
Route::get('/', 'index')->name('index');
Route::post('/', 'update')->name('update');
Route::get('status/{id}', 'status')->name('status');
});
//Plan
Route::get('/plan', 'PlanController@index')->name('plan.index');
Route::post('/plan', 'PlanController@savePlan')->name('plan.save');
//PTC ADS
Route::controller('ManagePtcController')->name('ptc.')->prefix('ptc')->group(function(){
Route::get('/', 'index')->name('index');
Route::get('active', 'active')->name('active');
Route::get('inactive', 'inactive')->name('inactive');
Route::get('pending', 'pending')->name('pending');
Route::get('rejected', 'rejected')->name('rejected');
Route::get('create', 'create')->name('create');
Route::post('store', 'store')->name('store');
Route::get('edit/{id}', 'edit')->name('edit');
Route::post('update/{id}', 'update')->name('update');
});
// Report
Route::controller('ReportController')->name('report.')->prefix('report')->group(function(){
Route::get('transaction', 'transaction')->name('transaction');
Route::get('login/history', 'loginHistory')->name('login.history');
Route::get('login/ipHistory/{ip}', 'loginIpHistory')->name('login.ipHistory');
Route::get('notification/history', 'notificationHistory')->name('notification.history');
Route::get('email/detail/{id}', 'emailDetails')->name('email.details');
Route::get('ptcview', 'ptcview')->name('ptcview');
Route::get('referral-commissions', 'commissions')->name('commissions');
});
// Admin Support
Route::controller('SupportTicketController')->group(function(){
Route::get('tickets', 'tickets')->name('ticket');
Route::get('tickets/pending', 'pendingTicket')->name('ticket.pending');
Route::get('tickets/closed', 'closedTicket')->name('ticket.closed');
Route::get('tickets/answered', 'answeredTicket')->name('ticket.answered');
Route::get('tickets/view/{id}', 'ticketReply')->name('ticket.view');
Route::post('ticket/reply/{id}', 'replyTicket')->name('ticket.reply');
Route::post('ticket/close/{id}', 'closeTicket')->name('ticket.close');
Route::get('ticket/download/{ticket}', 'ticketDownload')->name('ticket.download');
Route::post('ticket/delete/{id}', 'ticketDelete')->name('ticket.delete');
});
// Language Manager
Route::controller('LanguageController')->group(function(){
Route::get('/language', 'langManage')->name('language.manage');
Route::post('/language', 'langStore')->name('language.manage.store');
Route::post('/language/delete/{id}', 'langDelete')->name('language.manage.delete');
Route::post('/language/update/{id}', 'langUpdate')->name('language.manage.update');
Route::get('/language/edit/{id}', 'langEdit')->name('language.key');
Route::post('/language/import', 'langImport')->name('language.import.lang');
Route::post('language/store/key/{id}', 'storeLanguageJson')->name('language.store.key');
Route::post('language/delete/key/{id}', 'deleteLanguageJson')->name('language.delete.key');
Route::post('language/update/key/{id}', 'updateLanguageJson')->name('language.update.key');
});
Route::controller('GeneralSettingController')->group(function(){
// General Setting
Route::get('general-setting', 'index')->name('setting.index');
Route::post('general-setting', 'update')->name('setting.update');
// Logo-Icon
Route::get('setting/logo-icon', 'logoIcon')->name('setting.logo.icon');
Route::post('setting/logo-icon', 'logoIconUpdate')->name('setting.logo.icon');
//Custom CSS
Route::get('custom-css','customCss')->name('setting.custom.css');
Route::post('custom-css','customCssSubmit');
//Cookie
Route::get('cookie','cookie')->name('setting.cookie');
Route::post('cookie','cookieSubmit');
//maintenance_mode
Route::get('maintenance-mode','maintenanceMode')->name('maintenance.mode');
Route::post('maintenance-mode','maintenanceModeSubmit');
//maintenance_mode
Route::get('ads-setting','adsSetting')->name('setting.ads');
Route::post('ads-setting','adsSettingSubmit');
});
//KYC setting
Route::controller('KycController')->group(function(){
Route::get('kyc-setting','setting')->name('kyc.setting');
Route::post('kyc-setting','settingUpdate');
});
//Notification Setting
Route::name('setting.notification.')->controller('NotificationController')->prefix('notification')->group(function(){
//Template Setting
Route::get('global','global')->name('global');
Route::post('global/update','globalUpdate')->name('global.update');
Route::get('templates','templates')->name('templates');
Route::get('template/edit/{id}','templateEdit')->name('template.edit');
Route::post('template/update/{id}','templateUpdate')->name('template.update');
//Email Setting
Route::get('email/setting','emailSetting')->name('email');
Route::post('email/setting','emailSettingUpdate');
Route::post('email/test','emailTest')->name('email.test');
//SMS Setting
Route::get('sms/setting','smsSetting')->name('sms');
Route::post('sms/setting','smsSettingUpdate');
Route::post('sms/test','smsTest')->name('sms.test');
});
// Plugin
Route::controller('ExtensionController')->group(function(){
Route::get('extensions', 'index')->name('extensions.index');
Route::post('extensions/update/{id}', 'update')->name('extensions.update');
Route::post('extensions/status/{id}', 'status')->name('extensions.status');
});
//System Information
Route::controller('SystemController')->name('system.')->prefix('system')->group(function(){
Route::get('info','systemInfo')->name('info');
Route::get('server-info','systemServerInfo')->name('server.info');
Route::get('optimize', 'optimize')->name('optimize');
Route::get('optimize-clear', 'optimizeClear')->name('optimize.clear');
});
// SEO
Route::get('seo', 'FrontendController@seoEdit')->name('seo');
// Frontend
Route::name('frontend.')->prefix('frontend')->group(function () {
Route::controller('FrontendController')->group(function(){
Route::get('templates', 'templates')->name('templates');
Route::post('templates', 'templatesActive')->name('templates.active');
Route::get('frontend-sections/{key}', 'frontendSections')->name('sections');
Route::post('frontend-content/{key}', 'frontendContent')->name('sections.content');
Route::get('frontend-element/{key}/{id?}', 'frontendElement')->name('sections.element');
Route::post('remove/{id}', 'remove')->name('remove');
});
// Page Builder
Route::controller('PageBuilderController')->group(function(){
Route::get('manage-pages', 'managePages')->name('manage.pages');
Route::post('manage-pages', 'managePagesSave')->name('manage.pages.save');
Route::post('manage-pages/update', 'managePagesUpdate')->name('manage.pages.update');
Route::post('manage-pages/delete/{id}', 'managePagesDelete')->name('manage.pages.delete');
Route::get('manage-section/{id}', 'manageSection')->name('manage.section');
Route::post('manage-section/{id}', 'manageSectionUpdate')->name('manage.section.update');
});
});
});