You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

312 lines
18 KiB

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Admin\SettingController;
use App\Http\Controllers\Admin\ServiceController;
use App\Http\Controllers\Admin\AboutUsController;
use App\Http\Controllers\Admin\PageController;
use App\Http\Controllers\ServiceController as FrontendServiceController;
use App\Http\Controllers\Admin\ReferralController as ReferralAdminController;
use App\Http\Controllers\RecruitmentController;
2 years ago
use App\Http\Controllers\BlogController;
use App\Http\Controllers\AboutUsController as FrontendAboutUsController;
2 years ago
use App\Http\Controllers\FaqController as FrontendFaqController;
use App\Http\Controllers\AppointmentController as FrontendAppointmentController;
use App\Http\Controllers\Admin\ServiceSectionController;
use App\Http\Controllers\Admin\AccomodationController;
use App\Http\Controllers\Admin\ContactUsController;
use App\Http\Controllers\Admin\EnrollmentController;
use App\Http\Controllers\Admin\GalleryController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\VisaController;
use App\Http\Controllers\ContactController;
use App\Http\Controllers\StudyAbroadController;
use App\Http\Controllers\Admin\HomeController as HomeAdminController;
use App\Http\Controllers\Admin\SliderController;
use App\Http\Controllers\Admin\PartnerController;
use App\Http\Controllers\NewsController;
2 years ago
use App\Http\Controllers\ImageUploadController;
use App\Http\Controllers\Admin\NewsAndUpdateController;
use App\Http\Controllers\Admin\SubOfficeController;
use App\Http\Controllers\Admin\DepartmentController;
use App\Http\Controllers\Admin\TestimonialController;
use App\Http\Controllers\Admin\ClientController;
use App\Http\Controllers\Admin\CareerController;
use App\Http\Controllers\Admin\NdisPricingController;
use App\Http\Controllers\Admin\ServiceFaqController;
use App\Http\Controllers\Admin\AddSectionController;
use App\Http\Controllers\Admin\SeoTitleController;
use App\Http\Controllers\Admin\VisaServiceController;
2 years ago
use App\Http\Controllers\Admin\FaqController;
use App\Http\Controllers\Admin\VisaServiceSectionController;
use App\Http\Controllers\Admin\TeamController;
2 years ago
use App\Http\Controllers\Admin\AppointmentController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
2 years ago
Route::get('/mycron', [HomeController::class,'runQueueJobs']);
Route::get('/seed', [HomeController::class,'runSeeder']);
Route::get('/', [HomeController::class,'index'])->name('home.index');
Route::get('login', [HomeAdminController::class,'getLogin'])->name('login');
Route::post('login', [HomeAdminController::class,'postLogin']);
Route::get('study-abroad', [StudyAbroadController::class,'study_abroad']);
Route::get('/education/{slug}', [StudyAbroadController::class,'details']);
Route::get('/visa/{slug}', [VisaController::class,'details']);
// Route::get('/study-abroad-detail', function () {
// return view('study-abroad-detail');
// });
// Route::get('visas', [VisaController::class,'index']);
Route::get('contact', [ContactController::class,'index']);
Route::post('contact', [ContactController::class,'post_contact']);
Route::get('about', [FrontendAboutUsController::class,'index']);
Route::get('appointment', [FrontendAppointmentController::class,'index']);
Route::post('appointments_by_date', [FrontendAppointmentController::class,'get_appointment_by_date']);
2 years ago
Route::post('appointment_submit', [FrontendAppointmentController::class,'form_submit']);
2 years ago
// Route::get('/about', function () {
// return view('about');
// });
2 years ago
Route::get('blogs', [BlogController::class,'index']);
Route::get('blog/{slug}', [BlogController::class,'blog_detail']);
2 years ago
Route::get('faqs', [FrontendFaqController::class,'index']);
Route::post('image-upload', [ImageUploadController::class, 'storeImage'])->name('image.upload'); //upload image in CkEditor
2 years ago
Route::post('/subscribe', [HomeController::class, 'subscribe']);
Route::group(['middleware'=>['auth']],function (){
//routes for admin
Route::group(['prefix'=>'admin'],function (){
Route::get('logout', [HomeAdminController::class,'getLogout']);
Route::get('/index', [HomeAdminController::class,'indexAdmin']);
Route::get('/change_password', [HomeAdminController::class,'change_password']);
Route::post('/change_password', [HomeAdminController::class,'update_password']);
Route::get('settings',[SettingController::class,'index']);
Route::get('settings/create',[SettingController::class,'create']);
Route::post('settings',[SettingController::class,'store']);
Route::get('settings/{id}',[SettingController::class,'show']);
Route::get('settings/{id}/edit',[SettingController::class,'edit']);
Route::post('settings/{id}',[SettingController::class,'update']);
Route::get('settings/{id}/delete',[SettingController::class,'delete']);
// Route::get('service',[ServiceController::class,'index']);
// Route::get('service/create',[ServiceController::class,'create']);
// Route::post('service/store',[ServiceController::class,'store']);
// Route::get('service/{id}/edit',[ServiceController::class,'edit']);
// Route::post('service/{id}/update',[ServiceController::class,'update']);
// Route::get('service/{id}/delete',[ServiceController::class,'delete']);
Route::get('sliders',[SliderController::class,'index']);
Route::get('sliders/create',[SliderController::class,'create']);
Route::post('sliders',[SliderController::class,'store']);
Route::get('sliders/{id}/view',[SliderController::class,'show']);
Route::get('sliders/{id}/edit',[SliderController::class,'edit']);
Route::post('sliders/{id}',[SliderController::class,'update']);
Route::get('sliders/{id}/delete',[SliderController::class,'destroy']);
Route::resource('about_us',AboutUsController::class);
Route::get('pages',[PageController::class,'index']);
Route::get('pages/create',[PageController::class,'create']);
Route::post('pages',[PageController::class,'store']);
Route::get('pages/{id}/view',[PageController::class,'show']);
Route::get('pages/{id}/edit',[PageController::class,'edit']);
Route::post('pages/{id}',[PageController::class,'update']);
Route::get('pages/{id}/delete',[PageController::class,'destroy']);
2 years ago
Route::get('blogs',[NewsAndUpdateController::class,'index']);
Route::get('blogs/create',[NewsAndUpdateController::class,'create']);
Route::post('blogs',[NewsAndUpdateController::class,'store']);
Route::get('blogs/{id}',[NewsAndUpdateController::class,'show']);
Route::get('blogs/{id}/edit',[NewsAndUpdateController::class,'edit']);
Route::post('blogs/{id}',[NewsAndUpdateController::class,'update']);
Route::get('blogs/delete/{id}',[NewsAndUpdateController::class,'delete']);
// Route::get('blog_point/{blog_point_id}',[BlogController::class,'blog_point']);
Route::get('galleries',[GalleryController::class,'index']);
Route::get('galleries/create',[GalleryController::class,'create']);
Route::post('galleries',[GalleryController::class,'store']);
Route::get('galleries/{id}',[GalleryController::class,'show']);
Route::get('galleries/{id}/edit',[GalleryController::class,'edit']);
Route::post('galleries/{id}',[GalleryController::class,'update']);
Route::get('galleries/delete/{id}',[GalleryController::class,'delete']);
Route::get('referrals',[ReferralAdminController::class,'index']);
Route::get('referrals/create',[ReferralAdminController::class,'create']);
Route::post('referrals/store',[ReferralAdminController::class,'store']);
Route::get('referrals/{id}/view',[ReferralAdminController::class,'show']);
Route::post('referrals/{id}/update',[ReferralAdminController::class,'update']);
Route::get('referrals/{id}/delete',[ReferralAdminController::class,'delete']);
Route::get('ndis_pricing',[NdisPricingController::class,'index']);
Route::get('ndis_pricing/create',[NdisPricingController::class,'create']);
Route::post('ndis_pricing',[NdisPricingController::class,'store']);
Route::get('ndis_pricing/{id}/view',[NdisPricingController::class,'show']);
Route::get('ndis_pricing/{id}/edit',[NdisPricingController::class,'edit']);
Route::post('ndis_pricing/{id}',[NdisPricingController::class,'update']);
Route::get('ndis_pricing/{id}/delete',[NdisPricingController::class,'destroy']);
Route::get('sub_offices',[SubOfficeController::class,'index']);
Route::get('sub_offices/create',[SubOfficeController::class,'create']);
Route::post('sub_offices',[SubOfficeController::class,'store']);
Route::get('sub_offices/{id}/edit',[SubOfficeController::class,'edit']);
Route::post('sub_offices/{id}',[SubOfficeController::class,'update']);
Route::get('sub_offices_delete/{id}',[SubOfficeController::class,'delete']);
Route::get('departments',[DepartmentController::class,'index']);
Route::get('departments/create',[DepartmentController::class,'create']);
Route::post('departments/store',[DepartmentController::class,'store']);
Route::get('departments/{id}/edit',[DepartmentController::class,'edit']);
Route::post('departments/{id}',[DepartmentController::class,'update']);
Route::get('departments/{id}/delete',[DepartmentController::class,'delete']);
Route::get('services',[ServiceController::class,'index']);
Route::get('services/create',[ServiceController::class,'create']);
Route::post('service',[ServiceController::class,'store']);
Route::get('services/{id}/edit',[ServiceController::class,'edit']);
Route::get('services/{id}/view',[ServiceController::class,'show']);
Route::post('services/{id}',[ServiceController::class,'update']);
Route::get('services/{id}/delete',[ServiceController::class,'delete']);
2 years ago
// Route::get('service_point/{service_point_id}',[ServiceController::class,'service_point']);
Route::get('services/{id}/sections',[ServiceSectionController::class,'index']);
Route::get('services/{id}/section/create',[ServiceSectionController::class,'create']);
Route::post('service/{id}/section',[ServiceSectionController::class,'store']);
Route::get('services/{id}/section/{secId}/edit',[ServiceSectionController::class,'edit']);
Route::get('services/{id}/section/{secId}/view',[ServiceSectionController::class,'show']);
Route::post('services/{id}/section/{secId}',[ServiceSectionController::class,'update']);
Route::get('services/{id}/section/delete',[ServiceSectionController::class,'delete']);
Route::get('service_point/{service_point_id}',[ServiceSectionController::class,'service_point']);
Route::get('visa_services',[VisaServiceController::class,'index']);
Route::get('visa_services/create',[VisaServiceController::class,'create']);
Route::post('visa_service',[VisaServiceController::class,'store']);
Route::get('visa_services/{id}/edit',[VisaServiceController::class,'edit']);
Route::get('visa_services/{id}/view',[VisaServiceController::class,'show']);
Route::post('visa_services/{id}',[VisaServiceController::class,'update']);
Route::get('visa_services/{id}/delete',[VisaServiceController::class,'delete']);
2 years ago
// Route::get('service_section_point/{service_point_id}',[VisaServiceController::class,'service_point']);
Route::get('visa_services/{id}/sections',[VisaServiceSectionController::class,'index']);
Route::get('visa_services/{id}/section/create',[VisaServiceSectionController::class,'create']);
Route::post('visa_service/{id}/section',[VisaServiceSectionController::class,'store']);
Route::get('visa_services/{id}/section/{secId}/edit',[VisaServiceSectionController::class,'edit']);
Route::get('visa_services/{id}/section/{secId}/view',[VisaServiceSectionController::class,'show']);
Route::post('visa_services/{id}/section/{secId}',[VisaServiceSectionController::class,'update']);
Route::get('visa_services/{id}/section/delete',[VisaServiceSectionController::class,'delete']);
2 years ago
// Route::get('service_point/{service_point_id}',[VisaServiceSectionController::class,'service_point']);
Route::get('testimonials',[TestimonialController::class,'index']);
Route::get('testimonials/create',[TestimonialController::class,'create']);
Route::post('testimonials',[TestimonialController::class,'store']);
Route::get('testimonials/{id}/edit',[TestimonialController::class,'edit']);
Route::post('testimonials/{id}',[TestimonialController::class,'update']);
Route::get('testimonials/{id}',[TestimonialController::class,'show']);
Route::get('testimonials/{id}/delete',[TestimonialController::class,'delete']);
Route::get('clients',[ClientController::class,'index']);
Route::get('clients/create',[ClientController::class,'create']);
Route::post('clients',[ClientController::class,'store']);
Route::get('clients/{id}/edit',[ClientController::class,'edit']);
Route::post('clients/{id}',[ClientController::class,'update']);
2 years ago
Route::get('faqs',[FaqController::class,'index']);
Route::get('faqs/create',[FaqController::class,'create']);
Route::post('faqs',[FaqController::class,'store']);
Route::get('faqs/{id}/edit',[FaqController::class,'edit']);
Route::post('faqs/{id}',[FaqController::class,'update']);
Route::get('faqs/{id}',[FaqController::class,'show']);
Route::get('add-sections',[AddSectionController::class,'index']);
Route::get('add-sections/create',[AddSectionController::class,'create']);
Route::post('add-sections',[AddSectionController::class,'store']);
Route::get('add-sections/{id}/edit',[AddSectionController::class,'edit']);
Route::post('add-sections/{id}',[AddSectionController::class,'update']);
Route::get('add-sections/{id}/delete',[AddSectionController::class,'delete']);
Route::get('seo_titles',[SeoTitleController::class,'index']);
Route::get('seo_titles/create',[SeoTitleController::class,'create']);
Route::post('seo_titles',[SeoTitleController::class,'store']);
Route::get('seo_titles/{id}/edit',[SeoTitleController::class,'edit']);
Route::post('seo_titles/{id}',[SeoTitleController::class,'update']);
Route::get('seo_titles_delete/{id}',[SeoTitleController::class,'delete']);
Route::get('contacts',[ContactUsController::class,'index']);
Route::get('contacts/{id}/view',[ContactUsController::class,'show']);
Route::get('enrollments',[EnrollmentController::class,'index']);
Route::get('enrollments/{id}/view',[EnrollmentController::class,'show']);
Route::get('teams',[TeamController::class,'index']);
Route::get('teams/create',[TeamController::class,'create']);
Route::post('teams',[TeamController::class,'store']);
Route::get('teams/{id}/edit',[TeamController::class,'edit']);
Route::post('teams/{id}',[TeamController::class,'update']);
Route::get('careers',[CareerController::class,'index']);
Route::get('careers/create',[CareerController::class,'create']);
Route::post('careers',[CareerController::class,'store']);
Route::get('careers/{id}/edit',[CareerController::class,'edit']);
Route::post('careers/{id}',[CareerController::class,'update']);
Route::get('careers/{id}',[CareerController::class,'show']);
2 years ago
Route::get('appointments',[AppointmentController::class,'index']);
Route::get('appointments/create',[AppointmentController::class,'create']);
Route::post('appointments',[AppointmentController::class,'store']);
Route::get('appointments/{id}/edit',[AppointmentController::class,'edit']);
Route::post('appointments/{id}',[AppointmentController::class,'update']);
Route::get('appointments/{id}/view',[AppointmentController::class,'show']);
Route::get('appointments/{id}/delete',[AppointmentController::class,'destroy']);
Route::get('accomodations',[AccomodationController::class,'index']);
Route::get('accomodations/create',[AccomodationController::class,'create']);
Route::post('accomodations',[AccomodationController::class,'store']);
Route::get('accomodations/{id}/edit',[AccomodationController::class,'edit']);
Route::post('accomodations/{id}',[AccomodationController::class,'update']);
Route::get('accomodations/{id}',[AccomodationController::class,'show']);
Route::get('accomodations/{id}/delete',[AccomodationController::class,'delete']);
Route::get('accomodations/points_remove/{id}',[AccomodationController::class,'points_remove']);
Route::get('accomodations/information_points_remove/{id}',[AccomodationController::class,'information_points_remove']);
Route::get('accomodations/slider_points_remove/{id}',[AccomodationController::class,'slider_points_remove']);
});
2 years ago
});
2 years ago
Route::get('/services', function () {
return view('services');
});
Route::get('/career_counselling', function () {
return view('career_counselling');
});
Route::get('/insurance', function () {
return view('insurance');
});
Route::get('/enquiry', function () {
return view('enquiry-form');
});
2 years ago
// Route::get('/visa', function () {
// return view('visa');
// });