admin.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. <?php
  2. use App\Http\Controllers\AddonController;
  3. use App\Http\Controllers\AdminController;
  4. use App\Http\Controllers\AizUploadController;
  5. use App\Http\Controllers\AttributeController;
  6. use App\Http\Controllers\BlogCategoryController;
  7. use App\Http\Controllers\BlogController;
  8. use App\Http\Controllers\BrandController;
  9. use App\Http\Controllers\BusinessSettingsController;
  10. use App\Http\Controllers\CategoryController;
  11. use App\Http\Controllers\CityController;
  12. use App\Http\Controllers\CommissionController;
  13. use App\Http\Controllers\ConversationController;
  14. use App\Http\Controllers\CountryController;
  15. use App\Http\Controllers\CouponController;
  16. use App\Http\Controllers\CurrencyController;
  17. use App\Http\Controllers\CustomerController;
  18. use App\Http\Controllers\ManualPaymentMethodController;
  19. use App\Http\Controllers\SalesmanController;
  20. use App\Http\Controllers\CustomerPackageController;
  21. use App\Http\Controllers\CustomerProductController;
  22. use App\Http\Controllers\DigitalProductController;
  23. use App\Http\Controllers\FlashDealController;
  24. use App\Http\Controllers\LanguageController;
  25. use App\Http\Controllers\NewsletterController;
  26. use App\Http\Controllers\NotificationController;
  27. use App\Http\Controllers\OrderController;
  28. use App\Http\Controllers\PageController;
  29. use App\Http\Controllers\PaymentController;
  30. use App\Http\Controllers\PickupPointController;
  31. use App\Http\Controllers\ProductBulkUploadController;
  32. use App\Http\Controllers\ProductController;
  33. use App\Http\Controllers\ProductQueryController;
  34. use App\Http\Controllers\ProductStorehouseController;
  35. use App\Http\Controllers\ProductCollectController;
  36. use App\Http\Controllers\ProfileController;
  37. use App\Http\Controllers\ReportController;
  38. use App\Http\Controllers\ReviewController;
  39. use App\Http\Controllers\RoleController;
  40. use App\Http\Controllers\SellerController;
  41. use App\Http\Controllers\SellerWithdrawRequestController;
  42. use App\Http\Controllers\StaffController;
  43. use App\Http\Controllers\StateController;
  44. use App\Http\Controllers\SubscriberController;
  45. use App\Http\Controllers\SupportTicketController;
  46. use App\Http\Controllers\TaxController;
  47. use App\Http\Controllers\UpdateController;
  48. use App\Http\Controllers\WalletController;
  49. use App\Http\Controllers\WebsiteController;
  50. /*
  51. |--------------------------------------------------------------------------
  52. | Admin Routes
  53. |--------------------------------------------------------------------------
  54. |
  55. | Here is where you can register admin routes for your application. These
  56. | routes are loaded by the RouteServiceProvider within a group which
  57. | contains the "web" middleware group. Now create something great!
  58. |
  59. */
  60. //Update Routes
  61. Route::controller(UpdateController::class)->group(function () {
  62. Route::post('/update', 'step0')->name('update');
  63. Route::get('/update/step1', 'step1')->name('update.step1');
  64. Route::get('/update/step2', 'step2')->name('update.step2');
  65. });
  66. Route::get('/admin', [AdminController::class, 'admin_dashboard'])->name('admin.dashboard')->middleware(['auth', 'admin']);
  67. Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'admin']], function () {
  68. Route::post('/admin-wallet-recharge-modal', [ManualPaymentMethodController::class, 'admin_recharge_modal'])->name('admin.admin_wallet_recharge_modal');//管理员充值
  69. Route::post('/admin-offline-wallet-recharge', [WalletController::class, 'offline_recharge'])->name('admin_wallet_recharge.make_payment');
  70. // category
  71. Route::resource('categories', CategoryController::class);
  72. Route::controller(CategoryController::class)->group(function () {
  73. Route::get('/categories/edit/{id}', 'edit')->name('categories.edit');
  74. Route::get('/categories/destroy/{id}', 'destroy')->name('categories.destroy');
  75. Route::post('/categories/featured', 'updateFeatured')->name('categories.featured');
  76. });
  77. // Brand
  78. Route::resource('brands', BrandController::class);
  79. Route::controller(BrandController::class)->group(function () {
  80. Route::get('/brands/edit/{id}', 'edit')->name('brands.edit');
  81. Route::get('/brands/destroy/{id}', 'destroy')->name('brands.destroy');
  82. });
  83. // Products
  84. Route::controller(ProductController::class)->group(function () {
  85. Route::get('/products/admin', 'admin_products')->name('products.admin');
  86. Route::get('/products/seller', 'seller_products')->name('products.seller');
  87. Route::get('/products/all', 'all_products')->name('products.all');
  88. Route::get('/products/create', 'create')->name('products.create');
  89. Route::get('/products/gather', 'gather')->name('products.gather');
  90. Route::get('/products/twcaiji', 'twcaiji')->name('products.twcaiji');
  91. Route::get('/products/encaiji', 'encaiji')->name('products.encaiji');
  92. Route::get('/products/thcaiji', 'thcaiji')->name('products.thcaiji');
  93. Route::post('/products/store/', 'store')->name('products.store');
  94. Route::get('/products/admin/{id}/edit', 'admin_product_edit')->name('products.admin.edit');
  95. Route::get('/products/seller/{id}/edit', 'seller_product_edit')->name('products.seller.edit');
  96. Route::post('/products/update/{product}', 'update')->name('products.update');
  97. Route::post('/products/todays_deal', 'updateTodaysDeal')->name('products.todays_deal');
  98. Route::post('/products/featured', 'updateFeatured')->name('products.featured');
  99. Route::post('/products/published', 'updatePublished')->name('products.published');
  100. Route::post('/products/approved', 'updateProductApproval')->name('products.approved');
  101. Route::post('/products/get_products_by_subcategory', 'get_products_by_subcategory')->name('products.get_products_by_subcategory');
  102. Route::get('/products/duplicate/{id}', 'duplicate')->name('products.duplicate');
  103. Route::get('/products/destroy/{id}', 'destroy')->name('products.destroy');
  104. Route::post('/bulk-product-delete', 'bulk_product_delete')->name('bulk-product-delete');
  105. Route::post('/products/sku_combination', 'sku_combination')->name('products.sku_combination');
  106. Route::post('/products/sku_combination_edit', 'sku_combination_edit')->name('products.sku_combination_edit');
  107. Route::post('/products/add-more-choice-option', 'add_more_choice_option')->name('products.add-more-choice-option');
  108. });
  109. // Products Storehouse
  110. Route::controller(ProductStorehouseController::class)->group(function () {
  111. Route::get('/product/storehouse', 'index')->name('product_storehouse.index');
  112. Route::post('/product/storehouse/bulk-product-storehouse-update', 'product_storehouse_update')->name('product-storehouse-update');
  113. Route::get('/product/storehouse/bulk-product-storehouse-move-out/{id}', 'product_storehouse_move_out')->name('product-storehouse-move-out')->where('id', '[0-9]+');
  114. Route::get('/product/storehouse/product-storehouse-order-free-up/{id}', 'product_storehouse_order_free_up')->name('product-storehouse-order-free-up')->where('id', '[0-9]+');
  115. Route::post('/product/storehouse/bulk-product-storehouse-add', 'bulk_product_storehouse_add')->name('bulk-product-storehouse-add');
  116. });
  117. // Products Collect'
  118. Route::controller(ProductCollectController::class)->group(function () {
  119. Route::get('/product/collect', 'index')->name('product_collect.index');
  120. Route::get('/product/ids', 'ids')->name('product_collect.ids');
  121. Route::get('/product/data', 'data')->name('product_collect.data');
  122. Route::post('/product/collect/bulk-product-collect-update', 'product_collect_update')->name('product-collect-update');
  123. Route::get('/product/collect/bulk-product-collect-move-out/{id}', 'product_collect_move_out')->name('product-collect-move-out')->where('id', '[0-9]+');
  124. Route::get('/product/collect/product-collect-order-free-up/{id}', 'product_collect_order_free_up')->name('product-collect-order-free-up')->where('id', '[0-9]+');
  125. Route::post('/product/collect/bulk-product-collect-add', 'bulk_product_collect_add')->name('bulk-product-collect-add');
  126. });
  127. // Digital Product
  128. Route::resource('digitalproducts', DigitalProductController::class);
  129. Route::controller(DigitalProductController::class)->group(function () {
  130. Route::get('/digitalproducts/edit/{id}', 'edit')->name('digitalproducts.edit');
  131. Route::get('/digitalproducts/destroy/{id}', 'destroy')->name('digitalproducts.destroy');
  132. Route::get('/digitalproducts/download/{id}', 'download')->name('digitalproducts.download');
  133. });
  134. Route::controller(ProductBulkUploadController::class)->group(function () {
  135. //Product Export
  136. Route::get('/product-bulk-export', 'export')->name('product_bulk_export.index');
  137. //Product Bulk Upload
  138. Route::get('/product-bulk-upload/index', 'index')->name('product_bulk_upload.index');
  139. Route::post('/bulk-product-upload', 'bulk_upload')->name('bulk_product_upload');
  140. Route::get('/product-csv-download/{type}', 'import_product')->name('product_csv.download');
  141. Route::get('/vendor-product-csv-download/{id}', 'import_vendor_product')->name('import_vendor_product.download');
  142. Route::group(['prefix' => 'bulk-upload/download'], function () {
  143. Route::get('/category', 'pdf_download_category')->name('pdf.download_category');
  144. Route::get('/brand', 'pdf_download_brand')->name('pdf.download_brand');
  145. Route::get('/seller', 'pdf_download_seller')->name('pdf.download_seller');
  146. });
  147. });
  148. // Seller
  149. Route::resource('sellers', SellerController::class);
  150. Route::controller(SellerController::class)->group(function () {
  151. Route::get('sellers_ban/{id}', 'ban')->name('sellers.ban');
  152. Route::get('/sellers/destroy/{id}', 'destroy')->name('sellers.destroy');
  153. Route::post('/bulk-seller-delete', 'bulk_seller_delete')->name('bulk-seller-delete');
  154. Route::get('/sellers/view/{id}/verification', 'show_verification_request')->name('sellers.show_verification_request');
  155. Route::get('/sellers/approve/{id}', 'approve_seller')->name('sellers.approve');
  156. Route::get('/sellers/reject/{id}', 'reject_seller')->name('sellers.reject');
  157. Route::get('/sellers/login/{id}', 'login')->name('sellers.login');
  158. Route::post('/sellers/payment_modal', 'payment_modal')->name('sellers.payment_modal');
  159. Route::post('/sellers/guarantee_money_modal', 'guarantee_money_modal')->name('sellers.guarantee_money_modal');
  160. Route::post('/sellers/profile_modal', 'profile_modal')->name('sellers.profile_modal');
  161. Route::post('/sellers/approved', 'updateApproved')->name('sellers.approved');
  162. Route::post('/sellers/comment_permission', 'updateCommentPermission')->name('sellers.comment_permission');
  163. Route::post('/sellers/home_display', 'updateHomeDisplay')->name('sellers.home_display');
  164. Route::post('/sellers/setpackage', 'setpackage')->name('sellers.setpackage');
  165. Route::post('/sellers/setbzj', 'setbzj')->name('sellers.setbzj');
  166. Route::post('/sellers/setviews', 'setviews')->name('sellers.setviews');
  167. Route::post('/sellers/setpid', 'setpid')->name('sellers.setpid');
  168. });
  169. // Seller Payment
  170. Route::controller(PaymentController::class)->group(function () {
  171. Route::get('/seller/payments', 'payment_histories')->name('sellers.payment_histories');
  172. Route::get('/seller/payment_histories_cus', 'payment_histories_cus')->name('sellers.payment_histories_cus');
  173. Route::get('/seller/payments/show/{id}', 'show')->name('sellers.payment_history');
  174. });
  175. // Seller Withdraw Request
  176. Route::resource('/withdraw_requests', SellerWithdrawRequestController::class);
  177. Route::controller(SellerWithdrawRequestController::class)->group(function () {
  178. Route::get('/withdraw_requests_all', 'index')->name('withdraw_requests_all');
  179. Route::get('/withdraw_requests_all_by_user', 'index_by_user')->name('withdraw_requests_all_by_user');
  180. Route::get('/withdraw_requests_by_customer', 'index_by_customer')->name('withdraw_requests_by_customer');
  181. Route::post('/withdraw_request/payment_modal', 'payment_modal')->name('withdraw_request.payment_modal');
  182. Route::post('/withdraw_request/payment_modal_user', 'payment_modal_user')->name('withdraw_request.payment_modal_user');
  183. Route::post('/withdraw_request/message_modal', 'message_modal')->name('withdraw_request.message_modal');
  184. Route::any('/withdraw_request/refuse_modal', 'refuse_modal')->name('withdraw_request.refuse_modal');
  185. });
  186. // Customer
  187. Route::resource('customers', CustomerController::class);
  188. Route::controller(CustomerController::class)->group(function () {
  189. Route::any('/customers/create_virtual_user', 'create_virtual_user')->name('customers.create_virtual_user');
  190. Route::get('customers_ban/{customer}', 'ban')->name('customers.ban');
  191. Route::get('/customers/login/{id}', 'login')->name('customers.login');
  192. Route::get('/customers/destroy/{id}', 'destroy')->name('customers.destroy');
  193. Route::post('/bulk-customer-delete', 'bulk_customer_delete')->name('bulk-customer-delete');
  194. });
  195. Route::resource('salesmans', SalesmanController::class);
  196. Route::controller(SalesmanController::class)->group(function () {
  197. Route::get('salesmans_ban/{customer}', 'ban')->name('salesmans.ban');
  198. Route::get('/salesmans/login/{id}', 'login')->name('salesmans.login');
  199. Route::get('/salesmans/destroy/{id}', 'destroy')->name('salesmans.destroy');
  200. Route::post('/bulk-salesman-delete', 'bulk_salesman_delete')->name('bulk-salesman-delete');
  201. });
  202. // Newsletter
  203. Route::controller(NewsletterController::class)->group(function () {
  204. Route::get('/newsletter', 'index')->name('newsletters.index');
  205. Route::post('/newsletter/send', 'send')->name('newsletters.send');
  206. Route::post('/newsletter/test/smtp', 'testEmail')->name('test.smtp');
  207. });
  208. Route::resource('profile', ProfileController::class);
  209. // Business Settings
  210. Route::controller(BusinessSettingsController::class)->group(function () {
  211. Route::post('/business-settings/update', 'update')->name('business_settings.update');
  212. Route::post('/business-settings/update2', 'update2')->name('business_settings.update2');
  213. Route::post('/business-settings/update/activation', 'updateActivationSettings')->name('business_settings.update.activation');
  214. Route::get('/general-setting', 'general_setting')->name('general_setting.index');
  215. Route::get('/activation', 'activation')->name('activation.index');
  216. Route::get('/payment-method', 'payment_method')->name('payment_method.index');
  217. Route::get('/file_system', 'file_system')->name('file_system.index');
  218. Route::get('/social-login', 'social_login')->name('social_login.index');
  219. Route::get('/smtp-settings', 'smtp_settings')->name('smtp_settings.index');
  220. Route::get('/google-analytics', 'google_analytics')->name('google_analytics.index');
  221. Route::get('/google-recaptcha', 'google_recaptcha')->name('google_recaptcha.index');
  222. Route::get('/google-map', 'google_map')->name('google-map.index');
  223. Route::get('/google-firebase', 'google_firebase')->name('google-firebase.index');
  224. //Facebook Settings
  225. Route::get('/facebook-chat', 'facebook_chat')->name('facebook_chat.index');
  226. Route::post('/facebook_chat', 'facebook_chat_update')->name('facebook_chat.update');
  227. Route::get('/facebook-comment', 'facebook_comment')->name('facebook-comment');
  228. Route::post('/facebook-comment', 'facebook_comment_update')->name('facebook-comment.update');
  229. Route::post('/facebook_pixel', 'facebook_pixel_update')->name('facebook_pixel.update');
  230. Route::post('/env_key_update', 'env_key_update')->name('env_key_update.update');
  231. Route::post('/payment_method_update', 'payment_method_update')->name('payment_method.update');
  232. Route::post('/google_analytics', 'google_analytics_update')->name('google_analytics.update');
  233. Route::post('/google_recaptcha', 'google_recaptcha_update')->name('google_recaptcha.update');
  234. Route::post('/google-map', 'google_map_update')->name('google-map.update');
  235. Route::post('/google-firebase', 'google_firebase_update')->name('google-firebase.update');
  236. Route::get('/verification/form', 'seller_verification_form')->name('seller_verification_form.index');
  237. Route::post('/verification/form', 'seller_verification_form_update')->name('seller_verification_form.update');
  238. Route::get('/vendor_commission', 'vendor_commission')->name('business_settings.vendor_commission');
  239. Route::post('/vendor_commission_update', 'vendor_commission_update')->name('business_settings.vendor_commission.update');
  240. //Shipping Configuration
  241. Route::get('/shipping_configuration', 'shipping_configuration')->name('shipping_configuration.index');
  242. Route::post('/shipping_configuration/update', 'shipping_configuration_update')->name('shipping_configuration.update');
  243. // Order Configuration
  244. Route::get('/order-configuration', 'order_configuration')->name('order_configuration.index');
  245. });
  246. //Currency
  247. Route::controller(CurrencyController::class)->group(function () {
  248. Route::get('/currency', 'currency')->name('currency.index');
  249. Route::post('/currency/update', 'updateCurrency')->name('currency.update');
  250. Route::post('/your-currency/update', 'updateYourCurrency')->name('your_currency.update');
  251. Route::get('/currency/create', 'create')->name('currency.create');
  252. Route::post('/currency/store', 'store')->name('currency.store');
  253. Route::post('/currency/currency_edit', 'edit')->name('currency.edit');
  254. Route::post('/currency/update_status', 'update_status')->name('currency.update_status');
  255. });
  256. //Tax
  257. Route::resource('tax', TaxController::class);
  258. Route::controller(TaxController::class)->group(function () {
  259. Route::get('/tax/edit/{id}', 'edit')->name('tax.edit');
  260. Route::get('/tax/destroy/{id}', 'destroy')->name('tax.destroy');
  261. Route::post('tax-status', 'change_tax_status')->name('taxes.tax-status');
  262. });
  263. // Language
  264. Route::resource('/languages', LanguageController::class);
  265. Route::controller(LanguageController::class)->group(function () {
  266. Route::post('/languages/{id}/update', 'update')->name('languages.update');
  267. Route::get('/languages/destroy/{id}', 'destroy')->name('languages.destroy');
  268. Route::post('/languages/update_rtl_status', 'update_rtl_status')->name('languages.update_rtl_status');
  269. Route::post('/languages/update-status', 'update_status')->name('languages.update-status');
  270. Route::post('/languages/key_value_store', 'key_value_store')->name('languages.key_value_store');
  271. //App Trasnlation
  272. Route::post('/languages/app-translations/import', 'importEnglishFile')->name('app-translations.import');
  273. Route::get('/languages/app-translations/show/{id}', 'showAppTranlsationView')->name('app-translations.show');
  274. Route::post('/languages/app-translations/key_value_store', 'storeAppTranlsation')->name('app-translations.store');
  275. Route::get('/languages/app-translations/export/{id}', 'exportARBFile')->name('app-translations.export');
  276. });
  277. // website setting
  278. Route::group(['prefix' => 'website'], function () {
  279. Route::controller(WebsiteController::class)->group(function () {
  280. Route::get('/footer', 'footer')->name('website.footer');
  281. Route::get('/header', 'header')->name('website.header');
  282. Route::get('/appearance', 'appearance')->name('website.appearance');
  283. Route::get('/pages', 'pages')->name('website.pages');
  284. Route::get('/guarantee', 'guarantee')->name('website.guarantee');
  285. });
  286. // Custom Page
  287. Route::resource('custom-pages', PageController::class);
  288. Route::controller(PageController::class)->group(function () {
  289. Route::get('/custom-pages/edit/{id}', 'edit')->name('custom-pages.edit');
  290. Route::get('/custom-pages/destroy/{id}', 'destroy')->name('custom-pages.destroy');
  291. });
  292. });
  293. // Staff Roles
  294. Route::resource('roles', RoleController::class);
  295. Route::controller(RoleController::class)->group(function () {
  296. Route::get('/roles/edit/{id}', 'edit')->name('roles.edit');
  297. Route::get('/roles/destroy/{id}', 'destroy')->name('roles.destroy');
  298. });
  299. // Staff
  300. Route::resource('staffs', StaffController::class);
  301. Route::get('/staffs/destroy/{id}', [StaffController::class, 'destroy'])->name('staffs.destroy');
  302. // Flash Deal
  303. Route::resource('flash_deals', FlashDealController::class);
  304. Route::controller(FlashDealController::class)->group(function () {
  305. Route::get('/flash_deals/edit/{id}', 'edit')->name('flash_deals.edit');
  306. Route::get('/flash_deals/destroy/{id}', 'destroy')->name('flash_deals.destroy');
  307. Route::post('/flash_deals/update_status', 'update_status')->name('flash_deals.update_status');
  308. Route::post('/flash_deals/update_featured', 'update_featured')->name('flash_deals.update_featured');
  309. Route::post('/flash_deals/product_discount', 'product_discount')->name('flash_deals.product_discount');
  310. Route::post('/flash_deals/product_discount_edit', 'product_discount_edit')->name('flash_deals.product_discount_edit');
  311. });
  312. //Subscribers
  313. Route::controller(SubscriberController::class)->group(function () {
  314. Route::get('/subscribers', 'index')->name('subscribers.index');
  315. Route::get('/subscribers/destroy/{id}', 'destroy')->name('subscriber.destroy');
  316. });
  317. // Order
  318. Route::resource('orders', OrderController::class);
  319. Route::controller(OrderController::class)->group(function () {
  320. // All Orders
  321. Route::get('/all_orders', 'all_orders')->name('all_orders.index');
  322. Route::get('/all_orders/{id}/show', 'all_orders_show')->name('all_orders.show');
  323. // Storehouse Orders
  324. Route::get('/storehouse_orders', 'storehouse_orders')->name('storehouse_orders.index');
  325. Route::get('/storehouse_orders/{id}/show', 'storehouse_orders_show')->name('storehouse_orders.show');
  326. // Inhouse Orders
  327. Route::get('/inhouse-orders', 'admin_orders')->name('inhouse_orders.index');
  328. Route::get('/inhouse-orders/{id}/show', 'show')->name('inhouse_orders.show');
  329. // Seller Orders
  330. Route::get('/seller_orders', 'seller_orders')->name('seller_orders.index');
  331. Route::get('/seller_orders/{id}/show', 'seller_orders_show')->name('seller_orders.show');
  332. Route::post('/bulk-order-status', 'bulk_order_status')->name('bulk-order-status');
  333. // Pickup point orders
  334. Route::get('orders_by_pickup_point', 'pickup_point_order_index')->name('pick_up_point.order_index');
  335. Route::get('/orders_by_pickup_point/{id}/show', 'pickup_point_order_sales_show')->name('pick_up_point.order_show');
  336. Route::get('/orders/destroy/{id}', 'destroy')->name('orders.destroy');
  337. Route::post('/bulk-order-delete', 'bulk_order_delete')->name('bulk-order-delete');
  338. Route::get('/orders/destroy/{id}', 'destroy')->name('orders.destroy');
  339. Route::post('/orders/details', 'order_details')->name('orders.details');
  340. Route::post('/orders/update_delivery_status', 'update_delivery_status')->name('orders.update_delivery_status');
  341. Route::post('/orders/update_payment_status', 'update_payment_status')->name('orders.update_payment_status');
  342. Route::post('/orders/update_tracking_code', 'update_tracking_code')->name('orders.update_tracking_code');
  343. //Delivery Boy Assign
  344. Route::post('/orders/delivery-boy-assign', 'assign_delivery_boy')->name('orders.delivery-boy-assign');
  345. });
  346. Route::post('/pay_to_seller', [CommissionController::class, 'pay_to_seller'])->name('commissions.pay_to_seller');
  347. Route::post('/pay_to_seller2', [CommissionController::class, 'pay_to_seller2'])->name('commissions.pay_to_seller2');
  348. Route::post('/refuse', [CommissionController::class, 'refuse'])->name('commissions.refuse');
  349. //Reports
  350. Route::controller(ReportController::class)->group(function () {
  351. Route::get('/stock_report', 'stock_report')->name('stock_report.index');
  352. Route::get('/in_house_sale_report', 'in_house_sale_report')->name('in_house_sale_report.index');
  353. Route::get('/seller_sale_report', 'seller_sale_report')->name('seller_sale_report.index');
  354. Route::get('/wish_report', 'wish_report')->name('wish_report.index');
  355. Route::get('/user_search_report', 'user_search_report')->name('user_search_report.index');
  356. Route::get('/wallet-history', 'wallet_transaction_history')->name('wallet-history.index');
  357. Route::get('/commission-log', 'commission_history')->name('commission-log.index');
  358. });
  359. //Blog Section
  360. //Blog cateory
  361. Route::resource('blog-category', BlogCategoryController::class);
  362. Route::get('/blog-category/destroy/{id}', [BlogCategoryController::class, 'destroy'])->name('blog-category.destroy');
  363. // Blog
  364. Route::resource('blog', BlogController::class);
  365. Route::controller(BlogController::class)->group(function () {
  366. Route::get('/blog/destroy/{id}', 'destroy')->name('blog.destroy');
  367. Route::post('/blog/change-status', 'change_status')->name('blog.change-status');
  368. });
  369. //Coupons
  370. Route::resource('coupon', CouponController::class);
  371. Route::controller(CouponController::class)->group(function () {
  372. Route::get('/coupon/destroy/{id}', 'destroy')->name('coupon.destroy');
  373. //Coupon Form
  374. Route::post('/coupon/get_form', 'get_coupon_form')->name('coupon.get_coupon_form');
  375. Route::post('/coupon/get_form_edit', 'get_coupon_form_edit')->name('coupon.get_coupon_form_edit');
  376. });
  377. //Reviews
  378. Route::controller(ReviewController::class)->group(function () {
  379. Route::get('/reviews', 'index')->name('reviews.index');
  380. Route::post('/reviews/published', 'updatePublished')->name('reviews.published');
  381. });
  382. //Support_Ticket
  383. Route::controller(SupportTicketController::class)->group(function () {
  384. Route::get('support_ticket/', 'admin_index')->name('support_ticket.admin_index');
  385. Route::get('support_ticket/{id}/show', 'admin_show')->name('support_ticket.admin_show');
  386. Route::post('support_ticket/reply', 'admin_store')->name('support_ticket.admin_store');
  387. });
  388. //Pickup_Points
  389. Route::resource('pick_up_points', PickupPointController::class);
  390. Route::controller(PickupPointController::class)->group(function () {
  391. Route::get('/pick_up_points/edit/{id}', 'edit')->name('pick_up_points.edit');
  392. Route::get('/pick_up_points/destroy/{id}', 'destroy')->name('pick_up_points.destroy');
  393. });
  394. //conversation of seller customer
  395. Route::controller(ConversationController::class)->group(function () {
  396. Route::get('conversations', 'admin_index')->name('conversations.admin_index');
  397. Route::get('conversations/{id}/show', 'admin_show')->name('conversations.admin_show');
  398. Route::post('conversations/store', 'admin_store')->name('conversations.admin_store');
  399. });
  400. // product Queries show on Admin panel
  401. Route::controller(ProductQueryController::class)->group(function () {
  402. Route::get('/product-queries', 'index')->name('product_query.index');
  403. Route::get('/product-queries/{id}', 'show')->name('product_query.show');
  404. Route::put('/product-queries/{id}', 'reply')->name('product_query.reply');
  405. });
  406. // Product Attribute
  407. Route::resource('attributes', AttributeController::class);
  408. Route::controller(AttributeController::class)->group(function () {
  409. Route::get('/attributes/edit/{id}', 'edit')->name('attributes.edit');
  410. Route::get('/attributes/destroy/{id}', 'destroy')->name('attributes.destroy');
  411. //Attribute Value
  412. Route::post('/store-attribute-value', 'store_attribute_value')->name('store-attribute-value');
  413. Route::get('/edit-attribute-value/{id}', 'edit_attribute_value')->name('edit-attribute-value');
  414. Route::post('/update-attribute-value/{id}', 'update_attribute_value')->name('update-attribute-value');
  415. Route::get('/destroy-attribute-value/{id}', 'destroy_attribute_value')->name('destroy-attribute-value');
  416. //Colors
  417. Route::get('/colors', 'colors')->name('colors');
  418. Route::post('/colors/store', 'store_color')->name('colors.store');
  419. Route::get('/colors/edit/{id}', 'edit_color')->name('colors.edit');
  420. Route::post('/colors/update/{id}', 'update_color')->name('colors.update');
  421. Route::get('/colors/destroy/{id}', 'destroy_color')->name('colors.destroy');
  422. });
  423. // Addon
  424. Route::resource('addons', AddonController::class);
  425. Route::post('/addons/activation', [AddonController::class, 'activation'])->name('addons.activation');
  426. //Customer Package
  427. Route::resource('customer_packages', CustomerPackageController::class);
  428. Route::controller(CustomerPackageController::class)->group(function () {
  429. Route::get('/customer_packages/edit/{id}', 'edit')->name('customer_packages.edit');
  430. Route::get('/customer_packages/destroy/{id}', 'destroy')->name('customer_packages.destroy');
  431. });
  432. //Classified Products
  433. Route::controller(CustomerProductController::class)->group(function () {
  434. Route::get('/classified_products', 'customer_product_index')->name('classified_products');
  435. Route::post('/classified_products/published', 'updatePublished')->name('classified_products.published');
  436. });
  437. // Countries
  438. Route::resource('countries', CountryController::class);
  439. Route::post('/countries/status', [CountryController::class, 'updateStatus'])->name('countries.status');
  440. // States
  441. Route::resource('states', StateController::class);
  442. Route::post('/states/status', [StateController::class, 'updateStatus'])->name('states.status');
  443. Route::resource('cities', CityController::class);
  444. Route::controller(CityController::class)->group(function () {
  445. Route::get('/cities/edit/{id}', 'edit')->name('cities.edit');
  446. Route::get('/cities/destroy/{id}', 'destroy')->name('cities.destroy');
  447. Route::post('/cities/status', 'updateStatus')->name('cities.status');
  448. });
  449. Route::view('/system/update', 'backend.system.update')->name('system_update');
  450. Route::view('/system/server-status', 'backend.system.server_status')->name('system_server');
  451. // uploaded files
  452. Route::resource('/uploaded-files', AizUploadController::class);
  453. Route::controller(AizUploadController::class)->group(function () {
  454. Route::any('/uploaded-files/file-info', 'file_info')->name('uploaded-files.info');
  455. Route::get('/uploaded-files/destroy/{id}', 'destroy')->name('uploaded-files.destroy');
  456. });
  457. Route::get('/all-notification', [NotificationController::class, 'index'])->name('admin.all-notification');
  458. Route::get('/clear-cache', [AdminController::class, 'clearCache'])->name('cache.clear');
  459. // Product Review
  460. Route::post('/product_admin_review_modal', [ReviewController::class, 'product_admin_review_modal'])->name('product_admin_review_modal');
  461. });