codigo actual del servidor, con avances de joan
This commit is contained in:
488
routes/admin.php
Normal file
488
routes/admin.php
Normal file
@@ -0,0 +1,488 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AddonController;
|
||||
use App\Http\Controllers\AdminController;
|
||||
use App\Http\Controllers\AizUploadController;
|
||||
use App\Http\Controllers\AttributeController;
|
||||
use App\Http\Controllers\AttributeValueController;
|
||||
use App\Http\Controllers\BlogCategoryController;
|
||||
use App\Http\Controllers\BlogController;
|
||||
use App\Http\Controllers\BrandController;
|
||||
use App\Http\Controllers\BusinessSettingsController;
|
||||
use App\Http\Controllers\CarrierController;
|
||||
use App\Http\Controllers\CategoryController;
|
||||
use App\Http\Controllers\CityController;
|
||||
use App\Http\Controllers\CommissionController;
|
||||
use App\Http\Controllers\ConversationController;
|
||||
use App\Http\Controllers\CountryController;
|
||||
use App\Http\Controllers\CouponController;
|
||||
use App\Http\Controllers\CurrencyController;
|
||||
use App\Http\Controllers\CustomerController;
|
||||
use App\Http\Controllers\CustomerPackageController;
|
||||
use App\Http\Controllers\CustomerProductController;
|
||||
use App\Http\Controllers\DigitalProductController;
|
||||
use App\Http\Controllers\FlashDealController;
|
||||
use App\Http\Controllers\LanguageController;
|
||||
use App\Http\Controllers\NewsletterController;
|
||||
use App\Http\Controllers\NotificationController;
|
||||
use App\Http\Controllers\OrderController;
|
||||
use App\Http\Controllers\PageController;
|
||||
use App\Http\Controllers\PaymentController;
|
||||
use App\Http\Controllers\PickupPointController;
|
||||
use App\Http\Controllers\ProductBulkUploadController;
|
||||
use App\Http\Controllers\ProductController;
|
||||
use App\Http\Controllers\ProductQueryController;
|
||||
use App\Http\Controllers\ProfileController;
|
||||
use App\Http\Controllers\ReportController;
|
||||
use App\Http\Controllers\ReviewController;
|
||||
use App\Http\Controllers\RoleController;
|
||||
use App\Http\Controllers\SellerController;
|
||||
use App\Http\Controllers\SellerWithdrawRequestController;
|
||||
use App\Http\Controllers\StaffController;
|
||||
use App\Http\Controllers\StateController;
|
||||
use App\Http\Controllers\SubscriberController;
|
||||
use App\Http\Controllers\SupportTicketController;
|
||||
use App\Http\Controllers\TaxController;
|
||||
use App\Http\Controllers\UpdateController;
|
||||
use App\Http\Controllers\WebsiteController;
|
||||
use App\Http\Controllers\ZoneController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Admin Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
//Update Routes
|
||||
Route::controller(UpdateController::class)->group(function () {
|
||||
Route::post('/update', 'step0')->name('update');
|
||||
Route::get('/update/step1', 'step1')->name('update.step1');
|
||||
Route::get('/update/step2', 'step2')->name('update.step2');
|
||||
Route::get('/update/step3', 'step3')->name('update.step3');
|
||||
Route::post('/purchase_code', 'purchase_code')->name('update.code');
|
||||
});
|
||||
|
||||
Route::get('/admin', [AdminController::class, 'admin_dashboard'])->name('admin.dashboard')->middleware(['auth', 'admin', 'prevent-back-history']);
|
||||
Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'admin', 'prevent-back-history']], function() {
|
||||
|
||||
// category
|
||||
Route::resource('categories', CategoryController::class);
|
||||
Route::controller(CategoryController::class)->group(function () {
|
||||
Route::get('/categories/edit/{id}', 'edit')->name('categories.edit');
|
||||
Route::get('/categories/destroy/{id}', 'destroy')->name('categories.destroy');
|
||||
Route::post('/categories/featured', 'updateFeatured')->name('categories.featured');
|
||||
});
|
||||
|
||||
// Brand
|
||||
Route::resource('brands', BrandController::class);
|
||||
Route::controller(BrandController::class)->group(function () {
|
||||
Route::get('/brands/edit/{id}', 'edit')->name('brands.edit');
|
||||
Route::get('/brands/destroy/{id}', 'destroy')->name('brands.destroy');
|
||||
});
|
||||
|
||||
// Products
|
||||
Route::controller(ProductController::class)->group(function () {
|
||||
Route::get('/products/admin', 'admin_products')->name('products.admin');
|
||||
Route::get('/products/seller', 'seller_products')->name('products.seller');
|
||||
Route::get('/products/all', 'all_products')->name('products.all');
|
||||
Route::get('/products/create', 'create')->name('products.create');
|
||||
Route::post('/products/store/', 'store')->name('products.store');
|
||||
Route::get('/products/admin/{id}/edit', 'admin_product_edit')->name('products.admin.edit');
|
||||
Route::get('/products/seller/{id}/edit', 'seller_product_edit')->name('products.seller.edit');
|
||||
Route::post('/products/update/{product}', 'update')->name('products.update');
|
||||
Route::post('/products/todays_deal', 'updateTodaysDeal')->name('products.todays_deal');
|
||||
Route::post('/products/featured', 'updateFeatured')->name('products.featured');
|
||||
Route::post('/products/published', 'updatePublished')->name('products.published');
|
||||
Route::post('/products/approved', 'updateProductApproval')->name('products.approved');
|
||||
Route::post('/products/get_products_by_subcategory', 'get_products_by_subcategory')->name('products.get_products_by_subcategory');
|
||||
Route::get('/products/duplicate/{id}', 'duplicate')->name('products.duplicate');
|
||||
Route::get('/products/destroy/{id}', 'destroy')->name('products.destroy');
|
||||
Route::post('/bulk-product-delete', 'bulk_product_delete')->name('bulk-product-delete');
|
||||
|
||||
Route::post('/products/sku_combination', 'sku_combination')->name('products.sku_combination');
|
||||
Route::post('/products/sku_combination_edit', 'sku_combination_edit')->name('products.sku_combination_edit');
|
||||
Route::post('/products/add-more-choice-option', 'add_more_choice_option')->name('products.add-more-choice-option');
|
||||
});
|
||||
|
||||
// Digital Product
|
||||
Route::resource('digitalproducts', DigitalProductController::class);
|
||||
Route::controller(DigitalProductController::class)->group(function () {
|
||||
Route::get('/digitalproducts/edit/{id}', 'edit')->name('digitalproducts.edit');
|
||||
Route::get('/digitalproducts/destroy/{id}', 'destroy')->name('digitalproducts.destroy');
|
||||
Route::get('/digitalproducts/download/{id}', 'download')->name('digitalproducts.download');
|
||||
});
|
||||
|
||||
Route::controller(ProductBulkUploadController::class)->group(function () {
|
||||
//Product Export
|
||||
Route::get('/product-bulk-export', 'export')->name('product_bulk_export.index');
|
||||
|
||||
//Product Bulk Upload
|
||||
Route::get('/product-bulk-upload/index', 'index')->name('product_bulk_upload.index');
|
||||
Route::post('/bulk-product-upload', 'bulk_upload')->name('bulk_product_upload');
|
||||
Route::get('/product-csv-download/{type}', 'import_product')->name('product_csv.download');
|
||||
Route::get('/vendor-product-csv-download/{id}', 'import_vendor_product')->name('import_vendor_product.download');
|
||||
Route::group(['prefix' => 'bulk-upload/download'], function() {
|
||||
Route::get('/category', 'pdf_download_category')->name('pdf.download_category');
|
||||
Route::get('/brand', 'pdf_download_brand')->name('pdf.download_brand');
|
||||
Route::get('/seller', 'pdf_download_seller')->name('pdf.download_seller');
|
||||
});
|
||||
});
|
||||
|
||||
// Seller
|
||||
Route::resource('sellers', SellerController::class);
|
||||
Route::controller(SellerController::class)->group(function () {
|
||||
Route::get('sellers_ban/{id}', 'ban')->name('sellers.ban');
|
||||
Route::get('/sellers/destroy/{id}', 'destroy')->name('sellers.destroy');
|
||||
Route::post('/bulk-seller-delete', 'bulk_seller_delete')->name('bulk-seller-delete');
|
||||
Route::get('/sellers/view/{id}/verification', 'show_verification_request')->name('sellers.show_verification_request');
|
||||
Route::get('/sellers/approve/{id}', 'approve_seller')->name('sellers.approve');
|
||||
Route::get('/sellers/reject/{id}', 'reject_seller')->name('sellers.reject');
|
||||
Route::get('/sellers/login/{id}', 'login')->name('sellers.login');
|
||||
Route::post('/sellers/payment_modal', 'payment_modal')->name('sellers.payment_modal');
|
||||
Route::post('/sellers/profile_modal', 'profile_modal')->name('sellers.profile_modal');
|
||||
Route::post('/sellers/approved', 'updateApproved')->name('sellers.approved');
|
||||
});
|
||||
|
||||
// Seller Payment
|
||||
Route::controller(PaymentController::class)->group(function () {
|
||||
Route::get('/seller/payments', 'payment_histories')->name('sellers.payment_histories');
|
||||
Route::get('/seller/payments/show/{id}', 'show')->name('sellers.payment_history');
|
||||
});
|
||||
|
||||
// Seller Withdraw Request
|
||||
Route::resource('/withdraw_requests', SellerWithdrawRequestController::class);
|
||||
Route::controller(SellerWithdrawRequestController::class)->group(function () {
|
||||
Route::get('/withdraw_requests_all', 'index')->name('withdraw_requests_all');
|
||||
Route::post('/withdraw_request/payment_modal', 'payment_modal')->name('withdraw_request.payment_modal');
|
||||
Route::post('/withdraw_request/message_modal', 'message_modal')->name('withdraw_request.message_modal');
|
||||
});
|
||||
|
||||
// Customer
|
||||
Route::resource('customers', CustomerController::class);
|
||||
Route::controller(CustomerController::class)->group(function () {
|
||||
Route::get('customers_ban/{customer}', 'ban')->name('customers.ban');
|
||||
Route::get('/customers/login/{id}', 'login')->name('customers.login');
|
||||
Route::get('/customers/destroy/{id}', 'destroy')->name('customers.destroy');
|
||||
Route::post('/bulk-customer-delete', 'bulk_customer_delete')->name('bulk-customer-delete');
|
||||
});
|
||||
|
||||
// Newsletter
|
||||
Route::controller(NewsletterController::class)->group(function () {
|
||||
Route::get('/newsletter', 'index')->name('newsletters.index');
|
||||
Route::post('/newsletter/send', 'send')->name('newsletters.send');
|
||||
Route::post('/newsletter/test/smtp', 'testEmail')->name('test.smtp');
|
||||
});
|
||||
|
||||
Route::resource('profile', ProfileController::class);
|
||||
|
||||
// Business Settings
|
||||
Route::controller(BusinessSettingsController::class)->group(function () {
|
||||
Route::post('/business-settings/update', 'update')->name('business_settings.update');
|
||||
Route::post('/business-settings/update/activation', 'updateActivationSettings')->name('business_settings.update.activation');
|
||||
Route::get('/general-setting', 'general_setting')->name('general_setting.index');
|
||||
Route::get('/activation', 'activation')->name('activation.index');
|
||||
Route::get('/payment-method', 'payment_method')->name('payment_method.index');
|
||||
Route::get('/file_system', 'file_system')->name('file_system.index');
|
||||
Route::get('/social-login', 'social_login')->name('social_login.index');
|
||||
Route::get('/smtp-settings', 'smtp_settings')->name('smtp_settings.index');
|
||||
Route::get('/google-analytics', 'google_analytics')->name('google_analytics.index');
|
||||
Route::get('/google-recaptcha', 'google_recaptcha')->name('google_recaptcha.index');
|
||||
Route::get('/google-map', 'google_map')->name('google-map.index');
|
||||
Route::get('/google-firebase', 'google_firebase')->name('google-firebase.index');
|
||||
|
||||
//Facebook Settings
|
||||
Route::get('/facebook-chat', 'facebook_chat')->name('facebook_chat.index');
|
||||
Route::post('/facebook_chat', 'facebook_chat_update')->name('facebook_chat.update');
|
||||
Route::get('/facebook-comment', 'facebook_comment')->name('facebook-comment');
|
||||
Route::post('/facebook-comment', 'facebook_comment_update')->name('facebook-comment.update');
|
||||
Route::post('/facebook_pixel', 'facebook_pixel_update')->name('facebook_pixel.update');
|
||||
|
||||
Route::post('/env_key_update', 'env_key_update')->name('env_key_update.update');
|
||||
Route::post('/payment_method_update', 'payment_method_update')->name('payment_method.update');
|
||||
Route::post('/google_analytics', 'google_analytics_update')->name('google_analytics.update');
|
||||
Route::post('/google_recaptcha', 'google_recaptcha_update')->name('google_recaptcha.update');
|
||||
Route::post('/google-map', 'google_map_update')->name('google-map.update');
|
||||
Route::post('/google-firebase', 'google_firebase_update')->name('google-firebase.update');
|
||||
|
||||
Route::get('/verification/form', 'seller_verification_form')->name('seller_verification_form.index');
|
||||
Route::post('/verification/form', 'seller_verification_form_update')->name('seller_verification_form.update');
|
||||
Route::get('/vendor_commission', 'vendor_commission')->name('business_settings.vendor_commission');
|
||||
Route::post('/vendor_commission_update', 'vendor_commission_update')->name('business_settings.vendor_commission.update');
|
||||
|
||||
//Shipping Configuration
|
||||
Route::get('/shipping_configuration', 'shipping_configuration')->name('shipping_configuration.index');
|
||||
Route::post('/shipping_configuration/update', 'shipping_configuration_update')->name('shipping_configuration.update');
|
||||
|
||||
// Order Configuration
|
||||
Route::get('/order-configuration', 'order_configuration')->name('order_configuration.index');
|
||||
});
|
||||
|
||||
|
||||
//Currency
|
||||
Route::controller(CurrencyController::class)->group(function () {
|
||||
Route::get('/currency', 'currency')->name('currency.index');
|
||||
Route::post('/currency/update', 'updateCurrency')->name('currency.update');
|
||||
Route::post('/your-currency/update', 'updateYourCurrency')->name('your_currency.update');
|
||||
Route::get('/currency/create', 'create')->name('currency.create');
|
||||
Route::post('/currency/store', 'store')->name('currency.store');
|
||||
Route::post('/currency/currency_edit', 'edit')->name('currency.edit');
|
||||
Route::post('/currency/update_status', 'update_status')->name('currency.update_status');
|
||||
});
|
||||
|
||||
//Tax
|
||||
Route::resource('tax', TaxController::class);
|
||||
Route::controller(TaxController::class)->group(function () {
|
||||
Route::get('/tax/edit/{id}', 'edit')->name('tax.edit');
|
||||
Route::get('/tax/destroy/{id}', 'destroy')->name('tax.destroy');
|
||||
Route::post('tax-status', 'change_tax_status')->name('taxes.tax-status');
|
||||
});
|
||||
|
||||
// Language
|
||||
Route::resource('/languages', LanguageController::class);
|
||||
Route::controller(LanguageController::class)->group(function () {
|
||||
Route::post('/languages/{id}/update', 'update')->name('languages.update');
|
||||
Route::get('/languages/destroy/{id}', 'destroy')->name('languages.destroy');
|
||||
Route::post('/languages/update_rtl_status', 'update_rtl_status')->name('languages.update_rtl_status');
|
||||
Route::post('/languages/update-status', 'update_status')->name('languages.update-status');
|
||||
Route::post('/languages/key_value_store', 'key_value_store')->name('languages.key_value_store');
|
||||
|
||||
//App Trasnlation
|
||||
Route::post('/languages/app-translations/import', 'importEnglishFile')->name('app-translations.import');
|
||||
Route::get('/languages/app-translations/show/{id}', 'showAppTranlsationView')->name('app-translations.show');
|
||||
Route::post('/languages/app-translations/key_value_store', 'storeAppTranlsation')->name('app-translations.store');
|
||||
Route::get('/languages/app-translations/export/{id}', 'exportARBFile')->name('app-translations.export');
|
||||
});
|
||||
|
||||
|
||||
// website setting
|
||||
Route::group(['prefix' => 'website'], function() {
|
||||
Route::controller(WebsiteController::class)->group(function () {
|
||||
Route::get('/footer', 'footer')->name('website.footer');
|
||||
Route::get('/header', 'header')->name('website.header');
|
||||
Route::get('/appearance', 'appearance')->name('website.appearance');
|
||||
Route::get('/pages', 'pages')->name('website.pages');
|
||||
});
|
||||
|
||||
// Custom Page
|
||||
Route::resource('custom-pages', PageController::class);
|
||||
Route::controller(PageController::class)->group(function () {
|
||||
Route::get('/custom-pages/edit/{id}', 'edit')->name('custom-pages.edit');
|
||||
Route::get('/custom-pages/destroy/{id}', 'destroy')->name('custom-pages.destroy');
|
||||
});
|
||||
});
|
||||
|
||||
// Staff Roles
|
||||
Route::resource('roles', RoleController::class);
|
||||
Route::controller(RoleController::class)->group(function () {
|
||||
Route::get('/roles/edit/{id}', 'edit')->name('roles.edit');
|
||||
Route::get('/roles/destroy/{id}', 'destroy')->name('roles.destroy');
|
||||
|
||||
// Add Permissiom
|
||||
Route::post('/roles/add_permission', 'add_permission')->name('roles.permission');
|
||||
});
|
||||
|
||||
// Staff
|
||||
Route::resource('staffs', StaffController::class);
|
||||
Route::get('/staffs/destroy/{id}', [StaffController::class, 'destroy'])->name('staffs.destroy');
|
||||
|
||||
// Flash Deal
|
||||
Route::resource('flash_deals', FlashDealController::class);
|
||||
Route::controller(FlashDealController::class)->group(function () {
|
||||
Route::get('/flash_deals/edit/{id}', 'edit')->name('flash_deals.edit');
|
||||
Route::get('/flash_deals/destroy/{id}', 'destroy')->name('flash_deals.destroy');
|
||||
Route::post('/flash_deals/update_status', 'update_status')->name('flash_deals.update_status');
|
||||
Route::post('/flash_deals/update_featured', 'update_featured')->name('flash_deals.update_featured');
|
||||
Route::post('/flash_deals/product_discount', 'product_discount')->name('flash_deals.product_discount');
|
||||
Route::post('/flash_deals/product_discount_edit', 'product_discount_edit')->name('flash_deals.product_discount_edit');
|
||||
});
|
||||
|
||||
//Subscribers
|
||||
Route::controller(SubscriberController::class)->group(function () {
|
||||
Route::get('/subscribers', 'index')->name('subscribers.index');
|
||||
Route::get('/subscribers/destroy/{id}', 'destroy')->name('subscriber.destroy');
|
||||
});
|
||||
|
||||
// Order
|
||||
Route::resource('orders', OrderController::class);
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
// All Orders
|
||||
Route::get('/all_orders', 'all_orders')->name('all_orders.index');
|
||||
Route::get('/inhouse-orders', 'all_orders')->name('inhouse_orders.index');
|
||||
Route::get('/seller_orders', 'all_orders')->name('seller_orders.index');
|
||||
Route::get('orders_by_pickup_point', 'all_orders')->name('pick_up_point.index');
|
||||
|
||||
Route::get('/orders/{id}/show', 'show')->name('all_orders.show');
|
||||
Route::get('/inhouse-orders/{id}/show', 'show')->name('inhouse_orders.show');
|
||||
Route::get('/seller_orders/{id}/show', 'show')->name('seller_orders.show');
|
||||
Route::get('/orders_by_pickup_point/{id}/show', 'show')->name('pick_up_point.order_show');
|
||||
|
||||
Route::post('/bulk-order-status', 'bulk_order_status')->name('bulk-order-status');
|
||||
|
||||
Route::get('/orders/destroy/{id}', 'destroy')->name('orders.destroy');
|
||||
Route::post('/bulk-order-delete', 'bulk_order_delete')->name('bulk-order-delete');
|
||||
|
||||
Route::get('/orders/destroy/{id}', 'destroy')->name('orders.destroy');
|
||||
Route::post('/orders/details', 'order_details')->name('orders.details');
|
||||
Route::post('/orders/update_delivery_status', 'update_delivery_status')->name('orders.update_delivery_status');
|
||||
Route::post('/orders/update_payment_status', 'update_payment_status')->name('orders.update_payment_status');
|
||||
Route::post('/orders/update_tracking_code', 'update_tracking_code')->name('orders.update_tracking_code');
|
||||
|
||||
//Delivery Boy Assign
|
||||
Route::post('/orders/delivery-boy-assign', 'assign_delivery_boy')->name('orders.delivery-boy-assign');
|
||||
});
|
||||
|
||||
Route::post('/pay_to_seller', [CommissionController::class, 'pay_to_seller'])->name('commissions.pay_to_seller');
|
||||
|
||||
//Reports
|
||||
Route::controller(ReportController::class)->group(function () {
|
||||
Route::get('/in_house_sale_report', 'in_house_sale_report')->name('in_house_sale_report.index');
|
||||
Route::get('/seller_sale_report', 'seller_sale_report')->name('seller_sale_report.index');
|
||||
Route::get('/stock_report', 'stock_report')->name('stock_report.index');
|
||||
Route::get('/wish_report', 'wish_report')->name('wish_report.index');
|
||||
Route::get('/user_search_report', 'user_search_report')->name('user_search_report.index');
|
||||
Route::get('/commission-log', 'commission_history')->name('commission-log.index');
|
||||
Route::get('/wallet-history', 'wallet_transaction_history')->name('wallet-history.index');
|
||||
});
|
||||
|
||||
//Blog Section
|
||||
//Blog cateory
|
||||
Route::resource('blog-category', BlogCategoryController::class);
|
||||
Route::get('/blog-category/destroy/{id}', [BlogCategoryController::class, 'destroy'])->name('blog-category.destroy');
|
||||
|
||||
// Blog
|
||||
Route::resource('blog', BlogController::class);
|
||||
Route::controller(BlogController::class)->group(function () {
|
||||
Route::get('/blog/destroy/{id}', 'destroy')->name('blog.destroy');
|
||||
Route::post('/blog/change-status', 'change_status')->name('blog.change-status');
|
||||
});
|
||||
|
||||
//Coupons
|
||||
Route::resource('coupon', CouponController::class);
|
||||
Route::controller(CouponController::class)->group(function () {
|
||||
Route::get('/coupon/destroy/{id}', 'destroy')->name('coupon.destroy');
|
||||
|
||||
//Coupon Form
|
||||
Route::post('/coupon/get_form', 'get_coupon_form')->name('coupon.get_coupon_form');
|
||||
Route::post('/coupon/get_form_edit', 'get_coupon_form_edit')->name('coupon.get_coupon_form_edit');
|
||||
});
|
||||
|
||||
//Reviews
|
||||
Route::controller(ReviewController::class)->group(function () {
|
||||
Route::get('/reviews', 'index')->name('reviews.index');
|
||||
Route::post('/reviews/published', 'updatePublished')->name('reviews.published');
|
||||
});
|
||||
|
||||
//Support_Ticket
|
||||
Route::controller(SupportTicketController::class)->group(function () {
|
||||
Route::get('support_ticket/', 'admin_index')->name('support_ticket.admin_index');
|
||||
Route::get('support_ticket/{id}/show', 'admin_show')->name('support_ticket.admin_show');
|
||||
Route::post('support_ticket/reply', 'admin_store')->name('support_ticket.admin_store');
|
||||
});
|
||||
|
||||
//Pickup_Points
|
||||
Route::resource('pick_up_points', PickupPointController::class);
|
||||
Route::controller(PickupPointController::class)->group(function () {
|
||||
Route::get('/pick_up_points/edit/{id}', 'edit')->name('pick_up_points.edit');
|
||||
Route::get('/pick_up_points/destroy/{id}', 'destroy')->name('pick_up_points.destroy');
|
||||
});
|
||||
|
||||
//conversation of seller customer
|
||||
Route::controller(ConversationController::class)->group(function () {
|
||||
Route::get('conversations', 'admin_index')->name('conversations.admin_index');
|
||||
Route::get('conversations/{id}/show','admin_show')->name('conversations.admin_show');
|
||||
});
|
||||
|
||||
// product Queries show on Admin panel
|
||||
Route::controller(ProductQueryController::class)->group(function () {
|
||||
Route::get('/product-queries', 'index')->name('product_query.index');
|
||||
Route::get('/product-queries/{id}', 'show')->name('product_query.show');
|
||||
Route::put('/product-queries/{id}', 'reply')->name('product_query.reply');
|
||||
});
|
||||
|
||||
// Product Attribute
|
||||
Route::resource('attributes', AttributeController::class );
|
||||
Route::controller(AttributeController::class)->group(function () {
|
||||
Route::get('/attributes/edit/{id}', 'edit')->name('attributes.edit');
|
||||
Route::get('/attributes/destroy/{id}', 'destroy')->name('attributes.destroy');
|
||||
|
||||
//Attribute Value
|
||||
Route::post('/store-attribute-value', 'store_attribute_value')->name('store-attribute-value');
|
||||
Route::get('/edit-attribute-value/{id}', 'edit_attribute_value')->name('edit-attribute-value');
|
||||
Route::post('/update-attribute-value/{id}', 'update_attribute_value')->name('update-attribute-value');
|
||||
Route::get('/destroy-attribute-value/{id}', 'destroy_attribute_value')->name('destroy-attribute-value');
|
||||
|
||||
//Colors
|
||||
Route::get('/colors', 'colors')->name('colors');
|
||||
Route::post('/colors/store', 'store_color')->name('colors.store');
|
||||
Route::get('/colors/edit/{id}', 'edit_color')->name('colors.edit');
|
||||
Route::post('/colors/update/{id}', 'update_color')->name('colors.update');
|
||||
Route::get('/colors/destroy/{id}', 'destroy_color')->name('colors.destroy');
|
||||
});
|
||||
|
||||
// Addon
|
||||
Route::resource('addons', AddonController::class);
|
||||
Route::post('/addons/activation', [AddonController::class, 'activation'])->name('addons.activation');
|
||||
|
||||
//Customer Package
|
||||
Route::resource('customer_packages', CustomerPackageController::class);
|
||||
Route::controller(CustomerPackageController::class)->group(function () {
|
||||
Route::get('/customer_packages/edit/{id}', 'edit')->name('customer_packages.edit');
|
||||
Route::get('/customer_packages/destroy/{id}', 'destroy')->name('customer_packages.destroy');
|
||||
});
|
||||
|
||||
//Classified Products
|
||||
Route::controller(CustomerProductController::class)->group(function () {
|
||||
Route::get('/classified_products', 'customer_product_index')->name('classified_products');
|
||||
Route::post('/classified_products/published', 'updatePublished')->name('classified_products.published');
|
||||
Route::get('/classified_products/destroy/{id}', 'destroy_by_admin')->name('classified_products.destroy');
|
||||
});
|
||||
|
||||
// Countries
|
||||
Route::resource('countries', CountryController::class);
|
||||
Route::post('/countries/status', [CountryController::class, 'updateStatus'])->name('countries.status');
|
||||
|
||||
// States
|
||||
Route::resource('states', StateController::class);
|
||||
Route::post('/states/status', [StateController::class, 'updateStatus'])->name('states.status');
|
||||
|
||||
// Carriers
|
||||
Route::resource('carriers', CarrierController::class);
|
||||
Route::controller(CarrierController::class)->group(function () {
|
||||
Route::get('/carriers/destroy/{id}', 'destroy')->name('carriers.destroy');
|
||||
Route::post('/carriers/update_status', 'updateStatus')->name('carriers.update_status');
|
||||
});
|
||||
|
||||
|
||||
// Zones
|
||||
Route::resource('zones', ZoneController::class);
|
||||
Route::get('/zones/destroy/{id}', [ZoneController::class, 'destroy'])->name('zones.destroy');
|
||||
|
||||
Route::resource('cities', CityController::class);
|
||||
Route::controller(CityController::class)->group(function () {
|
||||
Route::get('/cities/edit/{id}', 'edit')->name('cities.edit');
|
||||
Route::get('/cities/destroy/{id}', 'destroy')->name('cities.destroy');
|
||||
Route::post('/cities/status', 'updateStatus')->name('cities.status');
|
||||
});
|
||||
|
||||
Route::view('/system/update', 'backend.system.update')->name('system_update');
|
||||
Route::view('/system/server-status', 'backend.system.server_status')->name('system_server');
|
||||
|
||||
// uploaded files
|
||||
Route::resource('/uploaded-files', AizUploadController::class);
|
||||
Route::controller(AizUploadController::class)->group(function () {
|
||||
Route::any('/uploaded-files/file-info', 'file_info')->name('uploaded-files.info');
|
||||
Route::get('/uploaded-files/destroy/{id}', 'destroy')->name('uploaded-files.destroy');
|
||||
Route::post('/bulk-uploaded-files-delete', 'bulk_uploaded_files_delete')->name('bulk-uploaded-files-delete');
|
||||
Route::get('/all-file', 'all_file');
|
||||
});
|
||||
|
||||
Route::get('/all-notification', [NotificationController::class, 'index'])->name('admin.all-notification');
|
||||
|
||||
Route::get('/clear-cache', [AdminController::class, 'clearCache'])->name('cache.clear');
|
||||
|
||||
Route::get('/admin-permissions', [RoleController::class, 'create_admin_permissions']);
|
||||
});
|
||||
69
routes/affiliate.php
Normal file
69
routes/affiliate.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Affiliate Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
//Admin
|
||||
|
||||
use App\Http\Controllers\AffiliateController;
|
||||
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::controller(AffiliateController::class)->group(function () {
|
||||
Route::get('/affiliate', 'index')->name('affiliate.index');
|
||||
Route::post('/affiliate/affiliate_option_store', 'affiliate_option_store')->name('affiliate.store');
|
||||
|
||||
Route::get('/affiliate/configs', 'configs')->name('affiliate.configs');
|
||||
Route::post('/affiliate/configs/store', 'config_store')->name('affiliate.configs.store');
|
||||
|
||||
Route::get('/affiliate/users', 'users')->name('affiliate.users');
|
||||
Route::get('/affiliate/verification/{id}', 'show_verification_request')->name('affiliate_users.show_verification_request');
|
||||
|
||||
Route::get('/affiliate/approve/{id}', 'approve_user')->name('affiliate_user.approve');
|
||||
Route::get('/affiliate/reject/{id}', 'reject_user')->name('affiliate_user.reject');
|
||||
|
||||
Route::post('/affiliate/approved', 'updateApproved')->name('affiliate_user.approved');
|
||||
|
||||
Route::post('/affiliate/payment_modal', 'payment_modal')->name('affiliate_user.payment_modal');
|
||||
Route::post('/affiliate/pay/store', 'payment_store')->name('affiliate_user.payment_store');
|
||||
|
||||
Route::get('/affiliate/payments/show/{id}', 'payment_history')->name('affiliate_user.payment_history');
|
||||
Route::get('/refferal/users', 'refferal_users')->name('refferals.users');
|
||||
|
||||
// Affiliate Withdraw Request
|
||||
Route::get('/affiliate/withdraw_requests', 'affiliate_withdraw_requests')->name('affiliate.withdraw_requests');
|
||||
Route::post('/affiliate/affiliate_withdraw_modal', 'affiliate_withdraw_modal')->name('affiliate_withdraw_modal');
|
||||
Route::post('/affiliate/withdraw_request/payment_store', 'withdraw_request_payment_store')->name('withdraw_request.payment_store');
|
||||
Route::get('/affiliate/withdraw_request/reject/{id}', 'reject_withdraw_request')->name('affiliate.withdraw_request.reject');
|
||||
|
||||
Route::get('/affiliate/logs', 'affiliate_logs_admin')->name('affiliate.logs.admin');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
//FrontEnd
|
||||
Route::controller(AffiliateController::class)->group(function () {
|
||||
Route::get('/affiliate', 'apply_for_affiliate')->name('affiliate.apply');
|
||||
Route::post('/affiliate/store', 'store_affiliate_user')->name('affiliate.store_affiliate_user');
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['auth']], function(){
|
||||
Route::controller(AffiliateController::class)->group(function () {
|
||||
Route::get('/affiliate/user', 'user_index')->name('affiliate.user.index');
|
||||
Route::get('/affiliate/user/payment_history', 'user_payment_history')->name('affiliate.user.payment_history');
|
||||
Route::get('/affiliate/user/withdraw_request_history', 'user_withdraw_request_history')->name('affiliate.user.withdraw_request_history');
|
||||
|
||||
Route::get('/affiliate/payment/settings', 'payment_settings')->name('affiliate.payment_settings');
|
||||
Route::post('/affiliate/payment/settings/store', 'payment_settings_store')->name('affiliate.payment_settings_store');
|
||||
|
||||
// Affiliate Withdraw Request
|
||||
Route::post('/affiliate/withdraw_request/store', 'withdraw_request_store')->name('affiliate.withdraw_request.store');
|
||||
});
|
||||
});
|
||||
53
routes/african_pg.php
Normal file
53
routes/african_pg.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AfricanPaymentGatewayController;
|
||||
use App\Http\Controllers\Payment\FlutterwaveController;
|
||||
use App\Http\Controllers\Payment\MpesaController;
|
||||
use App\Http\Controllers\Payment\PayDunyaController;
|
||||
use App\Http\Controllers\Payment\PayfastController;
|
||||
|
||||
Route::controller(AfricanPaymentGatewayController::class)->group(function () {
|
||||
Route::get('/african/configuration', 'configuration')->name('african.configuration');
|
||||
Route::get('/african/credentials_index', 'credentials_index')->name('african_credentials.index');
|
||||
});
|
||||
//Mpesa
|
||||
|
||||
Route::prefix('lnmo')->group(function () {
|
||||
Route::controller(MpesaController::class)->group(function () {
|
||||
Route::post('mpesa_pay', 'payment_complete')->name('mpesa.pay');
|
||||
Route::any('pay', 'mpesa_pay');
|
||||
Route::any('validate', 'validation');
|
||||
Route::any('confirm', 'confirmation');
|
||||
Route::any('results', 'results');
|
||||
Route::any('register', 'register');
|
||||
Route::any('timeout', 'timeout');
|
||||
Route::any('reconcile', 'reconcile');
|
||||
});
|
||||
});
|
||||
|
||||
//Mpesa End
|
||||
|
||||
// RaveController start
|
||||
Route::get('/rave/callback', [FlutterwaveController::class, 'callback'])->name('flutterwave.callback');
|
||||
|
||||
// RaveController end
|
||||
|
||||
//Payfast routes <starts>
|
||||
Route::controller(PayfastController::class)->group(function () {
|
||||
Route::any('/payfast/checkout/notify', 'checkout_notify')->name('payfast.checkout.notify');
|
||||
Route::any('/payfast/checkout/return', 'checkout_return')->name('payfast.checkout.return');
|
||||
Route::any('/payfast/checkout/cancel', 'checkout_cancel')->name('payfast.checkout.cancel');
|
||||
|
||||
Route::any('/payfast/wallet/notify', 'wallet_notify')->name('payfast.wallet.notify');
|
||||
Route::any('/payfast/wallet/return', 'wallet_return')->name('payfast.wallet.return');
|
||||
Route::any('/payfast/wallet/cancel', 'wallet_cancel')->name('payfast.wallet.cancel');
|
||||
|
||||
Route::any('/payfast/seller_package_payment/notify', 'seller_package_notify')->name('payfast.seller_package_payment.notify');
|
||||
Route::any('/payfast/seller_package_payment/return', 'seller_package_payment_return')->name('payfast.seller_package_payment.return');
|
||||
Route::any('/payfast/seller_package_payment/cancel', 'seller_package_payment_cancel')->name('payfast.seller_package_payment.cancel');
|
||||
|
||||
Route::any('/payfast/customer_package_payment/notify', 'customer_package_notify')->name('payfast.customer_package_payment.notify');
|
||||
Route::any('/payfast/customer_package_payment/return', 'customer_package_return')->name('payfast.customer_package_payment.return');
|
||||
Route::any('/payfast/customer_package_payment/cancel', 'customer_package_cancel')->name('payfast.customer_package_payment.cancel');
|
||||
});
|
||||
//Payfast routes <ends>
|
||||
360
routes/api.php
Normal file
360
routes/api.php
Normal file
@@ -0,0 +1,360 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Api\V2;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group(['prefix' => 'v2/auth', 'middleware' => ['app_language']], function () {
|
||||
Route::post('login', 'App\Http\Controllers\Api\V2\AuthController@login');
|
||||
Route::post('signup', 'App\Http\Controllers\Api\V2\AuthController@signup');
|
||||
Route::post('social-login', 'App\Http\Controllers\Api\V2\AuthController@socialLogin');
|
||||
Route::post('password/forget_request', 'App\Http\Controllers\Api\V2\PasswordResetController@forgetRequest');
|
||||
Route::post('password/confirm_reset', 'App\Http\Controllers\Api\V2\PasswordResetController@confirmReset');
|
||||
Route::post('password/resend_code', 'App\Http\Controllers\Api\V2\PasswordResetController@resendCode');
|
||||
Route::middleware('auth:sanctum')->group(function () {
|
||||
Route::get('logout', 'App\Http\Controllers\Api\V2\AuthController@logout');
|
||||
Route::get('account-deletion', 'App\Http\Controllers\Api\V2\AuthController@account_deletion');
|
||||
Route::get('user', 'App\Http\Controllers\Api\V2\AuthController@user');
|
||||
Route::get('resend_code', 'App\Http\Controllers\Api\V2\AuthController@resendCode');
|
||||
Route::post('confirm_code', 'App\Http\Controllers\Api\V2\AuthController@confirmCode');
|
||||
});
|
||||
|
||||
Route::post('info', 'App\Http\Controllers\Api\V2\AuthController@getUserInfoByAccessToken');
|
||||
});
|
||||
|
||||
|
||||
Route::group(['prefix' => 'v2', 'middleware' => ['app_language']], function () {
|
||||
// auction products routes
|
||||
Route::get('auction/products', [AuctionProductController::class, 'index']);
|
||||
Route::get('auction/products/{id}', [AuctionProductController::class, 'details_auction_product']);
|
||||
Route::post('auction/place-bid', [AuctionProductBidController::class, 'store'])->middleware('auth:sanctum');
|
||||
|
||||
// varient price
|
||||
// Route::get('varient-price', [ProductController::class, 'getPrice']);
|
||||
|
||||
Route::prefix('delivery-boy')->group(function () {
|
||||
Route::get('dashboard-summary/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@dashboard_summary')->middleware('auth:sanctum');
|
||||
Route::get('deliveries/completed/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@completed_delivery')->middleware('auth:sanctum');
|
||||
Route::get('deliveries/cancelled/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@cancelled_delivery')->middleware('auth:sanctum');
|
||||
Route::get('deliveries/on_the_way/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@on_the_way_delivery')->middleware('auth:sanctum');
|
||||
Route::get('deliveries/picked_up/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@picked_up_delivery')->middleware('auth:sanctum');
|
||||
Route::get('deliveries/assigned/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@assigned_delivery')->middleware('auth:sanctum');
|
||||
Route::get('collection-summary/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@collection_summary')->middleware('auth:sanctum');
|
||||
Route::get('earning-summary/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@earning_summary')->middleware('auth:sanctum');
|
||||
Route::get('collection/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@collection')->middleware('auth:sanctum');
|
||||
Route::get('earning/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@earning')->middleware('auth:sanctum');
|
||||
Route::get('cancel-request/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@cancel_request')->middleware('auth:sanctum');
|
||||
Route::post('change-delivery-status', 'App\Http\Controllers\Api\V2\DeliveryBoyController@change_delivery_status')->middleware('auth:sanctum');
|
||||
//Delivery Boy Order
|
||||
Route::get('purchase-history-details/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@details')->middleware('auth:sanctum');
|
||||
Route::get('purchase-history-items/{id}', 'App\Http\Controllers\Api\V2\DeliveryBoyController@items')->middleware('auth:sanctum');
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['app_user_unbanned']], function () {
|
||||
// customer downloadable product list
|
||||
Route::get('/digital/purchased-list', 'App\Http\Controllers\Api\V2\PurchaseHistoryController@digital_purchased_list')->middleware('auth:sanctum');
|
||||
Route::get('/purchased-products/download/{id}', 'App\Http\Controllers\Api\V2\DigitalProductController@download')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('wallet/history', 'App\Http\Controllers\Api\V2\WalletController@walletRechargeHistory')->middleware('auth:sanctum');
|
||||
Route::get('chat/conversations', 'App\Http\Controllers\Api\V2\ChatController@conversations')->middleware('auth:sanctum');
|
||||
Route::get('chat/messages/{id}', 'App\Http\Controllers\Api\V2\ChatController@messages')->middleware('auth:sanctum');
|
||||
Route::post('chat/insert-message', 'App\Http\Controllers\Api\V2\ChatController@insert_message')->middleware('auth:sanctum');
|
||||
Route::get('chat/get-new-messages/{conversation_id}/{last_message_id}', 'App\Http\Controllers\Api\V2\ChatController@get_new_messages')->middleware('auth:sanctum');
|
||||
Route::post('chat/create-conversation', 'App\Http\Controllers\Api\V2\ChatController@create_conversation')->middleware('auth:sanctum');
|
||||
Route::get('purchase-history', 'App\Http\Controllers\Api\V2\PurchaseHistoryController@index')->middleware('auth:sanctum');
|
||||
Route::get('purchase-history-details/{id}', 'App\Http\Controllers\Api\V2\PurchaseHistoryController@details')->middleware('auth:sanctum');
|
||||
Route::get('purchase-history-items/{id}', 'App\Http\Controllers\Api\V2\PurchaseHistoryController@items')->middleware('auth:sanctum');
|
||||
|
||||
Route::prefix('classified')->group(function () {
|
||||
Route::get('/own-products', 'App\Http\Controllers\Api\V2\CustomerProductController@ownProducts')->middleware('auth:sanctum');
|
||||
Route::delete('/delete/{id}', 'App\Http\Controllers\Api\V2\CustomerProductController@delete')->middleware('auth:sanctum');
|
||||
Route::post('/change-status/{id}', 'App\Http\Controllers\Api\V2\CustomerProductController@changeStatus')->middleware('auth:sanctum');
|
||||
});
|
||||
|
||||
Route::get('customer/info', 'App\Http\Controllers\Api\V2\CustomerController@show')->middleware('auth:sanctum');
|
||||
|
||||
|
||||
Route::get('cart-summary', 'App\Http\Controllers\Api\V2\CartController@summary')->middleware('auth:sanctum');
|
||||
Route::get('cart-count', 'App\Http\Controllers\Api\V2\CartController@count')->middleware('auth:sanctum');
|
||||
Route::post('carts/process', 'App\Http\Controllers\Api\V2\CartController@process')->middleware('auth:sanctum');
|
||||
Route::post('carts/add', 'App\Http\Controllers\Api\V2\CartController@add')->middleware('auth:sanctum');
|
||||
Route::post('carts/change-quantity', 'App\Http\Controllers\Api\V2\CartController@changeQuantity')->middleware('auth:sanctum');
|
||||
Route::apiResource('carts', 'App\Http\Controllers\Api\V2\CartController')->only('destroy')->middleware('auth:sanctum');
|
||||
Route::post('carts', 'App\Http\Controllers\Api\V2\CartController@getList')->middleware('auth:sanctum');
|
||||
Route::get('delivery-info', 'App\Http\Controllers\Api\V2\ShippingController@getDeliveryInfo')->middleware('auth:sanctum');
|
||||
|
||||
|
||||
Route::post('coupon-apply', 'App\Http\Controllers\Api\V2\CheckoutController@apply_coupon_code')->middleware('auth:sanctum');
|
||||
Route::post('coupon-remove', 'App\Http\Controllers\Api\V2\CheckoutController@remove_coupon_code')->middleware('auth:sanctum');
|
||||
|
||||
Route::post('update-address-in-cart', 'App\Http\Controllers\Api\V2\AddressController@updateAddressInCart')->middleware('auth:sanctum');
|
||||
|
||||
Route::post('update-shipping-type-in-cart', 'App\Http\Controllers\Api\V2\AddressController@updateShippingTypeInCart')->middleware('auth:sanctum');
|
||||
Route::get('get-home-delivery-address', 'App\Http\Controllers\Api\V2\AddressController@getShippingInCart')->middleware('auth:sanctum');
|
||||
Route::post('shipping_cost', 'App\Http\Controllers\Api\V2\ShippingController@shipping_cost')->middleware('auth:sanctum');
|
||||
Route::post('carriers', 'App\Http\Controllers\Api\V2\CarrierController@index')->middleware('auth:sanctum');
|
||||
|
||||
|
||||
//Follow
|
||||
Route::controller(FollowSellerController::class)->group(function () {
|
||||
Route::get('/followed-seller', 'index')->middleware('auth:sanctum');
|
||||
Route::get('/followed-seller/store/{id}', [FollowSellerController::class, 'store'])->middleware('auth:sanctum');
|
||||
Route::get('/followed-seller/remove/{shopId}', [FollowSellerController::class, 'remove'])->middleware('auth:sanctum');
|
||||
Route::get('/followed-seller/check/{shopId}', [FollowSellerController::class, 'checkFollow'])->middleware('auth:sanctum');
|
||||
});
|
||||
|
||||
|
||||
Route::post('reviews/submit', 'App\Http\Controllers\Api\V2\ReviewController@submit')->name('api.reviews.submit')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('shop/user/{id}', 'App\Http\Controllers\Api\V2\ShopController@shopOfUser')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('wishlists-check-product', 'App\Http\Controllers\Api\V2\WishlistController@isProductInWishlist')->middleware('auth:sanctum');
|
||||
Route::get('wishlists-add-product', 'App\Http\Controllers\Api\V2\WishlistController@add')->middleware('auth:sanctum');
|
||||
Route::get('wishlists-remove-product', 'App\Http\Controllers\Api\V2\WishlistController@remove')->middleware('auth:sanctum');
|
||||
Route::get('wishlists', 'App\Http\Controllers\Api\V2\WishlistController@index')->middleware('auth:sanctum');
|
||||
Route::apiResource('wishlists', 'App\Http\Controllers\Api\V2\WishlistController')->except(['index', 'update', 'show']);
|
||||
|
||||
Route::get('user/shipping/address', 'App\Http\Controllers\Api\V2\AddressController@addresses')->middleware('auth:sanctum');
|
||||
Route::post('user/shipping/create', 'App\Http\Controllers\Api\V2\AddressController@createShippingAddress')->middleware('auth:sanctum');
|
||||
Route::post('user/shipping/update', 'App\Http\Controllers\Api\V2\AddressController@updateShippingAddress')->middleware('auth:sanctum');
|
||||
Route::post('user/shipping/update-location', 'App\Http\Controllers\Api\V2\AddressController@updateShippingAddressLocation')->middleware('auth:sanctum');
|
||||
Route::post('user/shipping/make_default', 'App\Http\Controllers\Api\V2\AddressController@makeShippingAddressDefault')->middleware('auth:sanctum');
|
||||
Route::get('user/shipping/delete/{address_id}', 'App\Http\Controllers\Api\V2\AddressController@deleteShippingAddress')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('clubpoint/get-list', 'App\Http\Controllers\Api\V2\ClubpointController@get_list')->middleware('auth:sanctum');
|
||||
Route::post('clubpoint/convert-into-wallet', 'App\Http\Controllers\Api\V2\ClubpointController@convert_into_wallet')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('refund-request/get-list', 'App\Http\Controllers\Api\V2\RefundRequestController@get_list')->middleware('auth:sanctum');
|
||||
Route::post('refund-request/send', 'App\Http\Controllers\Api\V2\RefundRequestController@send')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('bkash/begin', 'App\Http\Controllers\Api\V2\BkashController@begin')->middleware('auth:sanctum');
|
||||
Route::get('nagad/begin', 'App\Http\Controllers\Api\V2\NagadController@begin')->middleware('auth:sanctum');
|
||||
Route::post('payments/pay/wallet', 'App\Http\Controllers\Api\V2\WalletController@processPayment')->middleware('auth:sanctum');
|
||||
Route::post('payments/pay/cod', 'App\Http\Controllers\Api\V2\PaymentController@cashOnDelivery')->middleware('auth:sanctum');
|
||||
Route::post('payments/pay/manual', 'App\Http\Controllers\Api\V2\PaymentController@manualPayment')->middleware('auth:sanctum');
|
||||
|
||||
Route::post('order/store', 'App\Http\Controllers\Api\V2\OrderController@store')->middleware('auth:sanctum');
|
||||
Route::get('order/cancel/{id}', 'App\Http\Controllers\Api\V2\OrderController@order_cancel')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('profile/counters', 'App\Http\Controllers\Api\V2\ProfileController@counters')->middleware('auth:sanctum');
|
||||
|
||||
Route::post('profile/update', 'App\Http\Controllers\Api\V2\ProfileController@update')->middleware('auth:sanctum');
|
||||
|
||||
Route::post('profile/update-device-token', 'App\Http\Controllers\Api\V2\ProfileController@update_device_token')->middleware('auth:sanctum');
|
||||
Route::post('profile/update-image', 'App\Http\Controllers\Api\V2\ProfileController@updateImage')->middleware('auth:sanctum');
|
||||
Route::post('profile/image-upload', 'App\Http\Controllers\Api\V2\ProfileController@imageUpload')->middleware('auth:sanctum');
|
||||
Route::post('profile/check-phone-and-email', 'App\Http\Controllers\Api\V2\ProfileController@checkIfPhoneAndEmailAvailable')->middleware('auth:sanctum');
|
||||
|
||||
Route::post('file/image-upload', 'App\Http\Controllers\Api\V2\FileController@imageUpload')->middleware('auth:sanctum');
|
||||
Route::get('file-all', 'App\Http\Controllers\Api\V2\FileController@index')->middleware('auth:sanctum');
|
||||
Route::post('file/upload', 'App\Http\Controllers\Api\V2\AizUploadController@upload')->middleware('auth:sanctum');
|
||||
|
||||
Route::get('wallet/balance', 'App\Http\Controllers\Api\V2\WalletController@balance')->middleware('auth:sanctum');
|
||||
Route::post('wallet/offline-recharge', 'App\Http\Controllers\Api\V2\WalletController@offline_recharge')->middleware('auth:sanctum');
|
||||
|
||||
|
||||
Route::get('payment-types', 'App\Http\Controllers\Api\V2\PaymentTypesController@getList')->middleware('auth:sanctum');
|
||||
|
||||
});
|
||||
|
||||
//end user bann
|
||||
|
||||
Route::controller(OnlinePaymentController::class)->group(function () {
|
||||
Route::get('online-pay/init', 'init')->middleware('auth:sanctum');;
|
||||
Route::get('online-pay/success', 'paymentSuccess');
|
||||
Route::get('online-pay/done', 'paymentDone');
|
||||
Route::get('online-pay/failed', 'paymentFailed');
|
||||
});
|
||||
|
||||
|
||||
Route::get('get-search-suggestions', 'App\Http\Controllers\Api\V2\SearchSuggestionController@getList');
|
||||
Route::get('languages', 'App\Http\Controllers\Api\V2\LanguageController@getList');
|
||||
|
||||
Route::get('classified/all', 'App\Http\Controllers\Api\V2\CustomerProductController@all');
|
||||
Route::get('classified/related-products/{id}', 'App\Http\Controllers\Api\V2\CustomerProductController@relatedProducts');
|
||||
Route::get('classified/product-details/{id}', 'App\Http\Controllers\Api\V2\CustomerProductController@productDetails');
|
||||
|
||||
|
||||
|
||||
|
||||
Route::apiResource('banners', 'App\Http\Controllers\Api\V2\BannerController')->only('index');
|
||||
|
||||
Route::get('brands/top', 'App\Http\Controllers\Api\V2\BrandController@top');
|
||||
Route::apiResource('brands', 'App\Http\Controllers\Api\V2\BrandController')->only('index');
|
||||
|
||||
Route::apiResource('business-settings', 'App\Http\Controllers\Api\V2\BusinessSettingController')->only('index');
|
||||
|
||||
Route::get('categories/featured', 'App\Http\Controllers\Api\V2\CategoryController@featured');
|
||||
Route::get('categories/home', 'App\Http\Controllers\Api\V2\CategoryController@home');
|
||||
Route::get('categories/top', 'App\Http\Controllers\Api\V2\CategoryController@top');
|
||||
Route::apiResource('categories', 'App\Http\Controllers\Api\V2\CategoryController')->only('index');
|
||||
Route::get('sub-categories/{id}', 'App\Http\Controllers\Api\V2\SubCategoryController@index')->name('subCategories.index');
|
||||
|
||||
Route::apiResource('colors', 'App\Http\Controllers\Api\V2\ColorController')->only('index');
|
||||
|
||||
Route::apiResource('currencies', 'App\Http\Controllers\Api\V2\CurrencyController')->only('index');
|
||||
|
||||
Route::apiResource('customers', 'App\Http\Controllers\Api\V2\CustomerController')->only('show');
|
||||
|
||||
Route::apiResource('general-settings', 'App\Http\Controllers\Api\V2\GeneralSettingController')->only('index');
|
||||
|
||||
Route::apiResource('home-categories', 'App\Http\Controllers\Api\V2\HomeCategoryController')->only('index');
|
||||
|
||||
|
||||
|
||||
Route::get('filter/categories', 'App\Http\Controllers\Api\V2\FilterController@categories');
|
||||
Route::get('filter/brands', 'App\Http\Controllers\Api\V2\FilterController@brands');
|
||||
|
||||
// Route::get('products/admin', 'App\Http\Controllers\Api\V2\ProductController@admin');
|
||||
Route::get('products/seller/{id}', 'App\Http\Controllers\Api\V2\ProductController@seller');
|
||||
Route::get('products/category/{id}', 'App\Http\Controllers\Api\V2\ProductController@category')->name('api.products.category');
|
||||
Route::get('products/sub-category/{id}', 'App\Http\Controllers\Api\V2\ProductController@subCategory')->name('products.subCategory');
|
||||
Route::get('products/sub-sub-category/{id}', 'App\Http\Controllers\Api\V2\ProductController@subSubCategory')->name('products.subSubCategory');
|
||||
Route::get('products/brand/{id}', 'App\Http\Controllers\Api\V2\ProductController@brand')->name('api.products.brand');
|
||||
Route::get('products/todays-deal', 'App\Http\Controllers\Api\V2\ProductController@todaysDeal');
|
||||
Route::get('products/featured', 'App\Http\Controllers\Api\V2\ProductController@featured');
|
||||
Route::get('products/best-seller', 'App\Http\Controllers\Api\V2\ProductController@bestSeller');
|
||||
Route::get('products/top-from-seller/{id}', 'App\Http\Controllers\Api\V2\ProductController@topFromSeller');
|
||||
Route::get('products/related/{id}', 'App\Http\Controllers\Api\V2\ProductController@related')->name('products.related');
|
||||
|
||||
Route::get('products/featured-from-seller/{id}', 'App\Http\Controllers\Api\V2\ProductController@newFromSeller')->name('products.featuredromSeller');
|
||||
Route::get('products/search', 'App\Http\Controllers\Api\V2\ProductController@search');
|
||||
Route::post('products/variant/price', 'App\Http\Controllers\Api\V2\ProductController@getPrice');
|
||||
// Route::get('products/home', 'App\Http\Controllers\Api\V2\ProductController@home');
|
||||
Route::get('products/digital', 'App\Http\Controllers\Api\V2\ProductController@digital')->name('products.digital');
|
||||
Route::apiResource('products', 'App\Http\Controllers\Api\V2\ProductController')->except(['store', 'update', 'destroy']);
|
||||
|
||||
|
||||
//Use this route outside of auth because initialy we created outside of auth we do not need auth initialy
|
||||
//We can't change it now because we didn't send token in header from mobile app.
|
||||
//We need the upload update Flutter app then we will write it in auth middleware.
|
||||
Route::controller(CustomerPackageController::class)->group(function () {
|
||||
Route::get("customer-packages", "customer_packages_list");
|
||||
});
|
||||
|
||||
|
||||
Route::get('reviews/product/{id}', 'App\Http\Controllers\Api\V2\ReviewController@index')->name('api.reviews.index');
|
||||
|
||||
|
||||
Route::get('shops/details/{id}', 'App\Http\Controllers\Api\V2\ShopController@info')->name('shops.info');
|
||||
Route::get('shops/products/all/{id}', 'App\Http\Controllers\Api\V2\ShopController@allProducts')->name('shops.allProducts');
|
||||
Route::get('shops/products/top/{id}', 'App\Http\Controllers\Api\V2\ShopController@topSellingProducts')->name('shops.topSellingProducts');
|
||||
Route::get('shops/products/featured/{id}', 'App\Http\Controllers\Api\V2\ShopController@featuredProducts')->name('shops.featuredProducts');
|
||||
Route::get('shops/products/new/{id}', 'App\Http\Controllers\Api\V2\ShopController@newProducts')->name('shops.newProducts');
|
||||
Route::get('shops/brands/{id}', 'App\Http\Controllers\Api\V2\ShopController@brands')->name('shops.brands');
|
||||
Route::apiResource('shops', 'App\Http\Controllers\Api\V2\ShopController')->only('index');
|
||||
|
||||
Route::get('sliders', 'App\Http\Controllers\Api\V2\SliderController@sliders');
|
||||
Route::get('banners-one', 'App\Http\Controllers\Api\V2\SliderController@bannerOne');
|
||||
Route::get('banners-two', 'App\Http\Controllers\Api\V2\SliderController@bannerTwo');
|
||||
Route::get('banners-three', 'App\Http\Controllers\Api\V2\SliderController@bannerThree');
|
||||
|
||||
|
||||
|
||||
Route::get('policies/seller', 'App\Http\Controllers\Api\V2\PolicyController@sellerPolicy')->name('policies.seller');
|
||||
Route::get('policies/support', 'App\Http\Controllers\Api\V2\PolicyController@supportPolicy')->name('policies.support');
|
||||
Route::get('policies/return', 'App\Http\Controllers\Api\V2\PolicyController@returnPolicy')->name('policies.return');
|
||||
|
||||
// Route::get('user/info/{id}', 'App\Http\Controllers\Api\V2\UserController@info')->middleware('auth:sanctum');
|
||||
// Route::post('user/info/update', 'App\Http\Controllers\Api\V2\UserController@updateName')->middleware('auth:sanctum');
|
||||
|
||||
Route::post('get-user-by-access_token', 'App\Http\Controllers\Api\V2\UserController@getUserInfoByAccessToken');
|
||||
|
||||
Route::get('cities', 'App\Http\Controllers\Api\V2\AddressController@getCities');
|
||||
Route::get('states', 'App\Http\Controllers\Api\V2\AddressController@getStates');
|
||||
Route::get('countries', 'App\Http\Controllers\Api\V2\AddressController@getCountries');
|
||||
|
||||
Route::get('cities-by-state/{state_id}', 'App\Http\Controllers\Api\V2\AddressController@getCitiesByState');
|
||||
Route::get('states-by-country/{country_id}', 'App\Http\Controllers\Api\V2\AddressController@getStatesByCountry');
|
||||
|
||||
|
||||
// Route::post('coupon/apply', 'App\Http\Controllers\Api\V2\CouponController@apply')->middleware('auth:sanctum');
|
||||
|
||||
|
||||
Route::any('stripe', 'App\Http\Controllers\Api\V2\StripeController@stripe');
|
||||
Route::any('stripe/create-checkout-session', 'App\Http\Controllers\Api\V2\StripeController@create_checkout_session')->name('api.stripe.get_token');
|
||||
Route::any('stripe/payment/callback', 'App\Http\Controllers\Api\V2\StripeController@callback')->name('api.stripe.callback');
|
||||
Route::get('stripe/success', 'App\Http\Controllers\Api\V2\StripeController@payment_success');
|
||||
Route::any('stripe/cancel', 'App\Http\Controllers\Api\V2\StripeController@cancel')->name('api.stripe.cancel');
|
||||
|
||||
Route::any('paypal/payment/url', 'App\Http\Controllers\Api\V2\PaypalController@getUrl')->name('api.paypal.url');
|
||||
Route::any('paypal/payment/done', 'App\Http\Controllers\Api\V2\PaypalController@getDone')->name('api.paypal.done');
|
||||
Route::any('paypal/payment/cancel', 'App\Http\Controllers\Api\V2\PaypalController@getCancel')->name('api.paypal.cancel');
|
||||
|
||||
Route::any('khalti/payment/pay', 'App\Http\Controllers\Api\V2\KhaltiController@pay')->name('api.khalti.url');
|
||||
Route::any('khalti/payment/success', 'App\Http\Controllers\Api\V2\KhaltiController@paymentDone')->name('api.khalti.success');
|
||||
Route::any('khalti/payment/cancel', 'App\Http\Controllers\Api\V2\KhaltiController@getCancel')->name('api.khalti.cancel');
|
||||
|
||||
Route::any('razorpay/pay-with-razorpay', 'App\Http\Controllers\Api\V2\RazorpayController@payWithRazorpay')->name('api.razorpay.payment');
|
||||
Route::any('razorpay/payment', 'App\Http\Controllers\Api\V2\RazorpayController@payment')->name('api.razorpay');/* .payment */
|
||||
Route::post('razorpay/success', 'App\Http\Controllers\Api\V2\RazorpayController@payment_success')->name('api.razorpay.success');
|
||||
|
||||
Route::any('paystack/init', 'App\Http\Controllers\Api\V2\PaystackController@init')->name('api.paystack.init');
|
||||
Route::post('paystack/success', 'App\Http\Controllers\Api\V2\PaystackController@payment_success')->name('api.paystack.success');
|
||||
|
||||
Route::any('iyzico/init', 'App\Http\Controllers\Api\V2\IyzicoController@init')->name('api.iyzico.init');
|
||||
Route::any('iyzico/callback', 'App\Http\Controllers\Api\V2\IyzicoController@callback')->name('api.iyzico.callback');
|
||||
Route::post('iyzico/success', 'App\Http\Controllers\Api\V2\IyzicoController@payment_success')->name('api.iyzico.success');
|
||||
|
||||
|
||||
Route::get('bkash/api/webpage/{token}/{amount}', 'App\Http\Controllers\Api\V2\BkashController@webpage')->name('api.bkash.webpage');
|
||||
Route::any('bkash/api/checkout/{token}/{amount}', 'App\Http\Controllers\Api\V2\BkashController@checkout')->name('api.bkash.checkout');
|
||||
Route::any('bkash/api/callback', 'App\Http\Controllers\Api\V2\BkashController@callback')->name('api.bkash.callback');
|
||||
|
||||
Route::any('bkash/api/execute/{token}', 'App\Http\Controllers\Api\V2\BkashController@execute')->name('api.bkash.execute');
|
||||
Route::any('bkash/api/fail', 'App\Http\Controllers\Api\V2\BkashController@fail')->name('api.bkash.fail');
|
||||
Route::post('bkash/api/success', 'App\Http\Controllers\Api\V2\BkashController@payment_success')->name('api.bkash.success');
|
||||
Route::post('bkash/api/process', 'App\Http\Controllers\Api\V2\BkashController@process')->name('api.bkash.process');
|
||||
|
||||
|
||||
Route::any('nagad/verify/{payment_type}', 'App\Http\Controllers\Api\V2\NagadController@verify')->name('app.nagad.callback_url');
|
||||
Route::post('nagad/process', 'App\Http\Controllers\Api\V2\NagadController@process');
|
||||
|
||||
Route::get('sslcommerz/begin', 'App\Http\Controllers\Api\V2\SslCommerzController@begin');
|
||||
Route::any('sslcommerz/success', 'App\Http\Controllers\Api\V2\SslCommerzController@payment_success');
|
||||
Route::any('sslcommerz/fail', 'App\Http\Controllers\Api\V2\SslCommerzController@payment_fail');
|
||||
Route::any('sslcommerz/cancel', 'App\Http\Controllers\Api\V2\SslCommerzController@payment_cancel');
|
||||
|
||||
Route::any('flutterwave/payment/url', 'App\Http\Controllers\Api\V2\FlutterwaveController@getUrl')->name('api.flutterwave.url');
|
||||
Route::any('flutterwave/payment/callback', 'App\Http\Controllers\Api\V2\FlutterwaveController@callback')->name('api.flutterwave.callback');
|
||||
|
||||
Route::any('paytm/payment/pay', 'App\Http\Controllers\Api\V2\PaytmController@pay')->name('api.paytm.pay');
|
||||
Route::any('paytm/payment/callback', 'App\Http\Controllers\Api\V2\PaytmController@callback')->name('api.paytm.callback');
|
||||
|
||||
Route::controller(InstamojoController::class)->group(function () {
|
||||
Route::get('instamojo/pay', 'pay')->middleware('auth:sanctum');
|
||||
Route::any('instamojo/success', 'success');
|
||||
Route::get('instamojo/failed', 'paymentFailed');
|
||||
});
|
||||
|
||||
|
||||
Route::post('offline/payment/submit', 'App\Http\Controllers\Api\V2\OfflinePaymentController@submit')->name('api.offline.payment.submit');
|
||||
|
||||
|
||||
Route::get('flash-deals', 'App\Http\Controllers\Api\V2\FlashDealController@index');
|
||||
Route::get('flash-deal-products/{id}', 'App\Http\Controllers\Api\V2\FlashDealController@products');
|
||||
|
||||
//Addon list
|
||||
Route::get('addon-list', 'App\Http\Controllers\Api\V2\ConfigController@addon_list');
|
||||
//Activated social login list
|
||||
Route::get('activated-social-login', 'App\Http\Controllers\Api\V2\ConfigController@activated_social_login');
|
||||
|
||||
//Business Sttings list
|
||||
Route::post('business-settings', 'App\Http\Controllers\Api\V2\ConfigController@business_settings');
|
||||
//Pickup Point list
|
||||
Route::get('pickup-list', 'App\Http\Controllers\Api\V2\ShippingController@pickup_list');
|
||||
|
||||
Route::get('google-recaptcha', function () {
|
||||
return view("frontend.google_recaptcha.app_recaptcha");
|
||||
});
|
||||
});
|
||||
|
||||
Route::fallback(function () {
|
||||
return response()->json([
|
||||
'data' => [],
|
||||
'success' => false,
|
||||
'status' => 404,
|
||||
'message' => 'Invalid Route'
|
||||
]);
|
||||
});
|
||||
|
||||
133
routes/api_seller.php
Normal file
133
routes/api_seller.php
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Api\V2\Seller;
|
||||
|
||||
use Route;
|
||||
|
||||
Route::group(['prefix' => 'v2/seller', 'middleware' => ['app_language']], function () {
|
||||
|
||||
Route::middleware(['auth:sanctum'])->group(function () {
|
||||
|
||||
//Order Section
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
Route::get('orders', 'getOrderList');
|
||||
Route::get('orders/details/{id}', 'getOrderDetails');
|
||||
Route::post('orders/items/{id}', 'getOrderItems');
|
||||
Route::post('orders/update-delivery-status', 'update_delivery_status');
|
||||
Route::post('orders/update-payment-status', 'update_payment_status');
|
||||
|
||||
// Route::apiResource('shops', 'App\Http\Controllers\Api\V2\ShopController')->only('index');
|
||||
});
|
||||
|
||||
//Shop Section
|
||||
Route::controller(ShopController::class)->group(function () {
|
||||
Route::get('payment-history', 'payment_histories');
|
||||
Route::get('commission-list', 'collection_histories');
|
||||
Route::get('profile', 'profile');
|
||||
Route::get('dashboard/category-wise-products', 'category_wise_products');
|
||||
Route::get('dashboard/sales-stat', 'sales_stat');
|
||||
Route::get('dashboard/top-12-product', 'top_12_products');
|
||||
Route::get('dashboard/dashboard-counters', 'app_dashboard_counters');
|
||||
Route::get('shop/info', 'info');
|
||||
Route::get('package/info', 'pacakge');
|
||||
Route::post('shop-update', 'update');
|
||||
Route::get('shop-verify-form', 'getVerifyForm');
|
||||
Route::post('shop-verify-info-store', 'store_verify_info');
|
||||
});
|
||||
|
||||
//Refund Section
|
||||
Route::controller(RefundController::class)->group(function () {
|
||||
Route::get('refunds', 'index');
|
||||
Route::post('refunds/approve', 'request_approval_vendor');
|
||||
Route::post('refunds/reject', 'reject_refund_request');
|
||||
});
|
||||
//Withdraw Request Section
|
||||
Route::controller(WithdrawRequestController::class)->group(function () {
|
||||
Route::get('withdraw-request', 'index');
|
||||
Route::post('withdraw-request/store', 'store');
|
||||
});
|
||||
|
||||
//Product Section
|
||||
Route::controller(ProductController::class)->group(function () {
|
||||
Route::get('products/all', 'index');
|
||||
Route::get('products/categories', 'getCategory');
|
||||
Route::get('products/brands', 'getBrands');
|
||||
Route::get('products/taxes', 'getTaxes');
|
||||
Route::get('products/attributes', 'getAttributes');
|
||||
Route::get('products/colors', 'getColors');
|
||||
Route::post('products/add', 'store');
|
||||
Route::get('products/edit/{id}', 'edit');
|
||||
Route::post('products/update/{product}', 'update');
|
||||
Route::post('product/change-featured', 'change_featured_status');
|
||||
Route::post('product/change-status', 'change_status');
|
||||
Route::get('product/duplicate/{id}', 'duplicate');
|
||||
Route::get('product/delete/{id}', 'destroy');
|
||||
Route::get('products/remaining-uploads', 'remainingUploads');
|
||||
|
||||
Route::get('products/reviews', 'product_reviews');
|
||||
|
||||
Route::get('products/search', 'search');
|
||||
});
|
||||
|
||||
//Whole Sale Product Section
|
||||
Route::controller(WholesaleProductController::class)->group(function () {
|
||||
Route::get('wholesale-products', 'wholesale_products');
|
||||
Route::post('wholesale-product/create', 'product_store');
|
||||
Route::get('wholesale-product/edit/{id}', 'product_edit');
|
||||
Route::post('wholesale-product/update/{id}', 'product_update');
|
||||
Route::get('wholesale-product/destroy/{id}', 'product_destroy');
|
||||
});
|
||||
|
||||
// Auction Product Section
|
||||
Route::controller(SellerAuctionProductController::class)->group(function () {
|
||||
Route::get('auction-products', 'index');
|
||||
Route::post('auction-products/create', 'store');
|
||||
Route::get('auction-products/edit/{id}', 'edit');
|
||||
Route::post('auction-products/update/{id}', 'update');
|
||||
|
||||
Route::get('auction-product-bids/edit/{id}', 'productBids');
|
||||
Route::get('/auction-product-bids/destroy/{id}', 'bidDestroy');
|
||||
Route::get('auction-products/orders', 'getAuctionOrderList');
|
||||
|
||||
});
|
||||
|
||||
//Coupon Section
|
||||
Route::controller(CouponController::class)->group(function () {
|
||||
Route::get('coupon/all', 'index');
|
||||
Route::post('coupon/create', 'store');
|
||||
Route::get('coupon/edit/{id}', 'edit');
|
||||
Route::get('coupon/delete/{id}', 'destroy');
|
||||
Route::post('coupon/update/{coupon}', 'update');
|
||||
Route::get('coupon/for-product', 'coupon_for_product');
|
||||
});
|
||||
|
||||
//Conversations
|
||||
Route::controller(ConversationController::class)->group(function () {
|
||||
Route::get('conversations', 'index');
|
||||
Route::get('conversations/show/{id}', 'showMessages');
|
||||
Route::post('conversations/message/store', 'send_message_to_customer');
|
||||
});
|
||||
|
||||
//Seller Package
|
||||
Route::controller(SellerPackageController::class)->group(function () {
|
||||
Route::get('seller-packages-list', 'seller_packages_list');
|
||||
Route::post('seller-package/offline-payment', 'purchase_package_offline');
|
||||
Route::post('seller-package/free-package', 'purchase_free_package');
|
||||
});
|
||||
|
||||
//Seller File Upload
|
||||
Route::controller(SellerFileUploadController::class)->group(function () {
|
||||
Route::post('file/upload', 'upload');
|
||||
Route::get('file/all', 'index');
|
||||
Route::get('file/delete/{id}', 'destroy');
|
||||
});
|
||||
|
||||
// ...
|
||||
});
|
||||
|
||||
Route::post('shops/create', [ShopController::class, 'store']);
|
||||
Route::get('/register-shop', function () {
|
||||
return '¡Mensaje de prueba para el registro de tienda!';
|
||||
});
|
||||
|
||||
});
|
||||
72
routes/auction.php
Normal file
72
routes/auction.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Auction Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\AuctionProductController;
|
||||
use App\Http\Controllers\AuctionProductBidController;
|
||||
use App\Http\Controllers\CartController;
|
||||
use App\Http\Controllers\HomeController;
|
||||
|
||||
//Admin
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
// Auction product lists
|
||||
Route::controller(AuctionProductController::class)->group(function () {
|
||||
Route::get('auction/all-products', 'all_auction_product_list')->name('auction.all_products');
|
||||
Route::get('auction/inhouse-products', 'inhouse_auction_products')->name('auction.inhouse_products');
|
||||
Route::get('auction/seller-products', 'seller_auction_products')->name('auction.seller_products');
|
||||
|
||||
Route::get('/auction-product/create', 'product_create_admin')->name('auction_product_create.admin');
|
||||
Route::post('/auction-product/store', 'product_store_admin')->name('auction_product_store.admin');
|
||||
Route::get('/auction_products/edit/{id}', 'product_edit_admin')->name('auction_product_edit.admin');
|
||||
Route::post('/auction_products/update/{id}', 'product_update_admin')->name('auction_product_update.admin');
|
||||
Route::get('/auction_products/destroy/{id}', 'product_destroy_admin')->name('auction_product_destroy.admin');
|
||||
|
||||
// Sales
|
||||
Route::get('/auction_products-orders', 'admin_auction_product_orders')->name('auction_products_orders');
|
||||
});
|
||||
Route::controller(AuctionProductBidController::class)->group(function () {
|
||||
Route::get('/product-bids/{id}', 'product_bids_admin')->name('product_bids.admin');
|
||||
Route::get('/product-bids/destroy/{id}', 'bid_destroy_admin')->name('product_bids_destroy.admin');
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'seller', 'middleware' => ['seller', 'verified', 'user']], function() {
|
||||
Route::controller(AuctionProductController::class)->group(function () {
|
||||
Route::get('/auction_products', 'auction_product_list_seller')->name('auction_products.seller.index');
|
||||
|
||||
Route::get('/auction-product/create', 'product_create_seller')->name('auction_product_create.seller');
|
||||
Route::post('/auction-product/store', 'product_store_seller')->name('auction_product_store.seller');
|
||||
Route::get('/auction_products/edit/{id}', 'product_edit_seller')->name('auction_product_edit.seller');
|
||||
Route::post('/auction_products/update/{id}', 'product_update_seller')->name('auction_product_update.seller');
|
||||
Route::get('/auction_products/destroy/{id}', 'product_destroy_seller')->name('auction_product_destroy.seller');
|
||||
|
||||
Route::get('/auction_products-orders', 'seller_auction_product_orders')->name('auction_products_orders.seller');
|
||||
});
|
||||
Route::controller(AuctionProductBidController::class)->group(function () {
|
||||
Route::get('/product-bids/{id}', 'product_bids_seller')->name('product_bids.seller');
|
||||
Route::get('/product-bids/destroy/{id}', 'bid_destroy_seller')->name('product_bids_destroy.seller');
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['auth']], function() {
|
||||
Route::resource('auction_product_bids', AuctionProductBidController::class);
|
||||
|
||||
Route::post('/auction/cart/show-cart-modal', [CartController::class, 'showCartModalAuction'])->name('auction.cart.showCartModal');
|
||||
Route::get('/auction/purchase_history', [AuctionProductController::class, 'purchase_history_user'])->name('auction_product.purchase_history');
|
||||
});
|
||||
|
||||
Route::post('/home/section/auction_products', [HomeController::class, 'load_auction_products_section'])->name('home.section.auction_products');
|
||||
|
||||
Route::controller(AuctionProductController::class)->group(function () {
|
||||
Route::get('/auction-product/{slug}', 'auction_product_details')->name('auction-product');
|
||||
Route::get('/auction-products', 'all_auction_products')->name('auction_products.all');
|
||||
});
|
||||
16
routes/channels.php
Normal file
16
routes/channels.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Broadcast Channels
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may register all of the event broadcasting channels that your
|
||||
| application supports. The given channel authorization callbacks are
|
||||
| used to check if an authenticated user can listen to the channel.
|
||||
|
|
||||
*/
|
||||
|
||||
Broadcast::channel('App.User.{id}', function ($user, $id) {
|
||||
return (int) $user->id === (int) $id;
|
||||
});
|
||||
38
routes/club_points.php
Normal file
38
routes/club_points.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Affiliate Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
//Admin
|
||||
|
||||
use App\Http\Controllers\ClubPointController;
|
||||
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::controller(ClubPointController::class)->group(function () {
|
||||
Route::get('club-points/configuration', 'configure_index')->name('club_points.configs');
|
||||
Route::get('club-points/index', 'index')->name('club_points.index');
|
||||
Route::get('set-club-points', 'set_point')->name('set_product_points');
|
||||
Route::post('set-club-points/store', 'set_products_point')->name('set_products_point.store');
|
||||
Route::post('set-club-points-for-all_products/store', 'set_all_products_point')->name('set_all_products_point.store');
|
||||
Route::get('set-club-points/{id}', 'set_point_edit')->name('product_club_point.edit');
|
||||
Route::get('club-point-details/{id}', 'club_point_detail')->name('club_point.details');
|
||||
Route::post('set-club-points/update/{id}', 'update_product_point')->name('product_point.update');
|
||||
Route::post('club-point-convert-rate/store', 'convert_rate_store')->name('point_convert_rate_store');
|
||||
});
|
||||
});
|
||||
|
||||
//FrontEnd
|
||||
Route::group(['middleware' => ['user', 'verified']], function(){
|
||||
Route::controller(ClubPointController::class)->group(function () {
|
||||
Route::get('earning-points', 'userpoint_index')->name('earnng_point_for_user');
|
||||
Route::post('convert-point-into-wallet', 'convert_point_into_wallet')->name('convert_point_into_wallet');
|
||||
});
|
||||
});
|
||||
18
routes/console.php
Normal file
18
routes/console.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Console Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file is where you may define all of your Closure based console
|
||||
| commands. Each Closure is bound to a command instance allowing a
|
||||
| simple approach to interacting with each command's IO methods.
|
||||
|
|
||||
*/
|
||||
|
||||
Artisan::command('inspire', function () {
|
||||
$this->comment(Inspiring::quote());
|
||||
})->describe('Display an inspiring quote');
|
||||
60
routes/delivery_boy.php
Normal file
60
routes/delivery_boy.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| POS Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
|
||||
//Admin
|
||||
|
||||
use App\Http\Controllers\DeliveryBoyController;
|
||||
use App\Http\Controllers\OrderController;
|
||||
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin', 'prevent-back-history']], function(){
|
||||
//Delivery Boy
|
||||
Route::resource('delivery-boys', DeliveryBoyController::class);
|
||||
|
||||
Route::controller(DeliveryBoyController::class)->group(function () {
|
||||
Route::get('/delivery-boy/ban/{id}', 'ban')->name('delivery-boy.ban');
|
||||
Route::get('/delivery-boy-configuration', 'delivery_boy_configure')->name('delivery-boy-configuration');
|
||||
Route::post('/delivery-boy/order-collection', 'order_collection_form')->name('delivery-boy.order-collection');
|
||||
Route::post('/collection-from-delivery-boy', 'collection_from_delivery_boy')->name('collection-from-delivery-boy');
|
||||
Route::post('/delivery-boy/delivery-earning', 'delivery_earning_form')->name('delivery-boy.delivery-earning');
|
||||
Route::post('/paid-to-delivery-boy', 'paid_to_delivery_boy')->name('paid-to-delivery-boy');
|
||||
Route::get('/delivery-boys-payment-histories', 'delivery_boys_payment_histories')->name('delivery-boys-payment-histories');
|
||||
Route::get('/delivery-boys-collection-histories', 'delivery_boys_collection_histories')->name('delivery-boys-collection-histories');
|
||||
Route::get('/delivery-boy/cancel-request', 'cancel_request_list')->name('delivery-boy.cancel-request');
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['user', 'verified', 'unbanned', 'prevent-back-history']], function() {
|
||||
Route::controller(DeliveryBoyController::class)->group(function () {
|
||||
Route::get('/assigned-deliveries', 'assigned_delivery')->name('assigned-deliveries');
|
||||
Route::get('/pickup-deliveries', 'pickup_delivery')->name('pickup-deliveries');
|
||||
Route::get('/on-the-way-deliveries', 'on_the_way_deliveries')->name('on-the-way-deliveries');
|
||||
Route::get('/completed-deliveries', 'completed_delivery')->name('completed-deliveries');
|
||||
Route::get('/pending-deliveries', 'pending_delivery')->name('pending-deliveries');
|
||||
Route::get('/cancelled-deliveries', 'cancelled_delivery')->name('cancelled-deliveries');
|
||||
Route::get('/total-collections', 'total_collection')->name('total-collection');
|
||||
Route::get('/total-earnings', 'total_earning')->name('total-earnings');
|
||||
Route::get('/cancel-request/{id}', 'cancel_request')->name('cancel-request');
|
||||
Route::get('/cancel-request-list', 'delivery_boys_cancel_request_list')->name('cancel-request-list');
|
||||
});
|
||||
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
Route::post('/orders/update_delivery_status', 'update_delivery_status')->name('delivery-boy.orders.update_delivery_status');
|
||||
});
|
||||
|
||||
Route::controller(DeliveryBoyController::class)->group(function () {
|
||||
Route::get('/delivery-boy/order-detail/{id}', 'order_detail')->name('delivery-boy.order-detail');
|
||||
});
|
||||
|
||||
});
|
||||
28
routes/install.php
Normal file
28
routes/install.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Install Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This route is responsible for handling the intallation process
|
||||
|
|
||||
|
|
||||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\InstallController;
|
||||
|
||||
Route::controller(InstallController::class)->group(function () {
|
||||
Route::get('/', 'step0');
|
||||
Route::get('/step1', 'step1')->name('step1');
|
||||
Route::get('/step2', 'step2')->name('step2');
|
||||
Route::get('/step3/{error?}', 'step3')->name('step3');
|
||||
Route::get('/step4', 'step4')->name('step4');
|
||||
Route::get('/step5', 'step5')->name('step5');
|
||||
|
||||
Route::post('/database_installation', 'database_installation')->name('install.db');
|
||||
Route::get('import_sql', 'import_sql')->name('import_sql');
|
||||
Route::post('system_settings', 'system_settings')->name('system_settings');
|
||||
Route::post('purchase_code', 'purchase_code')->name('purchase.code');
|
||||
});
|
||||
|
||||
58
routes/offline_payment.php
Normal file
58
routes/offline_payment.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\CustomerPackageController;
|
||||
use App\Http\Controllers\WalletController;
|
||||
use App\Http\Controllers\CustomerPackagePaymentController;
|
||||
use App\Http\Controllers\ManualPaymentMethodController;
|
||||
use App\Http\Controllers\SellerPackageController;
|
||||
use App\Http\Controllers\SellerPackagePaymentController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Offline Payment Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
//Admin
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::resource('manual_payment_methods', ManualPaymentMethodController::class);
|
||||
Route::get('/manual_payment_methods/destroy/{id}', [ManualPaymentMethodController::class, 'destroy'])->name('manual_payment_methods.destroy');
|
||||
Route::get('/offline-wallet-recharge-requests', [WalletController::class, 'offline_recharge_request'])->name('offline_wallet_recharge_request.index');
|
||||
Route::post('/offline-wallet-recharge/approved', [WalletController::class, 'updateApproved'])->name('offline_recharge_request.approved');
|
||||
|
||||
// Seller Package purchase request
|
||||
Route::get('/offline-seller-package-payment-requests', [SellerPackagePaymentController::class, 'offline_payment_request'])->name('offline_seller_package_payment_request.index');
|
||||
Route::post('/offline-seller-package-payment/approved', [SellerPackagePaymentController::class, 'offline_payment_approval'])->name('offline_seller_package_payment.approved');
|
||||
|
||||
// customer package purchase request
|
||||
Route::get('/offline-customer-package-payment-requests', [CustomerPackagePaymentController::class, 'offline_payment_request'])->name('offline_customer_package_payment_request.index');
|
||||
Route::post('/offline-customer-package-payment/approved', [CustomerPackagePaymentController::class, 'offline_payment_approval'])->name('offline_customer_package_payment.approved');
|
||||
|
||||
});
|
||||
|
||||
//FrontEnd
|
||||
Route::post('/purchase_history/make_payment', [ManualPaymentMethodController::class, 'show_payment_modal'])->name('checkout.make_payment');
|
||||
Route::post('/purchase_history/make_payment/submit', [ManualPaymentMethodController::class, 'submit_offline_payment'])->name('purchase_history.make_payment');
|
||||
Route::post('/offline-wallet-recharge-modal', [ManualPaymentMethodController::class, 'offline_recharge_modal'])->name('offline_wallet_recharge_modal');
|
||||
|
||||
Route::group(['middleware' => ['user', 'verified']], function(){
|
||||
Route::post('/offline-wallet-recharge', [WalletController::class, 'offline_recharge'])->name('wallet_recharge.make_payment');
|
||||
|
||||
});
|
||||
|
||||
// customer package purchase
|
||||
Route::post('/offline-customer-package-purchase-modal', [ManualPaymentMethodController::class, 'offline_customer_package_purchase_modal'])->name('offline_customer_package_purchase_modal');
|
||||
Route::post('/offline-customer-package-paymnet', [CustomerPackageController::class, 'purchase_package_offline'])->name('customer_package.make_offline_payment');
|
||||
|
||||
|
||||
Route::group(['prefix' => 'seller', 'middleware' => ['seller', 'verified', 'user'], 'as' => 'seller.'], function () {
|
||||
// Seller Package purchase
|
||||
Route::post('/offline-seller-package-purchase-modal', [ManualPaymentMethodController::class, 'offline_seller_package_purchase_modal'])->name('offline_seller_package_purchase_modal');
|
||||
Route::post('/offline-seller-package-paymnet',[SellerPackageController::class, 'purchase_package_offline'])->name('make_offline_payment');
|
||||
});
|
||||
|
||||
45
routes/otp.php
Normal file
45
routes/otp.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| OTP Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\OTPVerificationController;
|
||||
use App\Http\Controllers\OTPController;
|
||||
use App\Http\Controllers\SmsController;
|
||||
use App\Http\Controllers\SmsTemplateController;
|
||||
|
||||
//Verofocation phone
|
||||
Route::controller(OTPVerificationController::class)->group(function () {
|
||||
Route::get('/verification', 'verification')->name('verification');
|
||||
Route::post('/verification', 'verify_phone')->name('verification.submit');
|
||||
Route::get('/verification/phone/code/resend', 'resend_verificcation_code')->name('verification.phone.resend');
|
||||
|
||||
//Forgot password phone
|
||||
Route::get('/password/phone/reset', 'show_reset_password_form')->name('password.phone.form');
|
||||
Route::post('/password/reset/submit', 'reset_password_with_code')->name('password.update.phone');
|
||||
});
|
||||
|
||||
//Admin
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::controller(OTPController::class)->group(function () {
|
||||
Route::get('/otp-configuration', 'configure_index')->name('otp.configconfiguration');
|
||||
Route::get('/otp-credentials-configuration', 'credentials_index')->name('otp_credentials.index');
|
||||
Route::post('/otp-configuration/update/activation', 'updateActivationSettings')->name('otp_configurations.update.activation');
|
||||
Route::post('/otp-credentials-update', 'update_credentials')->name('update_credentials');
|
||||
});
|
||||
//Messaging
|
||||
Route::controller(SmsController::class)->group(function () {
|
||||
Route::get('/sms', 'index')->name('sms.index');
|
||||
Route::post('/sms-send', 'send')->name('sms.send');
|
||||
});
|
||||
|
||||
Route::resource('sms-templates', SmsTemplateController::class);
|
||||
});
|
||||
34
routes/paytm.php
Normal file
34
routes/paytm.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
//Paytm
|
||||
|
||||
use App\Http\Controllers\Payment\PaytmController;
|
||||
use App\Http\Controllers\Payment\ToyyibpayController;
|
||||
use App\Http\Controllers\Payment\MyfatoorahController;
|
||||
use App\Http\Controllers\Payment\KhaltiController;
|
||||
|
||||
|
||||
Route::controller(PaytmController::class)->group(function () {
|
||||
Route::get('/paytm/index', 'pay');
|
||||
Route::post('/paytm/callback', 'callback')->name('paytm.callback');
|
||||
});
|
||||
|
||||
//Admin
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::controller(PaytmController::class)->group(function () {
|
||||
Route::get('/paytm_configuration', 'credentials_index')->name('paytm.index');
|
||||
Route::post('/paytm_configuration_update', 'update_credentials')->name('paytm.update_credentials');
|
||||
});
|
||||
});
|
||||
|
||||
//Toyyibpay
|
||||
Route::controller(ToyyibpayController::class)->group(function () {
|
||||
Route::get('toyyibpay-status', 'paymentstatus')->name( 'toyyibpay-status');
|
||||
Route::post('/toyyibpay-callback', 'callback')->name( 'toyyibpay-callback');
|
||||
});
|
||||
|
||||
//Myfatoorah START
|
||||
Route::get('/myfatoorah/callback', [MyfatoorahController::class,'callback'])->name('myfatoorah.callback');
|
||||
|
||||
//Khalti START
|
||||
Route::any('/khalti/payment/done', [KhaltiController::class,'paymentDone'])->name('khalti.success');
|
||||
51
routes/pos.php
Normal file
51
routes/pos.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| POS Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\PosController;
|
||||
use App\Http\Controllers\BusinessSettingsController;
|
||||
use App\Http\Controllers\Seller\PosController as SellerPosController;
|
||||
|
||||
Route::controller(PosController::class)->group(function () {
|
||||
Route::get('/pos/products', 'search')->name('pos.search_product');
|
||||
Route::post('/add-to-cart-pos', 'addToCart')->name('pos.addToCart');
|
||||
Route::post('/update-quantity-cart-pos', 'updateQuantity')->name('pos.updateQuantity');
|
||||
Route::post('/remove-from-cart-pos', 'removeFromCart')->name('pos.removeFromCart');
|
||||
Route::post('/get_shipping_address', 'getShippingAddress')->name('pos.getShippingAddress');
|
||||
Route::post('/get_shipping_address_seller', 'getShippingAddressForSeller')->name('pos.getShippingAddressForSeller');
|
||||
Route::post('/setDiscount', 'setDiscount')->name('pos.setDiscount');
|
||||
Route::post('/setShipping', 'setShipping')->name('pos.setShipping');
|
||||
Route::post('/set-shipping-address', 'set_shipping_address')->name('pos.set-shipping-address');
|
||||
Route::post('/pos-order-summary', 'get_order_summary')->name('pos.getOrderSummary');
|
||||
Route::post('/pos-order', 'order_store')->name('pos.order_place');
|
||||
});
|
||||
|
||||
//Admin
|
||||
Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'admin']], function () {
|
||||
//pos
|
||||
Route::controller(PosController::class)->group(function () {
|
||||
Route::get('/pos', 'index')->name('poin-of-sales.index');
|
||||
Route::get('/pos-activation', 'configuration')->name('poin-of-sales.activation');
|
||||
Route::get('/pos/thermal-printer/{order_id}', 'invoice')->name('admin.invoice.thermal_printer');
|
||||
});
|
||||
});
|
||||
|
||||
//Seller
|
||||
Route::group(['prefix' => 'seller', 'middleware' => ['seller', 'verified']], function () {
|
||||
Route::controller(SellerPosController::class)->group(function () {
|
||||
Route::get('/pos', 'index')->name('poin-of-sales.seller_index');
|
||||
Route::get('/pos/thermal-printer/{order_id}', 'invoice')->name('seller.invoice.thermal_printer');
|
||||
Route::get('/pos-activation', 'configuration')->name('pos.configuration');
|
||||
Route::get('/pos/products', 'search')->name('pos.search_seller_product');
|
||||
});
|
||||
Route::post('/pos-configuration', [BusinessSettingsController::class, 'update'])->name('seller_business_settings.update');
|
||||
});
|
||||
55
routes/refund_request.php
Normal file
55
routes/refund_request.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Refund System Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
//Admin Panel
|
||||
|
||||
use App\Http\Controllers\RefundRequestController;
|
||||
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::controller(RefundRequestController::class)->group(function () {
|
||||
Route::get('/refund-request-all', 'admin_index')->name('refund_requests_all');
|
||||
Route::get('/refund-request-config', 'refund_config')->name('refund_time_config');
|
||||
Route::get('/paid-refund', 'paid_index')->name('paid_refund');
|
||||
Route::get('/rejected-refund', 'rejected_index')->name('rejected_refund');
|
||||
Route::post('admin/refund-approval', 'request_approval_vendor')->name('admin.refund_approval');
|
||||
Route::get('/admin/refund-request-reason/{id}', 'reason_view')->name('admin.reason_show');
|
||||
Route::post('/admin/reject-refund-request','reject_refund_request')->name('admin.reject_refund_request');
|
||||
Route::get('/admin/refund-request-reject-reason/{id}', 'reject_reason_view')->name('admin.reject_reason_show');
|
||||
Route::post('/refund-request-pay', 'refund_pay')->name('refund_request_money_by_admin');
|
||||
Route::post('/refund-request-time-store', 'refund_time_update')->name('refund_request_time_config');
|
||||
Route::post('/refund-request-sticker-store', 'refund_sticker_update')->name('refund_sticker_config');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//FrontEnd User panel
|
||||
Route::group(['middleware' => ['user', 'verified']], function(){
|
||||
Route::controller(RefundRequestController::class)->group(function () {
|
||||
Route::post('refund-request-send/{id}', 'request_store')->name('refund_request_send');
|
||||
Route::get('sent-refund-request', 'customer_index')->name('customer_refund_request');
|
||||
Route::get('refund-request/{id}', 'refund_request_send_page')->name('refund_request_send_page');
|
||||
Route::get('/refund-request-reject-reason/{id}', 'reject_reason_view')->name('reject_reason_show');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//Seller panel
|
||||
Route::group(['middleware' => ['seller', 'user', 'verified']], function(){
|
||||
Route::controller(RefundRequestController::class)->group(function () {
|
||||
Route::get('/seller/refund-request', 'vendor_index')->name('seller.vendor_refund_request');
|
||||
Route::post('seller/refund-reuest-vendor-approval', 'request_approval_vendor')->name('seller.vendor_refund_approval');
|
||||
Route::post('/seller/reject-refund-request','reject_refund_request')->name('seller.reject_refund_request');
|
||||
Route::get('/seller/refund-request-reason/{id}', 'reason_view')->name('seller.reason_show');
|
||||
Route::get('/seller/refund-request-reject-reason/{id}', 'reject_reason_view')->name('seller.reject_reason_show');
|
||||
});
|
||||
});
|
||||
151
routes/seller.php
Normal file
151
routes/seller.php
Normal file
@@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\AizUploadController;
|
||||
|
||||
//Upload
|
||||
Route::group(['prefix' => 'seller', 'middleware' => ['seller', 'verified', 'user', 'prevent-back-history'], 'as' => 'seller.'], function () {
|
||||
Route::controller(AizUploadController::class)->group(function () {
|
||||
Route::any('/uploads', 'index')->name('uploaded-files.index');
|
||||
Route::any('/uploads/create', 'create')->name('uploads.create');
|
||||
Route::any('/uploads/file-info', 'file_info')->name('my_uploads.info');
|
||||
Route::get('/uploads/destroy/{id}', 'destroy')->name('my_uploads.destroy');
|
||||
Route::post('/bulk-uploaded-files-delete', 'bulk_uploaded_files_delete')->name('bulk-uploaded-files-delete');
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['namespace' => 'App\Http\Controllers\Seller', 'prefix' => 'seller', 'middleware' => ['seller', 'verified', 'user', 'prevent-back-history'], 'as' => 'seller.'], function () {
|
||||
Route::controller(DashboardController::class)->group(function () {
|
||||
Route::get('/dashboard', 'index')->name('dashboard');
|
||||
});
|
||||
|
||||
// Product
|
||||
Route::controller(ProductController::class)->group(function () {
|
||||
Route::get('/products', 'index')->name('products');
|
||||
Route::get('/product/create', 'create')->name('products.create');
|
||||
Route::post('/products/store/', 'store')->name('products.store');
|
||||
Route::get('/product/{id}/edit', 'edit')->name('products.edit');
|
||||
Route::post('/products/update/{product}', 'update')->name('products.update');
|
||||
Route::get('/products/duplicate/{id}', 'duplicate')->name('products.duplicate');
|
||||
Route::post('/products/sku_combination', 'sku_combination')->name('products.sku_combination');
|
||||
Route::post('/products/sku_combination_edit', 'sku_combination_edit')->name('products.sku_combination_edit');
|
||||
Route::post('/products/add-more-choice-option', 'add_more_choice_option')->name('products.add-more-choice-option');
|
||||
Route::post('/products/seller/featured', 'updateFeatured')->name('products.featured');
|
||||
Route::post('/products/published', 'updatePublished')->name('products.published');
|
||||
Route::get('/products/destroy/{id}', 'destroy')->name('products.destroy');
|
||||
Route::post('/products/bulk-delete', 'bulk_product_delete')->name('products.bulk-delete');
|
||||
});
|
||||
|
||||
// Product Bulk Upload
|
||||
Route::controller(ProductBulkUploadController::class)->group(function () {
|
||||
Route::get('/product-bulk-upload/index', 'index')->name('product_bulk_upload.index');
|
||||
Route::post('/product-bulk-upload/store', 'bulk_upload')->name('bulk_product_upload');
|
||||
Route::group(['prefix' => 'bulk-upload/download'], function() {
|
||||
Route::get('/category', 'pdf_download_category')->name('pdf.download_category');
|
||||
Route::get('/brand', 'pdf_download_brand')->name('pdf.download_brand');
|
||||
});
|
||||
});
|
||||
|
||||
// Digital Product
|
||||
Route::controller(DigitalProductController::class)->group(function () {
|
||||
Route::get('/digitalproducts', 'index')->name('digitalproducts');
|
||||
Route::get('/digitalproducts/create', 'create')->name('digitalproducts.create');
|
||||
Route::post('/digitalproducts/store', 'store')->name('digitalproducts.store');
|
||||
Route::get('/digitalproducts/{id}/edit', 'edit')->name('digitalproducts.edit');
|
||||
Route::post('/digitalproducts/update/{id}', 'update')->name('digitalproducts.update');
|
||||
Route::get('/digitalproducts/destroy/{id}', 'destroy')->name('digitalproducts.destroy');
|
||||
Route::get('/digitalproducts/download/{id}', 'download')->name('digitalproducts.download');
|
||||
});
|
||||
|
||||
//Coupon
|
||||
Route::resource('coupon', CouponController::class);
|
||||
Route::controller(CouponController::class)->group(function () {
|
||||
Route::post('/coupon/get_form', 'get_coupon_form')->name('coupon.get_coupon_form');
|
||||
Route::post('/coupon/get_form_edit', 'get_coupon_form_edit')->name('coupon.get_coupon_form_edit');
|
||||
Route::get('/coupon/destroy/{id}', 'destroy')->name('coupon.destroy');
|
||||
});
|
||||
|
||||
//Order
|
||||
Route::resource('orders', OrderController::class);
|
||||
Route::controller(OrderController::class)->group(function () {
|
||||
Route::post('/orders/update_delivery_status', 'update_delivery_status')->name('orders.update_delivery_status');
|
||||
Route::post('/orders/update_payment_status', 'update_payment_status')->name('orders.update_payment_status');
|
||||
});
|
||||
|
||||
Route::controller(InvoiceController::class)->group(function () {
|
||||
Route::get('/invoice/{order_id}', 'invoice_download')->name('invoice.download');
|
||||
});
|
||||
// Route::get('invoice/{order_id}',[InvoiceController::class, 'invoice_download'])->name('invoice.download');
|
||||
//Review
|
||||
Route::controller(ReviewController::class)->group(function () {
|
||||
Route::get('/reviews', 'index')->name('reviews');
|
||||
});
|
||||
// Route::get('/reviews', [ReviewController::class, 'index'])->name('reviews');
|
||||
|
||||
//Shop
|
||||
Route::controller(ShopController::class)->group(function () {
|
||||
Route::get('/shop', 'index')->name('shop.index');
|
||||
Route::post('/shop/update', 'update')->name('shop.update');
|
||||
Route::get('/shop/apply_for_verification', 'verify_form')->name('shop.verify');
|
||||
Route::post('/shop/verification_info_store', 'verify_form_store')->name('shop.verify.store');
|
||||
});
|
||||
|
||||
//Payments
|
||||
Route::resource('payments', PaymentController::class);
|
||||
|
||||
// Profile Settings
|
||||
Route::controller(ProfileController::class)->group(function () {
|
||||
Route::get('/profile', 'index')->name('profile.index');
|
||||
Route::post('/profile/update/{id}', 'update')->name('profile.update');
|
||||
});
|
||||
|
||||
// Address
|
||||
Route::resource('addresses', AddressController::class);
|
||||
Route::controller(AddressController::class)->group(function () {
|
||||
Route::post('/get-states', 'getStates')->name('get-state');
|
||||
Route::post('/get-cities', 'getCities')->name('get-city');
|
||||
Route::post('/address/update/{id}', 'update')->name('addresses.update');
|
||||
Route::get('/addresses/destroy/{id}', 'destroy')->name('addresses.destroy');
|
||||
Route::get('/addresses/set_default/{id}', 'set_default')->name('addresses.set_default');
|
||||
});
|
||||
|
||||
// Money Withdraw Requests
|
||||
Route::controller(SellerWithdrawRequestController::class)->group(function () {
|
||||
Route::get('/money-withdraw-requests', 'index')->name('money_withdraw_requests.index');
|
||||
Route::post('/money-withdraw-request/store', 'store')->name('money_withdraw_request.store');
|
||||
});
|
||||
|
||||
// Commission History
|
||||
Route::controller(CommissionHistoryController::class)->group(function () {
|
||||
Route::get('/commission-history', 'index')->name('commission-history.index');
|
||||
});
|
||||
|
||||
//Conversations
|
||||
Route::controller(ConversationController::class)->group(function () {
|
||||
Route::get('/conversations', 'index')->name('conversations.index');
|
||||
Route::get('/conversations/show/{id}', 'show')->name('conversations.show');
|
||||
Route::post('conversations/refresh', 'refresh')->name('conversations.refresh');
|
||||
Route::post('conversations/message/store', 'message_store')->name('conversations.message_store');
|
||||
});
|
||||
|
||||
// product query (comments) show on seller panel
|
||||
Route::controller(ProductQueryController::class)->group(function () {
|
||||
Route::get('/product-queries', 'index')->name('product_query.index');
|
||||
Route::get('/product-queries/{id}', 'show')->name('product_query.show');
|
||||
Route::put('/product-queries/{id}', 'reply')->name('product_query.reply');
|
||||
});
|
||||
|
||||
// Support Ticket
|
||||
Route::controller(SupportTicketController::class)->group(function () {
|
||||
Route::get('/support_ticket', 'index')->name('support_ticket.index');
|
||||
Route::post('/support_ticket/store', 'store')->name('support_ticket.store');
|
||||
Route::get('/support_ticket/show/{id}', 'show')->name('support_ticket.show');
|
||||
Route::post('/support_ticket/reply', 'ticket_reply_store')->name('support_ticket.reply_store');
|
||||
});
|
||||
|
||||
// Notifications
|
||||
Route::controller(NotificationController::class)->group(function () {
|
||||
Route::get('/all-notification', 'index')->name('all-notification');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
34
routes/seller_package.php
Normal file
34
routes/seller_package.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Affiliate Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\SellerPackageController;
|
||||
|
||||
//Admin
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::resource('seller_packages', SellerPackageController::class);
|
||||
Route::controller(SellerPackageController::class)->group(function () {
|
||||
Route::get('/seller_packages/edit/{id}', 'edit')->name('seller_packages.edit');
|
||||
Route::get('/seller_packages/destroy/{id}', 'destroy')->name('seller_packages.destroy');
|
||||
});
|
||||
});
|
||||
|
||||
//FrontEnd
|
||||
Route::group(['middleware' => ['seller']], function(){
|
||||
Route::controller(SellerPackageController::class)->group(function () {
|
||||
Route::get('/seller/seller-packages', 'seller_packages_list')->name('seller.seller_packages_list');
|
||||
Route::get('/seller/packages-payment-list', 'packages_payment_list')->name('seller.packages_payment_list');
|
||||
Route::post('/seller_packages/purchase', 'purchase_package')->name('seller_packages.purchase');
|
||||
});
|
||||
});
|
||||
|
||||
Route::get('/seller_packages/check_for_invalid', [SellerPackageController::class, 'unpublish_products'])->name('seller_packages.unpublish_products');
|
||||
15
routes/update.php
Normal file
15
routes/update.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Update Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This route is responsible for handling the intallation process
|
||||
|
|
||||
|
|
||||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\UpdateController;
|
||||
|
||||
Route::get('/', [UpdateController::class, 'step0']);
|
||||
493
routes/web.php
Normal file
493
routes/web.php
Normal file
@@ -0,0 +1,493 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\BlogController;
|
||||
use App\Http\Controllers\CartController;
|
||||
use App\Http\Controllers\DemoController;
|
||||
use App\Http\Controllers\HomeController;
|
||||
use App\Http\Controllers\PageController;
|
||||
use App\Http\Controllers\ShopController;
|
||||
use App\Http\Controllers\ReviewController;
|
||||
use App\Http\Controllers\SearchController;
|
||||
use App\Http\Controllers\WalletController;
|
||||
use App\Http\Controllers\AddressController;
|
||||
use App\Http\Controllers\CompareController;
|
||||
use App\Http\Controllers\InvoiceController;
|
||||
use App\Http\Controllers\MessageController;
|
||||
use App\Http\Controllers\CheckoutController;
|
||||
use App\Http\Controllers\CurrencyController;
|
||||
use App\Http\Controllers\LanguageController;
|
||||
use App\Http\Controllers\WishlistController;
|
||||
use App\Http\Controllers\ShopViewsController;
|
||||
use App\Http\Controllers\AizUploadController;
|
||||
use App\Http\Controllers\Auth\LoginController;
|
||||
use App\Http\Controllers\SubscriberController;
|
||||
use App\Http\Controllers\ConversationController;
|
||||
use App\Http\Controllers\FollowSellerController;
|
||||
use App\Http\Controllers\NotificationController;
|
||||
use App\Http\Controllers\ProductQueryController;
|
||||
use App\Http\Controllers\Payment\BkashController;
|
||||
use App\Http\Controllers\Payment\NagadController;
|
||||
|
||||
use App\Http\Controllers\Payment\PaykuController;
|
||||
use App\Http\Controllers\SupportTicketController;
|
||||
use App\Http\Controllers\DigitalProductController;
|
||||
use App\Http\Controllers\Payment\IyzicoController;
|
||||
use App\Http\Controllers\Payment\PaypalController;
|
||||
use App\Http\Controllers\Payment\StripeController;
|
||||
use App\Http\Controllers\CustomerPackageController;
|
||||
use App\Http\Controllers\CustomerProductController;
|
||||
use App\Http\Controllers\Payment\NgeniusController;
|
||||
use App\Http\Controllers\Payment\PayhereController;
|
||||
use App\Http\Controllers\PurchaseHistoryController;
|
||||
use App\Http\Controllers\Payment\AamarpayController;
|
||||
use App\Http\Controllers\Payment\PaystackController;
|
||||
use App\Http\Controllers\Payment\RazorpayController;
|
||||
use App\Http\Controllers\Payment\VoguepayController;
|
||||
use App\Http\Controllers\Auth\VerificationController;
|
||||
use App\Http\Controllers\Payment\InstamojoController;
|
||||
use App\Http\Controllers\Payment\SslcommerzController;
|
||||
use App\Http\Controllers\Payment\MercadopagoController;
|
||||
use App\Http\Controllers\Payment\AuthorizenetController;
|
||||
use App\Http\Controllers\UserController;
|
||||
|
||||
/* Grupo de rutas para el registro de tienda */
|
||||
Route::controller(ShopViewsController::class)->group(function () {
|
||||
|
||||
Route::get('/register-shop', 'index')->name('shop.view.index');
|
||||
|
||||
Route::get('/register-shop/account-type', 'account_type')->name('shop.view.account.type');
|
||||
|
||||
Route::get('/register-shop/register-email', 'register_email')->name('shop.view.register.email');
|
||||
|
||||
Route::get('/register-shop/email-verification', 'verification_email')->name('shop.view.email.verification');
|
||||
|
||||
Route::get('/register-shop/signup-complete', 'signup_complete')->name('shop.view.signup.complete');
|
||||
|
||||
//Route::get('/register-shop/account-type', 'account_type')->name('shop.view.account.type');
|
||||
|
||||
/* Route::get('/register-shop/register', 'register')->name('shop.view.register');
|
||||
|
||||
Route::get('/register-shop/email-verification', 'email_verification')->name('shop.view.email.verification');
|
||||
Route::get('/register-shop/personal-account', 'personal_account')->name('shop.view.personal-account');
|
||||
Route::get('/register-shop/personal-shop', 'personal_shop')->name('shop.view.email.personal-shop'); */
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
/* by joan */
|
||||
/* Api para guardar el correo y generar un token */
|
||||
Route::post('user/register-email', [UserController::class, 'register_email'])->name('api.user.register.email');
|
||||
Route::post('user/verify-code', [UserController::class, 'verify_code'])->name('api.user.verify.code');
|
||||
|
||||
|
||||
|
||||
|
||||
/* Ruta para el registro de tienda */
|
||||
/* Route::get('/register-shop', function () {
|
||||
return '¡Mensaje de prueba para el registro de tienda!';
|
||||
}); */
|
||||
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Web Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register web routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::controller(DemoController::class)->group(function () {
|
||||
Route::get('/demo/cron_1', 'cron_1');
|
||||
Route::get('/demo/cron_2', 'cron_2');
|
||||
Route::get('/convert_assets', 'convert_assets');
|
||||
Route::get('/convert_category', 'convert_category');
|
||||
Route::get('/convert_tax', 'convertTaxes');
|
||||
Route::get('/insert_product_variant_forcefully', 'insert_product_variant_forcefully');
|
||||
Route::get('/update_seller_id_in_orders/{id_min}/{id_max}', 'update_seller_id_in_orders');
|
||||
Route::get('/migrate_attribute_values', 'migrate_attribute_values');
|
||||
});
|
||||
|
||||
Route::get('/refresh-csrf', function () {
|
||||
return csrf_token();
|
||||
});
|
||||
|
||||
// AIZ Uploader
|
||||
Route::controller(AizUploadController::class)->group(function () {
|
||||
Route::post('/aiz-uploader', 'show_uploader');
|
||||
Route::post('/aiz-uploader/upload', 'upload');
|
||||
Route::get('/aiz-uploader/get_uploaded_files', 'get_uploaded_files');
|
||||
Route::post('/aiz-uploader/get_file_by_ids', 'get_preview_files');
|
||||
Route::get('/aiz-uploader/download/{id}', 'attachment_download')->name('download_attachment');
|
||||
});
|
||||
|
||||
Route::group(['middleware' => 'prevent-back-history'], function () {
|
||||
Auth::routes(['verify' => true]);
|
||||
});
|
||||
|
||||
// Login
|
||||
Route::controller(LoginController::class)->group(function () {
|
||||
Route::get('/logout', 'logout');
|
||||
Route::get('/social-login/redirect/{provider}', 'redirectToProvider')->name('social.login');
|
||||
Route::get('/social-login/{provider}/callback', 'handleProviderCallback')->name('social.callback');
|
||||
//Apple Callback
|
||||
Route::post('/apple-callback', 'handleAppleCallback');
|
||||
Route::get('/account-deletion', 'account_deletion')->name('account_delete');
|
||||
});
|
||||
|
||||
Route::controller(VerificationController::class)->group(function () {
|
||||
Route::get('/email/resend', 'resend')->name('verification.resend');
|
||||
Route::get('/verification-confirmation/{code}', 'verification_confirmation')->name('email.verification.confirmation');
|
||||
});
|
||||
|
||||
Route::controller(HomeController::class)->group(function () {
|
||||
Route::get('/email_change/callback', 'email_change_callback')->name('email_change.callback');
|
||||
Route::post('/password/reset/email/submit', 'reset_password_with_code')->name('password.update');
|
||||
|
||||
Route::get('/users/login', 'login')->name('user.login');
|
||||
Route::get('/seller/login', 'login')->name('seller.login');
|
||||
Route::get('/deliveryboy/login', 'login')->name('deliveryboy.login');
|
||||
Route::get('/users/registration', 'registration')->name('user.registration');
|
||||
Route::post('/users/login/cart', 'cart_login')->name('cart.login.submit');
|
||||
// Route::get('/new-page', 'new_page')->name('new_page');
|
||||
|
||||
|
||||
//Home Page
|
||||
Route::get('/', 'index')->name('home');
|
||||
|
||||
Route::post('/home/section/featured', 'load_featured_section')->name('home.section.featured');
|
||||
Route::post('/home/section/best_selling', 'load_best_selling_section')->name('home.section.best_selling');
|
||||
Route::post('/home/section/home_categories', 'load_home_categories_section')->name('home.section.home_categories');
|
||||
Route::post('/home/section/best_sellers', 'load_best_sellers_section')->name('home.section.best_sellers');
|
||||
|
||||
//category dropdown menu ajax call
|
||||
Route::post('/category/nav-element-list', 'get_category_items')->name('category.elements');
|
||||
|
||||
//Flash Deal Details Page
|
||||
Route::get('/flash-deals', 'all_flash_deals')->name('flash-deals');
|
||||
Route::get('/flash-deal/{slug}', 'flash_deal_details')->name('flash-deal-details');
|
||||
|
||||
//Todays Deal Details Page
|
||||
Route::get('/todays-deal', 'todays_deal')->name('todays-deal');
|
||||
|
||||
Route::get('/product/{slug}', 'product')->name('product');
|
||||
Route::post('/product/variant_price', 'variant_price')->name('products.variant_price');
|
||||
Route::get('/shop/{slug}', 'shop')->name('shop.visit');
|
||||
Route::get('/shop/{slug}/{type}', 'filter_shop')->name('shop.visit.type');
|
||||
|
||||
Route::get('/customer-packages', 'premium_package_index')->name('customer_packages_list_show');
|
||||
|
||||
Route::get('/brands', 'all_brands')->name('brands.all');
|
||||
Route::get('/categories', 'all_categories')->name('categories.all');
|
||||
Route::get('/sellers', 'all_seller')->name('sellers');
|
||||
Route::get('/coupons', 'all_coupons')->name('coupons.all');
|
||||
Route::get('/inhouse', 'inhouse_products')->name('inhouse.all');
|
||||
|
||||
|
||||
// Policies
|
||||
Route::get('/seller-policy', 'sellerpolicy')->name('sellerpolicy');
|
||||
Route::get('/return-policy', 'returnpolicy')->name('returnpolicy');
|
||||
Route::get('/support-policy', 'supportpolicy')->name('supportpolicy');
|
||||
Route::get('/terms', 'terms')->name('terms');
|
||||
Route::get('/privacy-policy', 'privacypolicy')->name('privacypolicy');
|
||||
|
||||
Route::get('/track-your-order', 'trackOrder')->name('orders.track');
|
||||
});
|
||||
|
||||
// Language Switch
|
||||
Route::post('/language', [LanguageController::class, 'changeLanguage'])->name('language.change');
|
||||
|
||||
// Currency Switch
|
||||
Route::post('/currency', [CurrencyController::class, 'changeCurrency'])->name('currency.change');
|
||||
|
||||
|
||||
Route::get('/sitemap.xml', function () {
|
||||
return base_path('sitemap.xml');
|
||||
});
|
||||
|
||||
// Classified Product
|
||||
Route::controller(CustomerProductController::class)->group(function () {
|
||||
Route::get('/customer-products', 'customer_products_listing')->name('customer.products');
|
||||
Route::get('/customer-products?category={category_slug}', 'search')->name('customer_products.category');
|
||||
Route::get('/customer-products?city={city_id}', 'search')->name('customer_products.city');
|
||||
Route::get('/customer-products?q={search}', 'search')->name('customer_products.search');
|
||||
Route::get('/customer-product/{slug}', 'customer_product')->name('customer.product');
|
||||
});
|
||||
|
||||
// Search
|
||||
Route::controller(SearchController::class)->group(function () {
|
||||
Route::get('/search', 'index')->name('search');
|
||||
Route::get('/search?keyword={search}', 'index')->name('suggestion.search');
|
||||
Route::post('/ajax-search', 'ajax_search')->name('search.ajax');
|
||||
Route::get('/category/{category_slug}', 'listingByCategory')->name('products.category');
|
||||
Route::get('/brand/{brand_slug}', 'listingByBrand')->name('products.brand');
|
||||
});
|
||||
|
||||
// Cart
|
||||
Route::controller(CartController::class)->group(function () {
|
||||
Route::get('/cart', 'index')->name('cart');
|
||||
Route::post('/cart/show-cart-modal', 'showCartModal')->name('cart.showCartModal');
|
||||
Route::post('/cart/addtocart', 'addToCart')->name('cart.addToCart');
|
||||
Route::post('/cart/removeFromCart', 'removeFromCart')->name('cart.removeFromCart');
|
||||
Route::post('/cart/updateQuantity', 'updateQuantity')->name('cart.updateQuantity');
|
||||
});
|
||||
|
||||
//Paypal START
|
||||
Route::controller(PaypalController::class)->group(function () {
|
||||
Route::get('/paypal/payment/done', 'getDone')->name('payment.done');
|
||||
Route::get('/paypal/payment/cancel', 'getCancel')->name('payment.cancel');
|
||||
});
|
||||
//Mercadopago START
|
||||
Route::controller(MercadopagoController::class)->group(function () {
|
||||
Route::any('/mercadopago/payment/done', 'paymentstatus')->name('mercadopago.done');
|
||||
Route::any('/mercadopago/payment/cancel', 'callback')->name('mercadopago.cancel');
|
||||
});
|
||||
//Mercadopago
|
||||
|
||||
// SSLCOMMERZ Start
|
||||
Route::controller(SslcommerzController::class)->group(function () {
|
||||
Route::get('/sslcommerz/pay', 'index');
|
||||
Route::POST('/sslcommerz/success', 'success');
|
||||
Route::POST('/sslcommerz/fail', 'fail');
|
||||
Route::POST('/sslcommerz/cancel', 'cancel');
|
||||
Route::POST('/sslcommerz/ipn', 'ipn');
|
||||
});
|
||||
//SSLCOMMERZ END
|
||||
|
||||
//Stipe Start
|
||||
Route::controller(StripeController::class)->group(function () {
|
||||
Route::get('stripe', 'stripe');
|
||||
Route::post('/stripe/create-checkout-session', 'create_checkout_session')->name('stripe.get_token');
|
||||
Route::any('/stripe/payment/callback', 'callback')->name('stripe.callback');
|
||||
Route::get('/stripe/success', 'success')->name('stripe.success');
|
||||
Route::get('/stripe/cancel', 'cancel')->name('stripe.cancel');
|
||||
});
|
||||
//Stripe END
|
||||
|
||||
// Compare
|
||||
Route::controller(CompareController::class)->group(function () {
|
||||
Route::get('/compare', 'index')->name('compare');
|
||||
Route::get('/compare/reset', 'reset')->name('compare.reset');
|
||||
Route::post('/compare/addToCompare', 'addToCompare')->name('compare.addToCompare');
|
||||
Route::get('/compare/details/{id}', 'details')->name('compare.details');
|
||||
});
|
||||
|
||||
// Subscribe
|
||||
Route::resource('subscribers', SubscriberController::class);
|
||||
|
||||
Route::group(['middleware' => ['user', 'verified', 'unbanned']], function () {
|
||||
|
||||
Route::controller(HomeController::class)->group(function () {
|
||||
Route::get('/dashboard', 'dashboard')->name('dashboard')->middleware(['prevent-back-history']);
|
||||
Route::get('/profile', 'profile')->name('profile');
|
||||
Route::post('/new-user-verification', 'new_verify')->name('user.new.verify');
|
||||
Route::post('/new-user-email', 'update_email')->name('user.change.email');
|
||||
Route::post('/user/update-profile', 'userProfileUpdate')->name('user.profile.update');
|
||||
});
|
||||
|
||||
Route::get('/all-notifications', [NotificationController::class, 'index'])->name('all-notifications');
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['customer', 'verified', 'unbanned']], function () {
|
||||
|
||||
// Checkout Routs
|
||||
Route::group(['prefix' => 'checkout'], function () {
|
||||
Route::controller(CheckoutController::class)->group(function () {
|
||||
Route::get('/', 'get_shipping_info')->name('checkout.shipping_info');
|
||||
Route::any('/delivery_info', 'store_shipping_info')->name('checkout.store_shipping_infostore');
|
||||
Route::post('/payment_select', 'store_delivery_info')->name('checkout.store_delivery_info');
|
||||
Route::get('/order-confirmed', 'order_confirmed')->name('order_confirmed');
|
||||
Route::post('/payment', 'checkout')->name('payment.checkout');
|
||||
Route::post('/get_pick_up_points', 'get_pick_up_points')->name('shipping_info.get_pick_up_points');
|
||||
Route::get('/payment-select', 'get_payment_info')->name('checkout.payment_info');
|
||||
Route::post('/apply_coupon_code', 'apply_coupon_code')->name('checkout.apply_coupon_code');
|
||||
Route::post('/remove_coupon_code', 'remove_coupon_code')->name('checkout.remove_coupon_code');
|
||||
//Club point
|
||||
Route::post('/apply-club-point', 'apply_club_point')->name('checkout.apply_club_point');
|
||||
Route::post('/remove-club-point', 'remove_club_point')->name('checkout.remove_club_point');
|
||||
});
|
||||
});
|
||||
|
||||
// Purchase History
|
||||
Route::resource('purchase_history', PurchaseHistoryController::class);
|
||||
Route::controller(PurchaseHistoryController::class)->group(function () {
|
||||
Route::get('/purchase_history/details/{id}', 'purchase_history_details')->name('purchase_history.details');
|
||||
Route::get('/purchase_history/destroy/{id}', 'order_cancel')->name('purchase_history.destroy');
|
||||
Route::get('digital-purchase-history', 'digital_index')->name('digital_purchase_history.index');
|
||||
Route::get('/digital-products/download/{id}', 'download')->name('digital-products.download');
|
||||
});
|
||||
|
||||
// Wishlist
|
||||
Route::resource('wishlists', WishlistController::class);
|
||||
Route::post('/wishlists/remove', [WishlistController::class, 'remove'])->name('wishlists.remove');
|
||||
|
||||
//Follow
|
||||
Route::controller(FollowSellerController::class)->group(function () {
|
||||
Route::get('/followed-seller', 'index')->name('followed_seller');
|
||||
Route::get('/followed-seller/store', 'store')->name('followed_seller.store');
|
||||
Route::get('/followed-seller/remove', 'remove')->name('followed_seller.remove');
|
||||
});
|
||||
|
||||
// Wallet
|
||||
Route::controller(WalletController::class)->group(function () {
|
||||
Route::get('/wallet', 'index')->name('wallet.index');
|
||||
Route::post('/recharge', 'recharge')->name('wallet.recharge');
|
||||
});
|
||||
|
||||
// Support Ticket
|
||||
Route::resource('support_ticket', SupportTicketController::class);
|
||||
Route::post('support_ticket/reply', [SupportTicketController::class, 'seller_store'])->name('support_ticket.seller_store');
|
||||
|
||||
// Customer Package
|
||||
Route::post('/customer_packages/purchase', [CustomerPackageController::class, 'purchase_package'])->name('customer_packages.purchase');
|
||||
|
||||
// Customer Product
|
||||
Route::resource('customer_products', CustomerProductController::class);
|
||||
Route::controller(CustomerProductController::class)->group(function () {
|
||||
Route::get('/customer_products/{id}/edit', 'edit')->name('customer_products.edit');
|
||||
Route::post('/customer_products/published', 'updatePublished')->name('customer_products.published');
|
||||
Route::post('/customer_products/status', 'updateStatus')->name('customer_products.update.status');
|
||||
Route::get('/customer_products/destroy/{id}', 'destroy')->name('customer_products.destroy');
|
||||
});
|
||||
|
||||
// Product Review
|
||||
Route::post('/product_review_modal', [ReviewController::class, 'product_review_modal'])->name('product_review_modal');
|
||||
});
|
||||
|
||||
|
||||
Route::get('translation-check/{check}', [LanguageController::class, 'get_translation']);
|
||||
|
||||
|
||||
Route::group(['middleware' => ['auth']], function () {
|
||||
|
||||
Route::get('invoice/{order_id}', [InvoiceController::class, 'invoice_download'])->name('invoice.download');
|
||||
|
||||
// Reviews
|
||||
Route::resource('/reviews', ReviewController::class);
|
||||
|
||||
// Product Conversation
|
||||
Route::resource('conversations', ConversationController::class);
|
||||
Route::controller(ConversationController::class)->group(function () {
|
||||
Route::get('/conversations/destroy/{id}', 'destroy')->name('conversations.destroy');
|
||||
Route::post('conversations/refresh', 'refresh')->name('conversations.refresh');
|
||||
});
|
||||
|
||||
// Product Query
|
||||
Route::resource('product-queries', ProductQueryController::class);
|
||||
|
||||
Route::resource('messages', MessageController::class);
|
||||
|
||||
//Address
|
||||
Route::resource('addresses', AddressController::class);
|
||||
Route::controller(AddressController::class)->group(function () {
|
||||
Route::post('/get-states', 'getStates')->name('get-state');
|
||||
Route::post('/get-cities', 'getCities')->name('get-city');
|
||||
Route::post('/addresses/update/{id}', 'update')->name('addresses.update');
|
||||
Route::get('/addresses/destroy/{id}', 'destroy')->name('addresses.destroy');
|
||||
Route::get('/addresses/set_default/{id}', 'set_default')->name('addresses.set_default');
|
||||
});
|
||||
});
|
||||
|
||||
Route::resource('shops', ShopController::class);
|
||||
|
||||
Route::get('/instamojo/payment/pay-success', [InstamojoController::class, 'success'])->name('instamojo.success');
|
||||
|
||||
Route::post('rozer/payment/pay-success', [RazorpayController::class, 'payment'])->name('payment.rozer');
|
||||
|
||||
Route::get('/paystack/payment/callback', [PaystackController::class, 'handleGatewayCallback']);
|
||||
Route::get('/paystack/new-callback', [PaystackController::class, 'paystackNewCallback']);
|
||||
|
||||
Route::controller(VoguepayController::class)->group(function () {
|
||||
Route::get('/vogue-pay', 'showForm');
|
||||
Route::get('/vogue-pay/success/{id}', 'paymentSuccess');
|
||||
Route::get('/vogue-pay/failure/{id}', 'paymentFailure');
|
||||
});
|
||||
|
||||
|
||||
//Iyzico
|
||||
Route::any('/iyzico/payment/callback/{payment_type}/{amount?}/{payment_method?}/{combined_order_id?}/{customer_package_id?}/{seller_package_id?}', [IyzicoController::class, 'callback'])->name('iyzico.callback');
|
||||
|
||||
Route::get('/customer-products/admin', [IyzicoController::class, 'initPayment'])->name('profile.edit');
|
||||
|
||||
//payhere below
|
||||
Route::controller(PayhereController::class)->group(function () {
|
||||
Route::get('/payhere/checkout/testing', 'checkout_testing')->name('payhere.checkout.testing');
|
||||
Route::get('/payhere/wallet/testing', 'wallet_testing')->name('payhere.checkout.testing');
|
||||
Route::get('/payhere/customer_package/testing', 'customer_package_testing')->name('payhere.customer_package.testing');
|
||||
|
||||
Route::any('/payhere/checkout/notify', 'checkout_notify')->name('payhere.checkout.notify');
|
||||
Route::any('/payhere/checkout/return', 'checkout_return')->name('payhere.checkout.return');
|
||||
Route::any('/payhere/checkout/cancel', 'chekout_cancel')->name('payhere.checkout.cancel');
|
||||
|
||||
Route::any('/payhere/wallet/notify', 'wallet_notify')->name('payhere.wallet.notify');
|
||||
Route::any('/payhere/wallet/return', 'wallet_return')->name('payhere.wallet.return');
|
||||
Route::any('/payhere/wallet/cancel', 'wallet_cancel')->name('payhere.wallet.cancel');
|
||||
|
||||
Route::any('/payhere/seller_package_payment/notify', 'seller_package_notify')->name('payhere.seller_package_payment.notify');
|
||||
Route::any('/payhere/seller_package_payment/return', 'seller_package_payment_return')->name('payhere.seller_package_payment.return');
|
||||
Route::any('/payhere/seller_package_payment/cancel', 'seller_package_payment_cancel')->name('payhere.seller_package_payment.cancel');
|
||||
|
||||
Route::any('/payhere/customer_package_payment/notify', 'customer_package_notify')->name('payhere.customer_package_payment.notify');
|
||||
Route::any('/payhere/customer_package_payment/return', 'customer_package_return')->name('payhere.customer_package_payment.return');
|
||||
Route::any('/payhere/customer_package_payment/cancel', 'customer_package_cancel')->name('payhere.customer_package_payment.cancel');
|
||||
});
|
||||
|
||||
|
||||
//N-genius
|
||||
Route::controller(NgeniusController::class)->group(function () {
|
||||
Route::any('ngenius/cart_payment_callback', 'cart_payment_callback')->name('ngenius.cart_payment_callback');
|
||||
Route::any('ngenius/wallet_payment_callback', 'wallet_payment_callback')->name('ngenius.wallet_payment_callback');
|
||||
Route::any('ngenius/customer_package_payment_callback', 'customer_package_payment_callback')->name('ngenius.customer_package_payment_callback');
|
||||
Route::any('ngenius/seller_package_payment_callback', 'seller_package_payment_callback')->name('ngenius.seller_package_payment_callback');
|
||||
});
|
||||
|
||||
Route::controller(BkashController::class)->group(function () {
|
||||
Route::get('/bkash/create-payment', 'create_payment')->name('bkash.create_payment');
|
||||
Route::get('/bkash/callback', 'callback')->name('bkash.callback');
|
||||
Route::get('/bkash/success', 'success')->name('bkash.success');
|
||||
});
|
||||
|
||||
Route::get('/checkout-payment-detail', [StripeController::class, 'checkout_payment_detail']);
|
||||
|
||||
//Nagad
|
||||
Route::get('/nagad/callback', [NagadController::class, 'verify'])->name('nagad.callback');
|
||||
|
||||
//aamarpay
|
||||
Route::controller(AamarpayController::class)->group(function () {
|
||||
Route::post('/aamarpay/success', 'success')->name('aamarpay.success');
|
||||
Route::post('/aamarpay/fail', 'fail')->name('aamarpay.fail');
|
||||
});
|
||||
|
||||
//Authorize-Net-Payment
|
||||
Route::post('/dopay/online', [AuthorizenetController::class, 'handleonlinepay'])->name('dopay.online');
|
||||
Route::get('/authorizenet/cardtype', [AuthorizenetController::class, 'cardType'])->name('authorizenet.cardtype');
|
||||
|
||||
//payku
|
||||
Route::get('/payku/callback/{id}', [PaykuController::class, 'callback'])->name('payku.result');
|
||||
|
||||
//Blog Section
|
||||
Route::controller(BlogController::class)->group(function () {
|
||||
Route::get('/blog', 'all_blog')->name('blog');
|
||||
Route::get('/blog/{slug}', 'blog_details')->name('blog.details');
|
||||
});
|
||||
|
||||
Route::controller(PageController::class)->group(function () {
|
||||
//mobile app balnk page for webview
|
||||
Route::get('/mobile-page/{slug}', 'mobile_custom_page')->name('mobile.custom-pages');
|
||||
|
||||
//Custom page
|
||||
Route::get('/{slug}', 'show_custom_page')->name('custom-pages.show_custom_page');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* Route::post('/shops/create/store', 'ShopController@store')->middleware('cors'); */
|
||||
|
||||
|
||||
|
||||
42
routes/wholesale.php
Normal file
42
routes/wholesale.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| B2B Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register admin routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
use App\Http\Controllers\WholesaleProductController;
|
||||
|
||||
//Admin
|
||||
|
||||
Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
|
||||
Route::controller(WholesaleProductController::class)->group(function () {
|
||||
Route::get('/wholesale/all-products', 'all_wholesale_products')->name('wholesale_products.all');
|
||||
Route::get('/wholesale/inhouse-products', 'in_house_wholesale_products')->name('wholesale_products.in_house');
|
||||
Route::get('/wholesale/seller-products', 'seller_wholesale_products')->name('wholesale_products.seller');
|
||||
|
||||
Route::get('/wholesale-product/create', 'product_create_admin')->name('wholesale_product_create.admin');
|
||||
Route::post('/wholesale-product/store', 'product_store_admin')->name('wholesale_product_store.admin');
|
||||
Route::get('/wholesale-product/{id}/edit', 'product_edit_admin')->name('wholesale_product_edit.admin');
|
||||
Route::post('/wholesale-product/update/{id}', 'product_update_admin')->name('wholesale_product_update.admin');
|
||||
Route::get('/wholesale-product/destroy/{id}', 'product_destroy_admin')->name('wholesale_product_destroy.admin');
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'seller', 'middleware' => ['seller', 'verified', 'user']], function() {
|
||||
Route::controller(WholesaleProductController::class)->group(function () {
|
||||
Route::get('/wholesale-products', 'wholesale_products_list_seller')->name('seller.wholesale_products_list');
|
||||
|
||||
Route::get('/wholesale-product/create', 'product_create_seller')->name('wholesale_product_create.seller');
|
||||
Route::post('/wholesale-product/store', 'product_store_seller')->name('wholesale_product_store.seller');
|
||||
Route::get('/wholesale-products/{id}/edit', 'product_edit_seller')->name('wholesale_product_edit.seller');
|
||||
Route::post('/wholesale-product/update/{id}', 'product_update_seller')->name('wholesale_product_update.seller');
|
||||
Route::get('/wholesale-product/destroy/{id}', 'product_destroy_seller')->name('wholesale_product_destroy.seller');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user