Current File : /home/tradevaly/demo.tradevaly.com.bd/routes/web.php |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\RoleController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\CategoryController;
use App\Http\Controllers\CompanyCategoryController;
use App\Http\Controllers\CountryController;
use App\Http\Controllers\BrandController;
use App\Http\Controllers\CityController;
use App\Http\Controllers\CompanyController;
use App\Http\Controllers\DurationController;
use App\Http\Controllers\YearController;
use App\Http\Controllers\PackageController;
use App\Http\Controllers\PackageDetailController;
use App\Http\Controllers\UnitController;
use App\Http\Controllers\SizeController;
use App\Http\Controllers\ColorController;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\ProductPriceController;
use App\Http\Controllers\ProductInventoryController;
use App\Http\Controllers\RecommendController;
use App\Http\Controllers\WhyTradevalyController;
use App\Http\Controllers\CompanyWithCategoryMappingController;
use App\Http\Controllers\BuyingSellingController;
use App\Http\Controllers\PortalBuyingSellingController;
use App\Http\Controllers\RestaurantZoneController;
use App\Http\Controllers\RestaurantCategoryController;
use App\Http\Controllers\RestaurantDeliveryOptionController;
use App\Http\Controllers\RestaurantController;
use App\Http\Controllers\CompanyHighlightController;
use App\Http\Controllers\AboutController;
use App\Http\Controllers\ContactInfoController;
use App\Http\Controllers\ContactQueryController;
use App\Http\Controllers\PackageBuyingSellingController;
use App\Http\Controllers\PackageBuyingSellingDetailController;
use App\Http\Controllers\PackageBannerAdController;
use App\Http\Controllers\PackageBannerAdsDetailController;
use App\Http\Controllers\PackageBannerAdDetailController;
use App\Http\Controllers\PackageLeadController;
use App\Http\Controllers\PackageLeadDetailController;
use App\Http\Controllers\IndexSlideController;
use App\Http\Controllers\FeaturedAdvertiserController;
use App\Http\Controllers\ClientReviewController;
use App\Http\Controllers\FaqController;
use App\Http\Controllers\NewsCategoryController;
use App\Http\Controllers\LatestNewsController;
use App\Http\Controllers\AjaxController;
use App\Http\Controllers\BlogController;
use App\Http\Controllers\ProductInquiryController;
use App\Http\Controllers\HotSubCategoryCountController;
use App\Http\Controllers\NewsTagController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
// start portal
Route::get('/', [App\Http\Controllers\PortalController::class, 'index'])->name('portal');
Route::get('/product-company-category-wise-company', [App\Http\Controllers\PortalController::class, 'productCompanyCategoryWiseCompany'])->name('product-company-category-wise-company');
Route::get('/company-list-by-main-search', [App\Http\Controllers\PortalController::class, 'companyListByMainSearch'])->name('search-by-company');
/*Route::get('/search-by-company/{catID}', [App\Http\Controllers\PortalController::class, 'searchByCompany'])->name('search-by-company');
Route::post('/search-by-company', [App\Http\Controllers\PortalController::class, 'searchByCompany'])->name('search-by-company');*/
Route::get('/company-profile/{comID}', [App\Http\Controllers\PortalController::class, 'companyDetails'])->name('company-details');
Route::get('/shoroom-list/{comID}', [App\Http\Controllers\PortalController::class, 'showroomList']);
Route::get('/list-product/{comID}', [App\Http\Controllers\PortalController::class, 'listProduct']);
Route::get('/product-list-by-category/{catID}', [App\Http\Controllers\PortalController::class, 'productListByCategory'])->name('product-list-by-category');
Route::get('/product-thumble', [App\Http\Controllers\PortalController::class, 'productThumbleList'])->name('product-list-by-category');
Route::get('/company-list', [App\Http\Controllers\PortalController::class, 'companyList']);
Route::post('/company-list', [App\Http\Controllers\PortalController::class, 'companyList']);
Route::get('/company-list-by-products/{productName}', [App\Http\Controllers\PortalController::class, 'companyListByProducts']);
Route::post('/company-list-by-products', [App\Http\Controllers\PortalController::class, 'companyListByProducts']);
Route::get('/product-all-later-wise/{porductCatId}', [App\Http\Controllers\PortalController::class, 'productAllLaterWise'])->name('all-importer-letter-wise');
Route::get('/product-all-later-wise/{porductCatId}/{p}', [App\Http\Controllers\PortalController::class, 'productAllLaterWise'])->name('all-importer-letter-wise');
Route::get('/recommend-restaurants/', [App\Http\Controllers\PortalController::class, 'recommendRestaurants']);
Route::post('/recommend-restaurants', [App\Http\Controllers\PortalController::class, 'recommendRestaurants']);
Route::get('/restaurant-profile/{restaurantsId}', [App\Http\Controllers\PortalController::class, 'restaurantProfile']);
Route::get('/add-company', [App\Http\Controllers\PortalController::class, 'addCompany']);
Route::post('/add-company', [App\Http\Controllers\PortalController::class, 'saveCompany']);
Route::get('/about-us', [App\Http\Controllers\PortalController::class, 'aboutUs']);
Route::get('/contact-us', [App\Http\Controllers\PortalController::class, 'contactUs']);
Route::post('/send-public-contact', [App\Http\Controllers\AjaxController::class, 'sendPublicContactQuery']);
Route::get('/package', [App\Http\Controllers\PortalController::class, 'package']);
Route::get('/faq', [App\Http\Controllers\PortalController::class, 'faq']);
Route::get('/news', [App\Http\Controllers\PortalController::class, 'news']);
Route::get('/news-category/{slug}', [App\Http\Controllers\PortalController::class, 'newsCategoryWise']);
Route::get('/news-tag-wise/{slug}', [App\Http\Controllers\PortalController::class, 'newsTagWise']);
Route::resource('news-tags', NewsTagController::class);
Route::get('/news-tags-active-inactive/{id}', [NewsTagController::class, 'activeInactive']);
Route::get('/news-single/{slug}', [App\Http\Controllers\PortalController::class, 'singleNews']);
Route::get('/advetise', [App\Http\Controllers\PortalController::class, 'advetise']);
Route::get('/download-app', [App\Http\Controllers\PortalController::class, 'downloadApp']);
Route::get('/search-alphabetically/{alpha}', [App\Http\Controllers\PortalController::class, 'searchAlphabetically']);
Route::get('/banner-ads', [App\Http\Controllers\PortalController::class, 'bannerAds']);
Route::get('/buying-selling-package', [App\Http\Controllers\PortalController::class, 'buyingSellingPackage']);
Route::get('/career', [App\Http\Controllers\PortalController::class, 'career']);
Route::get('/checkout', [App\Http\Controllers\PortalController::class, 'checkout']);
Route::get('/customer-support', [App\Http\Controllers\PortalController::class, 'customerSupport']);
Route::get('/importer-all', [App\Http\Controllers\PortalController::class, 'importerAll']);
Route::get('/invoice', [App\Http\Controllers\PortalController::class, 'invoice']);
Route::get('/lead-package', [App\Http\Controllers\PortalController::class, 'leadPackage']);
Route::get('/lock-page', [App\Http\Controllers\PortalController::class, 'lockPage']);
Route::get('/my-account', [App\Http\Controllers\PortalController::class, 'myAccount']);
Route::get('/package-list', [App\Http\Controllers\PortalController::class, 'packageList']);
Route::get('/page-submit', [App\Http\Controllers\PortalController::class, 'pageSubmit']);
Route::get('/pricing-plan', [App\Http\Controllers\PortalController::class, 'pricingPlan']);
Route::get('/product-half-map-list', [App\Http\Controllers\PortalController::class, 'productHalfMapList']);
Route::get('/shopping-cart', [App\Http\Controllers\PortalController::class, 'shoppingCart']);
Route::get('/single-product/{productId}', [App\Http\Controllers\PortalController::class, 'singleProduct']);
Route::resource('product-inquiries', ProductInquiryController::class);
Route::get('/hot-product-category-list', [App\Http\Controllers\PortalController::class, 'hotSubCategoryList']);
Route::get('/popular-search', [App\Http\Controllers\PortalController::class, 'popularCompanySearch']);
// end portal
// start both
Route::get('/get-product-cat/{resultType}/{ids}', [AjaxController::class, 'getProductCat']);
Route::get('/get-news-cat/{resultType}/{ids}', [AjaxController::class, 'getNewsCat']);
Route::get('/buy-sell', [PortalBuyingSellingController::class, 'indexBuySell']);
Route::post('/buy-sell', [PortalBuyingSellingController::class, 'store']);
// end both
Auth::routes();
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::group(['middleware' => ['auth']], function() {
Route::resource('roles', RoleController::class);
Route::resource('users', UserController::class);
Route::post('products-basic',[ProductController::class, 'storeBasicPackageWiseCompanyProduct']);
Route::resource('categories', CategoryController::class);
Route::get('/active-inactive/{id}', [CategoryController::class, 'activeInactive']);
Route::resource('company-categories', CompanyCategoryController::class);
Route::get('/company-categories-active-inactive/{id}', [CompanyCategoryController::class, 'activeInactive']);
Route::resource('countries', CountryController::class);
Route::get('/country-active-inactive/{id}', [CountryController::class, 'activeInactive']);
Route::resource('brands', BrandController::class);
Route::get('/brand-active-inactive/{id}', [BrandController::class, 'activeInactive']);
Route::resource('cities', CityController::class);
Route::get('/city-active-inactive/{id}', [CityController::class, 'activeInactive']);
Route::resource('companies', CompanyController::class);
Route::get('companies-from-portal', [CompanyController::class, 'companiesFromPortal']);
Route::get('/companies-active-inactive/{id}', [CompanyController::class, 'activeInactive']);
Route::resource('durations', DurationController::class);
Route::get('/duration-active-inactive/{id}', [DurationController::class, 'activeInactive']);
Route::resource('years', YearController::class);
Route::get('/year-active-inactive/{id}', [YearController::class, 'activeInactive']);
Route::resource('packages', PackageController::class);
Route::get('/package-active-inactive/{id}', [PackageController::class, 'activeInactive']);
Route::resource('package-details', PackageDetailController::class);
Route::get('/package-details-active-inactive/{id}', [PackageDetailController::class, 'activeInactive']);
Route::resource('units', UnitController::class);
Route::get('/units-active-inactive/{id}', [UnitController::class, 'activeInactive']);
Route::resource('sizes', SizeController::class);
Route::get('/sizes-active-inactive/{id}', [SizeController::class, 'activeInactive']);
Route::resource('colors', ColorController::class);
Route::get('/colors-active-inactive/{id}', [ColorController::class, 'activeInactive']);
Route::post('products-search', [App\Http\Controllers\ProductController::class, 'index']);
Route::resource('products', ProductController::class);
Route::get('/products-active-inactive/{id}', [ProductController::class, 'activeInactive']);
Route::get('/add-product-price/{id}', [ProductController::class, 'addProductPrice']);
Route::resource('product-prices', ProductPriceController::class);
Route::resource('product-invetories', ProductInventoryController::class);
Route::resource('recommends', RecommendController::class);
Route::get('/recommends-active-inactive/{id}', [RecommendController::class, 'activeInactive']);
Route::resource('why-tradevalies', WhyTradevalyController::class);
Route::get('/why-tradevalies-active-inactive/{id}', [WhyTradevalyController::class, 'activeInactive']);
Route::resource('company-with-category-mappings', CompanyWithCategoryMappingController::class);
Route::get('/company-with-category-mappings-active-inactive/{id}', [CompanyWithCategoryMappingController::class, 'activeInactive']);
// ajax
Route::get('/get-city/{id}', [AjaxController::class, 'getCity']);
//Route::get('/get-product-cat/{resultType}/{ids}', [AjaxController::class, 'getProductCat']);
Route::get('/get-package-expire-date/{packageId}', [AjaxController::class, 'getPacakgeDuration']);
Route::get('/get-child-cat/{id}/{resultType}', [AjaxController::class, 'getCat']);
Route::get('/get-package-details-by-company-wise/{packageId}', [AjaxController::class, 'getPackageNameByCompanyWise']);
Route::resource('buyings', BuyingController::class);
Route::resource('/buying-sellings', BuyingSellingController::class);
Route::get('/buying-sellings-active-inactive/{id}', [BuyingSellingController::class, 'activeInactive']);
Route::resource('/restaurant-zones', RestaurantZoneController::class);
Route::get('/restaurant-zones-active-inactive/{id}', [RestaurantZoneController::class, 'activeInactive']);
Route::resource('/restaurant-categories', RestaurantCategoryController::class);
Route::get('/restaurant-categories-active-inactive/{id}', [RestaurantCategoryController::class, 'activeInactive']);
Route::resource('/restaurant-delivery-options', RestaurantDeliveryOptionController::class);
Route::get('/restaurant-delivery-options-active-inactive/{id}', [RestaurantDeliveryOptionController::class, 'activeInactive']);
Route::resource('/restaurants', RestaurantController::class);
Route::get('/restaurants-active-inactive/{id}', [RestaurantDeliveryOptionController::class, 'activeInactive']);
Route::resource('/company-highlights', CompanyHighlightController::class);
Route::get('/company-highlights-active-inactive/{id}', [CompanyHighlightController::class, 'activeInactive']);
Route::resource('/abouts', AboutController::class);
Route::get('/abouts-active-inactive/{id}', [AboutController::class, 'activeInactive']);
Route::resource('/contact-info', ContactInfoController::class);
Route::get('/contact-info-active-inactive/{id}', [ContactInfoController::class, 'activeInactive']);
Route::resource('/contact-queries', ContactQueryController::class);
Route::get('/contact-queries-active-inactive/{id}', [ContactQueryController::class, 'activeInactive']);
Route::resource('/package-buying-sellings', PackageBuyingSellingController::class);
Route::get('/package-buying-sellings-active-inactive/{id}', [PackageBuyingSellingController::class, 'activeInactive']);
Route::resource('package-buying-selling-details', PackageBuyingSellingDetailController::class);
Route::get('/package-buying-selling-details-active-inactive/{id}', [PackageBuyingSellingDetailController::class, 'activeInactive']);
Route::resource('package-banner-ads', PackageBannerAdController::class);
Route::get('/package-banner-ads-active-inactive/{id}', [PackageBannerAdController::class, 'activeInactive']);
Route::resource('package-banner-ad-details', PackageBannerAdDetailController::class);
Route::get('/package-banner-ad-details-active-inactive/{id}', [PackageBannerAdDetailController::class, 'activeInactive']);
Route::resource('package-leads', PackageLeadController::class);
Route::get('/package-leads-active-inactive/{id}', [PackageLeadController::class, 'activeInactive']);
Route::resource('package-lead-details', PackageLeadDetailController::class);
Route::get('/package-lead-details-active-inactive/{id}', [PackageLeadDetailController::class, 'activeInactive']);
Route::resource('index-slides', IndexSlideController::class);
Route::get('/index-slides-active-inactive/{id}', [IndexSlideController::class, 'activeInactive']);
Route::resource('featured-advertisers', FeaturedAdvertiserController::class);
Route::get('/featured-advertisers-active-inactive/{id}', [FeaturedAdvertiserController::class, 'activeInactive']);
Route::resource('client-reviews', ClientReviewController::class);
Route::get('/client-reviews-active-inactive/{id}', [ClientReviewController::class, 'activeInactive']);
Route::resource('faqs', FaqController::class);
Route::get('/faqs-active-inactive/{id}', [FaqController::class, 'activeInactive']);
Route::resource('news-categories', NewsCategoryController::class);
Route::get('/news-categories-active-inactive/{id}', [NewsCategoryController::class, 'activeInactive']);
Route::resource('latest-news', LatestNewsController::class);
Route::get('/latest-news-active-inactive/{id}', [LatestNewsController::class, 'activeInactive']);
Route::get('/blogs', [BlogController::class, 'getArticles']); // dummy for test
});