diff --git a/app/Http/Controllers/Admin/ServiceSectionController.php b/app/Http/Controllers/Admin/ServiceSectionController.php index 1bfbddf..f8a7205 100644 --- a/app/Http/Controllers/Admin/ServiceSectionController.php +++ b/app/Http/Controllers/Admin/ServiceSectionController.php @@ -235,12 +235,22 @@ class ServiceSectionController extends Controller } } else{ - // foreach($points as $key => $point){ - // $service_section_point = new ServiceSectionPoint(); - // $service_section_point->service_section_id = $service_section->id; - // $service_section_point->point = $point; - // $service_section_point->save(); - // } + foreach($points as $key => $point){ + $service_section_point = new ServiceSectionPoint(); + $service_section_point->service_section_id = $service_section->id; + $service_section_point->point = $point; + if(array_key_exists($key,$icons)){ + $extension = $icons[$key]->getClientOriginalExtension(); + $image_folder_type = array_search('service',config('custom.image_folders')); //for image saved in folder + + $count = rand(100,999); + + $out_put_path = User::save_image($icons[$key],$extension,$count,$image_folder_type); + is_array($out_put_path) ? $service_section_point->icon = $out_put_path[0] : $service_section_point->icon = $out_put_path; + // $service_section_point->icon = $points_descriptions[$key]; + } + $service_section_point->save(); + } } // $service_point = $service_section->service_section_point(); // $service_point->delete(); diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index d317a2b..7b1b435 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -51,10 +51,9 @@ class ContactController extends Controller ), function($message) use ($subject){ // $subject=($service!= '') ? 'Enquiry for '.$service : 'Contact/Feedback'; $message->subject($subject); - // $message->to('info@agilityhomecare.com.au', 'AgilityHomeCare')->subject($subject); - $message->to('mahesh@extratechs.com.au', 'Extratech')->subject($subject); - // $message->cc('suman@extratechs.com.u', 'Extratech')->subject($subject); - + $message->to('admin@eteducation.com.au', 'Et-Visa')->subject($subject); + $message->cc('extratechweb@gmail.com', 'Extratech')->subject($subject); + $message->cc('suman@extratechs.com.au', 'Extratech')->subject($subject); }); // }); diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index c88e7d4..9448cff 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -45,6 +45,6 @@ class HomeController extends Controller }); - return response()->json(['success' => 'Successfully subscribed!','status' =>'Ok'],200); + return response()->json(['success' => 'Thank You for Subscribing!','status' =>'Ok'],200); } } diff --git a/database/migrations/2022_12_13_043238_create_visa_service_section_points_table.php b/database/migrations/2022_12_13_043239_create_visa_service_section_points_table.php similarity index 94% rename from database/migrations/2022_12_13_043238_create_visa_service_section_points_table.php rename to database/migrations/2022_12_13_043239_create_visa_service_section_points_table.php index 6ff25f1..b64b87b 100644 --- a/database/migrations/2022_12_13_043238_create_visa_service_section_points_table.php +++ b/database/migrations/2022_12_13_043239_create_visa_service_section_points_table.php @@ -18,6 +18,7 @@ return new class extends Migration $table->bigInteger('visa_service_section_id')->unsigned(); $table->foreign('visa_service_section_id')->references('id')->on('visa_service_sections')->onDelete('cascade'); $table->text('point'); + $table->string('image')->nullable(); $table->timestamps(); }); } diff --git a/public/images/service/2023/02/03/53c597800859eecbd02152173ef7e5ea.png b/public/images/service/2023/02/03/53c597800859eecbd02152173ef7e5ea.png new file mode 100644 index 0000000..dc211ed Binary files /dev/null and b/public/images/service/2023/02/03/53c597800859eecbd02152173ef7e5ea.png differ diff --git a/public/images/service/2023/02/03/7828e9cb9849dde1b7bb0bf28800a922.jpg b/public/images/service/2023/02/03/7828e9cb9849dde1b7bb0bf28800a922.jpg new file mode 100644 index 0000000..739154d Binary files /dev/null and b/public/images/service/2023/02/03/7828e9cb9849dde1b7bb0bf28800a922.jpg differ diff --git a/public/images/service/2023/02/03/8f73e3d409f73c909efbbed65cb95346.png b/public/images/service/2023/02/03/8f73e3d409f73c909efbbed65cb95346.png new file mode 100644 index 0000000..2b50135 Binary files /dev/null and b/public/images/service/2023/02/03/8f73e3d409f73c909efbbed65cb95346.png differ diff --git a/public/images/service/2023/02/03/d93a341002e7fba2be18147c85359f9b.jpg b/public/images/service/2023/02/03/d93a341002e7fba2be18147c85359f9b.jpg new file mode 100644 index 0000000..5b89b15 Binary files /dev/null and b/public/images/service/2023/02/03/d93a341002e7fba2be18147c85359f9b.jpg differ diff --git a/resources/views/admin/service_section/create.blade.php b/resources/views/admin/service_section/create.blade.php index 08b68bc..795d3dd 100644 --- a/resources/views/admin/service_section/create.blade.php +++ b/resources/views/admin/service_section/create.blade.php @@ -83,7 +83,7 @@
- +
@@ -137,6 +138,7 @@ debugger; var html = '
'+ '
'+ + '
'+ ''+ '
'; $('#point_g_1').append(html); diff --git a/resources/views/admin/service_section/edit.blade.php b/resources/views/admin/service_section/edit.blade.php index d780886..ff75371 100644 --- a/resources/views/admin/service_section/edit.blade.php +++ b/resources/views/admin/service_section/edit.blade.php @@ -88,7 +88,56 @@

+ @if($service_section->service_section_point) +
+
+
+
+
+ +
+ @foreach($service_section->service_section_point as $section_point) + +
+
+ +
+ @if($section_point->icon != null) + + @endif +
+ +
+ @endforeach +
+ +
+
+
+
+ @else + +
+
+
+
+
+
+
+
+ + +
+ +
+ +
+
+
+
+ + @endif @@ -144,7 +193,7 @@ point_count = point_count +1; var html = '
'+ '
'+ - '
'+ + '
'+ ''+ '
'; @@ -157,6 +206,7 @@ } function deletePointPermanently(id){ + alert(Laravel.url); if($('.point').length > 1){ if (confirm("Are you sure Delete?")) { $.ajax({ diff --git a/resources/views/faq.blade.php b/resources/views/faq.blade.php index f96d481..707f57c 100644 --- a/resources/views/faq.blade.php +++ b/resources/views/faq.blade.php @@ -29,12 +29,12 @@

- {{$faq->answer}} + {!!$faq->answer!!}
diff --git a/resources/views/study-abroad-detail.blade.php b/resources/views/study-abroad-detail.blade.php index b7fbb1e..e8dfb27 100644 --- a/resources/views/study-abroad-detail.blade.php +++ b/resources/views/study-abroad-detail.blade.php @@ -35,30 +35,16 @@ {!!$second_section->description!!}
+ + @foreach($second_section->service_section_point as $point)
- -
University of Sydney
-
-
-
-
- -
University of Sydney
-
-
-
-
- -
University of Sydney
-
-
-
-
- -
University of Sydney
+ +
{{$point->point}}
+ @endforeach + {!!$second_section->sub_description!!}
diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 2ae7e45..eb08d00 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -152,15 +152,15 @@
-

Why Choose Us

-

A remarkable number of Nepalese students from across the world, from diverse backgrounds, have achieved their international education goals successfully through us, the best Study Abroad Consultants in Nepal.

+ {!!$about_us->skip(1)->first()->description!!} +
-

Certified and Registered Counsellors

-

To ensure that your process adheres to the industry’s standard and is performed safely and in a trustworthy manner.

+ {!!$about_us->skip(1)->first()->sub_description!!}
@@ -168,8 +168,7 @@
-

Affordable Services for Wide Ranging Courses and Visa

-

Provide all the options available for your study or migration pathway conveniently and within reasonable amounts.

+ {!!$about_us->skip(1)->first()->bottom_description!!}
diff --git a/routes/web.php b/routes/web.php index ba45576..d89948d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -178,7 +178,7 @@ Route::group(['middleware'=>['auth']],function (){ Route::get('services/{id}/view',[ServiceController::class,'show']); Route::post('services/{id}',[ServiceController::class,'update']); 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}/section/create',[ServiceSectionController::class,'create']); @@ -196,7 +196,7 @@ Route::group(['middleware'=>['auth']],function (){ 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']); - Route::get('service_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}/section/create',[VisaServiceSectionController::class,'create']); @@ -205,7 +205,7 @@ Route::group(['middleware'=>['auth']],function (){ 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']); - 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/create',[TestimonialController::class,'create']);