TanchoToplineCargo/routes/route.client.php
2024-05-05 10:32:49 +05:45

160 lines
7.0 KiB
PHP

<?php
use App\Http\Controllers\WebsiteController;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Request;
define('SITEVARS', MPCMS::getSiteVars());
$MPCMS = new MPCMS();
$menuItems = MPCMS::getMenuItems('header-menu');
Route::get('/contact-us', [WebsiteController::class, 'index']);
Route::get('/industries-served', [WebsiteController::class, 'index']);
Route::get('/industries', [WebsiteController::class, 'index']);
Route::get('/', [WebsiteController::class, 'home'])->name('home');
// foreach ($menuItems as $menuItem) :
// $menuItem->alias=str_replace("-","_",$menuItem->alias);
// Route::get($menuItem->alias, [WebsiteController::class, 'index'])->name($menuItem->alias);
// foreach ($menuItem->children as $menu) :
// Route::get($menuItem->alias . '/' . $menu->alias, [WebsiteController::class, 'index'])->name($menuItem->alias . '.' . $menu->alias);
// endforeach;
// endforeach;
// $menuItems = MPCMS::getMenuItems('footer-menu-1');
// foreach ($menuItems as $menuItem) :
// Route::get($menuItem->alias, [WebsiteController::class, 'index'])->name($menuItem->alias);
// endforeach;
// foreach (MPCMS::getCountries() as $country) :
// Route::get('country/{alias}', function ($alias) {
// $country = MPCMS::getCountry($alias);
// $path = env("CLIENT_PATH");
// return view("client.$path.inside.country_single", ['country' => $country]);
// })->name('single_country');
// endforeach;
// foreach (MPCMS::getPaperDemands() as $PaperDemand) :
// Route::get('demand/{alias}', function ($alias) {
// $PaperDemand = MPCMS::getPaperDemand($alias);
// $path = env("CLIENT_PATH");
// return view("client.$path.inside.demand_single", ['demand' => $PaperDemand]);
// })->name('single_paper_demand');
// endforeach;
// foreach (MPCMS::getJobCategories() as $JobCategory) :
// Route::get('job-category/{alias}', function ($alias) {
// $JobCategory = MPCMS::getJobCategory($alias);
// $path = env("CLIENT_PATH");
// return view("client.$path.inside.job_category_single", ['job_category' => $JobCategory]);
// })->name('single_job_category');
// endforeach;
// foreach (MPCMS::getCompanies() as $Company) :
// Route::get('companies/{alias}', function ($alias) {
// $Company = MPCMS::getJobCategory($alias); $path = env("CLIENT_PATH");
// return view("client.$path.inside.company_single", ['company' => $Company]);
// })->name('single_company_link');
// endforeach;
// contact
Route::get('/contact-us', function () {
return view('client.' . env("CLIENT_PATH") . './inside/contact');
})->name('contact-us');
Route::get('why-niwida', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/whyniwida');
})->name("whyniwida");
Route::get('message-from-md', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/messagefrommd');
})->name('messagefrommd');
Route::get('about-niwida', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/aboutniwida');
})->name("aboutniwida");
Route::get('board-of-directors', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/boardofdirectors');
})->name("boardofdirectors");
Route::get('iso-certification', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/isocertification');
})->name("isocertification");
Route::get('license-permit', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/licensepermit');
})->name("licensepermit");
Route::get('message-from-director', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/messagefromdirector');
})->name("messagefromdirector");
Route::get('message-from-md', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/messagefrommd');
})->name("messagefrommd");
Route::get('message-from-overseas-director', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/messagefromoverseasdirector');
})->name("messagefromoverseasdirector");
Route::get('missionstatement', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/missionstatement');
})->name("missionstatement");
Route::get('organization-setup', function () {
return view('client.' . env("CLIENT_PATH") . '/companyprofile/organizationsetup');
})->name("organizationsetup");
Route::get('nepal-at-glance', function () {
return view('client.' . env("CLIENT_PATH") . '/inside/nepalatglance');
})->name("nepalatglance");
Route::get('our-client', function () {
return view('client.' . env("CLIENT_PATH") . '/inside/ourclient');
})->name('ourclient');
Route::get('get-in-touch', function () {
return view('client.' . env("CLIENT_PATH") . '/inside/getintouch');
})->name('getintouch');
Route::get('necessary-documents', function () {
return view('client.' . env("CLIENT_PATH") . '/recruitmentprocedures/necessarydocuments');
})->name('necessarydocuments');
Route::get('processing-procedure', function () {
return view('client.' . env("CLIENT_PATH") . '/recruitmentprocedures/processingprocedure');
})->name('processingprocedure');
Route::get('required-documents', function () {
return view('client.' . env("CLIENT_PATH") . '/recruitmentprocedures/requireddocuments');
})->name('requireddocuments');
Route::get('selection-procedure', function () {
return view('client.' . env("CLIENT_PATH") . '/recruitmentprocedures/selectionprocedure');
})->name('selectionprocedure');
Route::get('cruise-contact', function () {
return view('client.' . env("CLIENT_PATH") . '/cruise/cruisecontact');
})->name('cruisecontact');
Route::get('cruise-vacency-requirement', function () {
return view('client.' . env("CLIENT_PATH") . '/cruise/openingvacencyrecruiment');
})->name('openingvacencyrecruiment');
//Route::get('/deamands', [GeneralFormController::class, 'tables'])->name('demands');
// Route::get('/tables', [GeneralFormController::class, 'tables'])->name('form.tables');
//routes for top line
Route::get('/tracking',[WebsiteController::class,'tracking'])->name('tracking');
Route::prefix('about')->group(function () {
Route::get('/teams', [WebsiteController::class, 'teams']);
Route::get('/testimonials', [WebsiteController::class, 'testimonials']);
Route::get('/{alias}', [WebsiteController::class, 'showArticle'])->name('article.single');
});
//Top Cargo
Route::get('franchise', [WebsiteController::class, 'franchise'])->name('franchise');
Route::get('/franchise/{alias}', [WebsiteController::class, 'showFranchise'])->name('showFranchise');
Route::get('/service/{alias}', [WebsiteController::class, 'showService'])->name('showService');
Route::get('/news', [WebsiteController::class, 'news'])->name('news');
Route::get('news/{alias}', [WebsiteController::class, 'showNews'])->name('showNews');
Route::get('/contact-us', [WebsiteController::class, 'contact'])->name('contact');
Route::get('/request-a-quote', [WebsiteController::class, 'quote'])->name('quote');
Route::post('send-email', [WebsiteController::class, 'sendEmail'])->name('send-email');