@ -43,6 +43,7 @@ use App\Models\Country;
use App\Http\Controllers\Admin\TeamController;
use App\Http\Controllers\Admin\TeamController;
use App\Http\Controllers\Admin\AppointmentController;
use App\Http\Controllers\Admin\AppointmentController;
use App\Http\Controllers\EnquiryController;
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
@ -54,53 +55,54 @@ use App\Http\Controllers\Admin\AppointmentController;
| contains the "web" middleware group. Now create something great!
| contains the "web" middleware group. Now create something great!
|
|
*/
*/
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::get('/mycron', [HomeController::class, 'runQueueJobs']);
Route::post('login', [HomeAdminController::class,'postLogin']);
Route::get('/seed', [HomeController::class, 'runSeeder']);
Route::get('/', [HomeController::class, 'index'])->name('home.index');
Route::get('study-abroad', [StudyAbroadController::class,'study_abroad']);
Route::get('login', [HomeAdminController::class, 'getLogin'])->name('login');
Route::get('/education/{slug}', [StudyAbroadController::class,'details']);
Route::post('login', [HomeAdminController::class, 'postLogin']);
Route::get('/visa/{slug}', [VisaController::class,'details']);
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 () {
// Route::get('/study-abroad-detail', function () {
// return view('study-abroad-detail');
// return view('study-abroad-detail');
// });
// });
// Route::get('visas', [VisaController::class,'index']);
// Route::get('visas', [VisaController::class,'index']);
Route::get('contact', [ContactController::class,'index']);
Route::get('contact', [ContactController::class, 'index']);
Route::post('contact', [ContactController::class,'post_contact']);
Route::post('contact', [ContactController::class, 'post_contact']);
Route::get('about', [FrontendAboutUsController::class,'index']);
Route::get('about', [FrontendAboutUsController::class, 'index']);
Route::get('appointment', [FrontendAppointmentController::class,'index']);
Route::get('appointment', [FrontendAppointmentController::class, 'index']);
Route::post('appointments_by_date', [FrontendAppointmentController::class,'get_appointment_by_date']);
Route::post('appointments_by_date', [FrontendAppointmentController::class, 'get_appointment_by_date']);
Route::post('appointment_submit', [FrontendAppointmentController::class,'form_submit']);
Route::post('appointment_submit', [FrontendAppointmentController::class, 'form_submit']);
// Route::get('/about', function () {
// Route::get('/about', function () {
// return view('about');
// return view('about');
// });
// });
Route::get('blogs', [BlogController::class,'index']);
Route::get('blogs', [BlogController::class, 'index']);
Route::get('blog/{slug}', [BlogController::class,'blog_detail']);
Route::get('blog/{slug}', [BlogController::class, 'blog_detail']);
Route::get('faqs', [FrontendFaqController::class,'index']);
Route::get('faqs', [FrontendFaqController::class, 'index']);
Route::post('image-upload', [ImageUploadController::class, 'storeImage'])->name('image.upload'); //upload image in CkEditor
Route::post('image-upload', [ImageUploadController::class, 'storeImage'])->name('image.upload'); //upload image in CkEditor
Route::post('/subscribe', [HomeController::class, 'subscribe']);
Route::post('/subscribe', [HomeController::class, 'subscribe']);
Route::group(['middleware'=>['auth']],function (){
Route::group(['middleware' => ['auth']], function () {
//routes for admin
//routes for admin
Route::group(['prefix'=>'admin'],function (){
Route::group(['prefix' => 'admin'], function () {
Route::get('logout', [HomeAdminController::class,'getLogout']);
Route::get('logout', [HomeAdminController::class, 'getLogout']);
Route::get('/index', [HomeAdminController::class,'indexAdmin']);
Route::get('/index', [HomeAdminController::class, 'indexAdmin']);
Route::get('/change_password', [HomeAdminController::class,'change_password']);
Route::get('/change_password', [HomeAdminController::class, 'change_password']);
Route::post('/change_password', [HomeAdminController::class,'update_password']);
Route::post('/change_password', [HomeAdminController::class, 'update_password']);
Route::get('settings',[SettingController::class,'index']);
Route::get('settings', [SettingController::class, 'index']);
Route::get('settings/create',[SettingController::class,'create']);
Route::get('settings/create', [SettingController::class, 'create']);
Route::post('settings',[SettingController::class,'store']);
Route::post('settings', [SettingController::class, 'store']);
Route::get('settings/{id}',[SettingController::class,'show']);
Route::get('settings/{id}', [SettingController::class, 'show']);
Route::get('settings/{id}/edit',[SettingController::class,'edit']);
Route::get('settings/{id}/edit', [SettingController::class, 'edit']);
Route::post('settings/{id}',[SettingController::class,'update']);
Route::post('settings/{id}', [SettingController::class, 'update']);
Route::get('settings/{id}/delete',[SettingController::class,'delete']);
Route::get('settings/{id}/delete', [SettingController::class, 'delete']);
// Route::get('service',[ServiceController::class,'index']);
// Route::get('service',[ServiceController::class,'index']);
@ -110,188 +112,184 @@ Route::group(['middleware'=>['auth']],function (){
// Route::post('service/{id}/update',[ServiceController::class,'update']);
// Route::post('service/{id}/update',[ServiceController::class,'update']);
// Route::get('service/{id}/delete',[ServiceController::class,'delete']);
// Route::get('service/{id}/delete',[ServiceController::class,'delete']);
Route::get('sliders',[SliderController::class,'index']);
Route::get('sliders', [SliderController::class, 'index']);
Route::get('sliders/create',[SliderController::class,'create']);
Route::get('sliders/create', [SliderController::class, 'create']);
Route::post('sliders',[SliderController::class,'store']);
Route::post('sliders', [SliderController::class, 'store']);
Route::get('sliders/{id}/view',[SliderController::class,'show']);
Route::get('sliders/{id}/view', [SliderController::class, 'show']);
Route::get('sliders/{id}/edit',[SliderController::class,'edit']);
Route::get('sliders/{id}/edit', [SliderController::class, 'edit']);
Route::post('sliders/{id}',[SliderController::class,'update']);
Route::post('sliders/{id}', [SliderController::class, 'update']);
Route::get('sliders/{id}/delete',[SliderController::class,'destroy']);
Route::get('sliders/{id}/delete', [SliderController::class, 'destroy']);
Route::resource('about_us',AboutUsController::class);
Route::resource('about_us', AboutUsController::class);
Route::get('pages',[PageController::class,'index']);
Route::get('pages', [PageController::class, 'index']);
Route::get('pages/create',[PageController::class,'create']);
Route::get('pages/create', [PageController::class, 'create']);
Route::post('pages',[PageController::class,'store']);
Route::post('pages', [PageController::class, 'store']);
Route::get('pages/{id}/view',[PageController::class,'show']);
Route::get('pages/{id}/view', [PageController::class, 'show']);
Route::get('pages/{id}/edit',[PageController::class,'edit']);
Route::get('pages/{id}/edit', [PageController::class, 'edit']);
Route::post('pages/{id}',[PageController::class,'update']);
Route::post('pages/{id}', [PageController::class, 'update']);
Route::get('pages/{id}/delete',[PageController::class,'destroy']);
Route::get('pages/{id}/delete', [PageController::class, 'destroy']);
Route::get('blogs',[NewsAndUpdateController::class,'index']);
Route::get('blogs', [NewsAndUpdateController::class, 'index']);
Route::get('blogs/create',[NewsAndUpdateController::class,'create']);
Route::get('blogs/create', [NewsAndUpdateController::class, 'create']);
Route::post('blogs',[NewsAndUpdateController::class,'store']);
Route::post('blogs', [NewsAndUpdateController::class, 'store']);
Route::get('blogs/{id}',[NewsAndUpdateController::class,'show']);
Route::get('blogs/{id}', [NewsAndUpdateController::class, 'show']);
Route::get('blogs/{id}/edit',[NewsAndUpdateController::class,'edit']);
Route::get('blogs/{id}/edit', [NewsAndUpdateController::class, 'edit']);
Route::post('blogs/{id}',[NewsAndUpdateController::class,'update']);
Route::post('blogs/{id}', [NewsAndUpdateController::class, 'update']);
Route::get('blogs/delete/{id}',[NewsAndUpdateController::class,'delete']);
Route::get('blogs/delete/{id}', [NewsAndUpdateController::class, 'delete']);
// Route::get('blog_point/{blog_point_id}',[BlogController::class,'blog_point']);
// Route::get('blog_point/{blog_point_id}',[BlogController::class,'blog_point']);
Route::get('galleries',[GalleryController::class,'index']);
Route::get('galleries', [GalleryController::class, 'index']);
Route::get('galleries/create',[GalleryController::class,'create']);
Route::get('galleries/create', [GalleryController::class, 'create']);
Route::post('galleries',[GalleryController::class,'store']);
Route::post('galleries', [GalleryController::class, 'store']);
Route::get('galleries/{id}',[GalleryController::class,'show']);
Route::get('galleries/{id}', [GalleryController::class, 'show']);
Route::get('galleries/{id}/edit',[GalleryController::class,'edit']);
Route::get('galleries/{id}/edit', [GalleryController::class, 'edit']);
Route::post('galleries/{id}',[GalleryController::class,'update']);
Route::post('galleries/{id}', [GalleryController::class, 'update']);
Route::get('galleries/delete/{id}',[GalleryController::class,'delete']);
Route::get('galleries/delete/{id}', [GalleryController::class, 'delete']);
Route::get('referrals',[ReferralAdminController::class,'index']);
Route::get('referrals', [ReferralAdminController::class, 'index']);
Route::get('referrals/create',[ReferralAdminController::class,'create']);
Route::get('referrals/create', [ReferralAdminController::class, 'create']);
Route::post('referrals/store',[ReferralAdminController::class,'store']);
Route::post('referrals/store', [ReferralAdminController::class, 'store']);
Route::get('referrals/{id}/view',[ReferralAdminController::class,'show']);
Route::get('referrals/{id}/view', [ReferralAdminController::class, 'show']);
Route::post('referrals/{id}/update',[ReferralAdminController::class,'update']);
Route::post('referrals/{id}/update', [ReferralAdminController::class, 'update']);
Route::get('referrals/{id}/delete',[ReferralAdminController::class,'delete']);
Route::get('referrals/{id}/delete', [ReferralAdminController::class, 'delete']);
Route::get('ndis_pricing',[NdisPricingController::class,'index']);
Route::get('ndis_pricing', [NdisPricingController::class, 'index']);
Route::get('ndis_pricing/create',[NdisPricingController::class,'create']);
Route::get('ndis_pricing/create', [NdisPricingController::class, 'create']);
Route::post('ndis_pricing',[NdisPricingController::class,'store']);
Route::post('ndis_pricing', [NdisPricingController::class, 'store']);
Route::get('ndis_pricing/{id}/view',[NdisPricingController::class,'show']);
Route::get('ndis_pricing/{id}/view', [NdisPricingController::class, 'show']);
Route::get('ndis_pricing/{id}/edit',[NdisPricingController::class,'edit']);
Route::get('ndis_pricing/{id}/edit', [NdisPricingController::class, 'edit']);
Route::post('ndis_pricing/{id}',[NdisPricingController::class,'update']);
Route::post('ndis_pricing/{id}', [NdisPricingController::class, 'update']);
Route::get('ndis_pricing/{id}/delete',[NdisPricingController::class,'destroy']);
Route::get('ndis_pricing/{id}/delete', [NdisPricingController::class, 'destroy']);
Route::get('sub_offices',[SubOfficeController::class,'index']);
Route::get('sub_offices', [SubOfficeController::class, 'index']);
Route::get('sub_offices/create',[SubOfficeController::class,'create']);
Route::get('sub_offices/create', [SubOfficeController::class, 'create']);
Route::post('sub_offices',[SubOfficeController::class,'store']);
Route::post('sub_offices', [SubOfficeController::class, 'store']);
Route::get('sub_offices/{id}/edit',[SubOfficeController::class,'edit']);
Route::get('sub_offices/{id}/edit', [SubOfficeController::class, 'edit']);
Route::post('sub_offices/{id}',[SubOfficeController::class,'update']);
Route::post('sub_offices/{id}', [SubOfficeController::class, 'update']);
Route::get('sub_offices_delete/{id}',[SubOfficeController::class,'delete']);
Route::get('sub_offices_delete/{id}', [SubOfficeController::class, 'delete']);
Route::get('departments',[DepartmentController::class,'index']);
Route::get('departments', [DepartmentController::class, 'index']);
Route::get('departments/create',[DepartmentController::class,'create']);
Route::get('departments/create', [DepartmentController::class, 'create']);
Route::post('departments/store',[DepartmentController::class,'store']);
Route::post('departments/store', [DepartmentController::class, 'store']);
Route::get('departments/{id}/edit',[DepartmentController::class,'edit']);
Route::get('departments/{id}/edit', [DepartmentController::class, 'edit']);
Route::post('departments/{id}',[DepartmentController::class,'update']);
Route::post('departments/{id}', [DepartmentController::class, 'update']);
Route::get('departments/{id}/delete',[DepartmentController::class,'delete']);
Route::get('departments/{id}/delete', [DepartmentController::class, 'delete']);
Route::get('services',[ServiceController::class,'index']);
Route::get('services', [ServiceController::class, 'index']);
Route::get('services/create',[ServiceController::class,'create']);
Route::get('services/create', [ServiceController::class, 'create']);
Route::post('service',[ServiceController::class,'store']);
Route::post('service', [ServiceController::class, 'store']);
Route::get('services/{id}/edit',[ServiceController::class,'edit']);
Route::get('services/{id}/edit', [ServiceController::class, 'edit']);
Route::get('services/{id}/view',[ServiceController::class,'show']);
Route::get('services/{id}/view', [ServiceController::class, 'show']);
Route::post('services/{id}',[ServiceController::class,'update']);
Route::post('services/{id}', [ServiceController::class, 'update']);
Route::get('services/{id}/delete',[ServiceController::class,'delete']);
Route::get('services/{id}/delete', [ServiceController::class, 'delete']);
// Route::get('service_point/{service_point_id}',[ServiceController::class,'service_point']);
// Route::get('service_point/{service_point_id}',[ServiceController::class,'service_point']);
Route::get('services/{id}/sections',[ServiceSectionController::class,'index']);
Route::get('services/{id}/sections', [ServiceSectionController::class, 'index']);
Route::get('services/{id}/section/create',[ServiceSectionController::class,'create']);
Route::get('services/{id}/section/create', [ServiceSectionController::class, 'create']);
Route::post('service/{id}/section',[ServiceSectionController::class,'store']);
Route::post('service/{id}/section', [ServiceSectionController::class, 'store']);
Route::get('services/{id}/section/{secId}/edit',[ServiceSectionController::class,'edit']);
Route::get('services/{id}/section/{secId}/edit', [ServiceSectionController::class, 'edit']);
Route::get('services/{id}/section/{secId}/view',[ServiceSectionController::class,'show']);
Route::get('services/{id}/section/{secId}/view', [ServiceSectionController::class, 'show']);
Route::post('services/{id}/section/{secId}',[ServiceSectionController::class,'update']);
Route::post('services/{id}/section/{secId}', [ServiceSectionController::class, 'update']);
Route::get('services/{id}/section/delete',[ServiceSectionController::class,'delete']);
Route::get('services/{id}/section/delete', [ServiceSectionController::class, 'delete']);
Route::get('service_point/{service_point_id}',[ServiceSectionController::class,'service_point']);
Route::get('service_point/{service_point_id}', [ServiceSectionController::class, 'service_point']);
Route::get('visa_services',[VisaServiceController::class,'index']);
Route::get('visa_services', [VisaServiceController::class, 'index']);
Route::get('visa_services/create',[VisaServiceController::class,'create']);
Route::get('visa_services/create', [VisaServiceController::class, 'create']);
Route::post('visa_service',[VisaServiceController::class,'store']);
Route::post('visa_service', [VisaServiceController::class, 'store']);
Route::get('visa_services/{id}/edit',[VisaServiceController::class,'edit']);
Route::get('visa_services/{id}/edit', [VisaServiceController::class, 'edit']);
Route::get('visa_services/{id}/view',[VisaServiceController::class,'show']);
Route::get('visa_services/{id}/view', [VisaServiceController::class, 'show']);
Route::post('visa_services/{id}',[VisaServiceController::class,'update']);
Route::post('visa_services/{id}', [VisaServiceController::class, 'update']);
Route::get('visa_services/{id}/delete',[VisaServiceController::class,'delete']);
Route::get('visa_services/{id}/delete', [VisaServiceController::class, 'delete']);
// Route::get('service_section_point/{service_point_id}',[VisaServiceController::class,'service_point']);
// 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}/sections', [VisaServiceSectionController::class, 'index']);
Route::get('visa_services/{id}/section/create',[VisaServiceSectionController::class,'create']);
Route::get('visa_services/{id}/section/create', [VisaServiceSectionController::class, 'create']);
Route::post('visa_service/{id}/section',[VisaServiceSectionController::class,'store']);
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}/edit', [VisaServiceSectionController::class, 'edit']);
Route::get('visa_services/{id}/section/{secId}/view',[VisaServiceSectionController::class,'show']);
Route::get('visa_services/{id}/section/{secId}/view', [VisaServiceSectionController::class, 'show']);
Route::post('visa_services/{id}/section/{secId}',[VisaServiceSectionController::class,'update']);
Route::post('visa_services/{id}/section/{secId}', [VisaServiceSectionController::class, 'update']);
Route::get('visa_services/{id}/section/delete',[VisaServiceSectionController::class,'delete']);
Route::get('visa_services/{id}/section/delete', [VisaServiceSectionController::class, 'delete']);
// Route::get('service_point/{service_point_id}',[VisaServiceSectionController::class,'service_point']);
// Route::get('service_point/{service_point_id}',[VisaServiceSectionController::class,'service_point']);
Route::get('testimonials',[TestimonialController::class,'index']);
Route::get('testimonials', [TestimonialController::class, 'index']);
Route::get('testimonials/create',[TestimonialController::class,'create']);
Route::get('testimonials/create', [TestimonialController::class, 'create']);
Route::post('testimonials',[TestimonialController::class,'store']);
Route::post('testimonials', [TestimonialController::class, 'store']);
Route::get('testimonials/{id}/edit',[TestimonialController::class,'edit']);
Route::get('testimonials/{id}/edit', [TestimonialController::class, 'edit']);
Route::post('testimonials/{id}',[TestimonialController::class,'update']);
Route::post('testimonials/{id}', [TestimonialController::class, 'update']);
Route::get('testimonials/{id}',[TestimonialController::class,'show']);
Route::get('testimonials/{id}', [TestimonialController::class, 'show']);
Route::get('testimonials/{id}/delete',[TestimonialController::class,'delete']);
Route::get('testimonials/{id}/delete', [TestimonialController::class, 'delete']);
Route::get('clients',[ClientController::class,'index']);
Route::get('clients', [ClientController::class, 'index']);
Route::get('clients/create',[ClientController::class,'create']);
Route::get('clients/create', [ClientController::class, 'create']);
Route::post('clients',[ClientController::class,'store']);
Route::post('clients', [ClientController::class, 'store']);
Route::get('clients/{id}/edit',[ClientController::class,'edit']);
Route::get('clients/{id}/edit', [ClientController::class, 'edit']);
Route::post('clients/{id}',[ClientController::class,'update']);
Route::post('clients/{id}', [ClientController::class, 'update']);
Route::get('faqs',[FaqController::class,'index']);
Route::get('faqs', [FaqController::class, 'index']);
Route::get('faqs/create',[FaqController::class,'create']);
Route::get('faqs/create', [FaqController::class, 'create']);
Route::post('faqs',[FaqController::class,'store']);
Route::post('faqs', [FaqController::class, 'store']);
Route::get('faqs/{id}/edit',[FaqController::class,'edit']);
Route::get('faqs/{id}/edit', [FaqController::class, 'edit']);
Route::post('faqs/{id}',[FaqController::class,'update']);
Route::post('faqs/{id}', [FaqController::class, 'update']);
Route::get('faqs/{id}',[FaqController::class,'show']);
Route::get('faqs/{id}', [FaqController::class, 'show']);
Route::get('add-sections',[AddSectionController::class,'index']);
Route::get('add-sections', [AddSectionController::class, 'index']);
Route::get('add-sections/create',[AddSectionController::class,'create']);
Route::get('add-sections/create', [AddSectionController::class, 'create']);
Route::post('add-sections',[AddSectionController::class,'store']);
Route::post('add-sections', [AddSectionController::class, 'store']);
Route::get('add-sections/{id}/edit',[AddSectionController::class,'edit']);
Route::get('add-sections/{id}/edit', [AddSectionController::class, 'edit']);
Route::post('add-sections/{id}',[AddSectionController::class,'update']);
Route::post('add-sections/{id}', [AddSectionController::class, 'update']);
Route::get('add-sections/{id}/delete',[AddSectionController::class,'delete']);
Route::get('add-sections/{id}/delete', [AddSectionController::class, 'delete']);
Route::get('seo_titles',[SeoTitleController::class,'index']);
Route::get('seo_titles', [SeoTitleController::class, 'index']);
Route::get('seo_titles/create',[SeoTitleController::class,'create']);
Route::get('seo_titles/create', [SeoTitleController::class, 'create']);
Route::post('seo_titles',[SeoTitleController::class,'store']);
Route::post('seo_titles', [SeoTitleController::class, 'store']);
Route::get('seo_titles/{id}/edit',[SeoTitleController::class,'edit']);
Route::get('seo_titles/{id}/edit', [SeoTitleController::class, 'edit']);
Route::post('seo_titles/{id}',[SeoTitleController::class,'update']);
Route::post('seo_titles/{id}', [SeoTitleController::class, 'update']);
Route::get('seo_titles_delete/{id}',[SeoTitleController::class,'delete']);
Route::get('seo_titles_delete/{id}', [SeoTitleController::class, 'delete']);
Route::get('contacts',[ContactUsController::class,'index']);
Route::get('contacts', [ContactUsController::class, 'index']);
Route::get('contacts/{id}/view',[ContactUsController::class,'show']);
Route::get('contacts/{id}/view', [ContactUsController::class, 'show']);
Route::get('enrollments',[EnrollmentController::class,'index']);
Route::get('enrollments', [EnrollmentController::class, 'index']);
Route::get('enrollments/{id}/view',[EnrollmentController::class,'show']);
Route::get('enrollments/{id}/view', [EnrollmentController::class, 'show']);
Route::get('teams',[TeamController::class,'index']);
Route::get('teams', [TeamController::class, 'index']);
Route::get('teams/create',[TeamController::class,'create']);
Route::get('teams/create', [TeamController::class, 'create']);
Route::post('teams',[TeamController::class,'store']);
Route::post('teams', [TeamController::class, 'store']);
Route::get('teams/{id}/edit',[TeamController::class,'edit']);
Route::get('teams/{id}/edit', [TeamController::class, 'edit']);
Route::post('teams/{id}',[TeamController::class,'update']);
Route::post('teams/{id}', [TeamController::class, 'update']);
Route::get('careers',[CareerController::class,'index']);
Route::get('careers', [CareerController::class, 'index']);
Route::get('careers/create',[CareerController::class,'create']);
Route::get('careers/create', [CareerController::class, 'create']);
Route::post('careers',[CareerController::class,'store']);
Route::post('careers', [CareerController::class, 'store']);
Route::get('careers/{id}/edit',[CareerController::class,'edit']);
Route::get('careers/{id}/edit', [CareerController::class, 'edit']);
Route::post('careers/{id}',[CareerController::class,'update']);
Route::post('careers/{id}', [CareerController::class, 'update']);
Route::get('careers/{id}',[CareerController::class,'show']);
Route::get('careers/{id}', [CareerController::class, 'show']);
Route::get('appointments',[AppointmentController::class,'index']);
Route::get('appointments', [AppointmentController::class, 'index']);
Route::get('appointments/create',[AppointmentController::class,'create']);
Route::get('appointments/create', [AppointmentController::class, 'create']);
Route::post('appointments',[AppointmentController::class,'store']);
Route::post('appointments', [AppointmentController::class, 'store']);
Route::get('appointments/{id}/edit',[AppointmentController::class,'edit']);
Route::get('appointments/{id}/edit', [AppointmentController::class, 'edit']);
Route::post('appointments/{id}',[AppointmentController::class,'update']);
Route::post('appointments/{id}', [AppointmentController::class, 'update']);
Route::get('appointments/{id}/view',[AppointmentController::class,'show']);
Route::get('appointments/{id}/view', [AppointmentController::class, 'show']);
Route::get('appointments/{id}/delete',[AppointmentController::class,'destroy']);
Route::get('appointments/{id}/delete', [AppointmentController::class, 'destroy']);
Route::get('accomodations',[AccomodationController::class,'index']);
Route::get('accomodations', [AccomodationController::class, 'index']);
Route::get('accomodations/create',[AccomodationController::class,'create']);
Route::get('accomodations/create', [AccomodationController::class, 'create']);
Route::post('accomodations',[AccomodationController::class,'store']);
Route::post('accomodations', [AccomodationController::class, 'store']);
Route::get('accomodations/{id}/edit',[AccomodationController::class,'edit']);
Route::get('accomodations/{id}/edit', [AccomodationController::class, 'edit']);
Route::post('accomodations/{id}',[AccomodationController::class,'update']);
Route::post('accomodations/{id}', [AccomodationController::class, 'update']);
Route::get('accomodations/{id}',[AccomodationController::class,'show']);
Route::get('accomodations/{id}', [AccomodationController::class, 'show']);
Route::get('accomodations/{id}/delete',[AccomodationController::class,'delete']);
Route::get('accomodations/{id}/delete', [AccomodationController::class, 'delete']);
Route::get('accomodations/points_remove/{id}',[AccomodationController::class,'points_remove']);
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/information_points_remove/{id}', [AccomodationController::class, 'information_points_remove']);
Route::get('accomodations/slider_points_remove/{id}',[AccomodationController::class,'slider_points_remove']);
Route::get('accomodations/slider_points_remove/{id}', [AccomodationController::class, 'slider_points_remove']);
});
});
});
});
Route::get('/services', function () {
Route::get('/services', function () {
return view('services');
return view('services');
@ -302,12 +300,13 @@ Route::get('/career_counselling', function () {
Route::get('/insurance', function () {
Route::get('/insurance', function () {
return view('insurance');
return view('insurance');
});
});
Route::get('/enquiry', function () {
// Route::get('/enquiry', function () {
$countries = Country::all();
// $countries = Country::all();
return view('enquiry-form', compact('countries'));
// return view('enquiry-form', compact('countries'));
});
// });
Route::get('/enquiry' , [EnquiryController::class, 'form']);
Route::post('/enquiry' , [EnquiryController::class, 'submit'])->name('enquiry.submit');
// Route::get('/visa', function () {
// Route::get('/visa', function () {
// return view('visa');
// return view('visa');
// });
// });