diff --git a/app/Http/Controllers/FrontController.php b/app/Http/Controllers/FrontController.php index 22382c9..817849b 100644 --- a/app/Http/Controllers/FrontController.php +++ b/app/Http/Controllers/FrontController.php @@ -55,7 +55,7 @@ public function contact_post(Request $request) "phone"=>"required|numeric", "message"=>"required|min:3|max:10000", ]); - if(\MainHelper::recaptcha($request->recaptcha)<0.8)abort(401); + //if(\MainHelper::recaptcha($request->recaptcha)<0.8)abort(401); Contact::create([ 'user_id'=>auth()->check()?auth()->id():NULL, 'name'=>$request->name, @@ -65,7 +65,6 @@ public function contact_post(Request $request) ]); toastr()->success('تم استلام رسالتك بنجاح وسنتواصل معك في أقرب وقت'); - //\Session::flash('message', __("Your Message Has Been Send Successfully And We Will Contact You Soon !")); return redirect()->back(); } public function category(Request $request,Category $category){ diff --git a/public/images/components/component_contact.png b/public/images/components/component_contact.png new file mode 100644 index 0000000..07dda63 Binary files /dev/null and b/public/images/components/component_contact.png differ diff --git a/resources/views/admin/builders/index.blade.php b/resources/views/admin/builders/index.blade.php index ebd5314..0538cc4 100644 --- a/resources/views/admin/builders/index.blade.php +++ b/resources/views/admin/builders/index.blade.php @@ -1,4 +1,4 @@ -@extends('layouts.app',['page_title'=>"بانئ الصفحات ". $page->title]) +@extends('layouts.app',['page_title'=>"تصميم ". $page->title]) @section('content') \n", + "design_custom_css":"\n", "design_min_height":50, },...options}; @@ -1115,7 +1149,7 @@ }else if(type == "component_faqs"){ var options = {...options,...{ "content_title":"الأسئلة الشائعة", - "content_description":"نرد على كافة الأسئلة التي قد تدور في ذهنك", + "content_sub_title":"نرد على كافة الأسئلة التي قد تدور في ذهنك", "design_text_alignment":"text-center justify-content-center", }}; var object = { 'id' : this.selected_unique_id, 'fields': [] }; @@ -1167,7 +1201,21 @@ object.fields = options; this.contents[this.selected_page].push(object); this.template_editor(unique_id,type); - } + }else if(type == "component_contact"){ + var options = {...options,...{ + "content_title":"تواصل معنا", + "content_sub_title":"يمكنك التواصل معنا عبر النموذج التالي", + "content_description":"توفر منصتنا مجتمعًا تعليميًا تفاعليًا يسمح للطلاب والمدرسين بالتفاعل بشكل مستمر خارج حدود الحصص الدراسية. يمكن للطلاب طرح الأسئلة ومشاركة الأفكار وتكوين مجموعات دراسية إلكترونية تساعدهم في التعلم المشترك. يوفر المجتمع أيضًا فرصًا للتواصل مع الخبراء من مختلف المجالات للحصول على إرشادات ونصائح قيّمة. من خلال أدوات المنتديات والمحادثات المخصصة، يظل الطلاب متصلين دائمًا مع زملائهم، مما يعزز الشعور بالانتماء ويحفز على التعاون المستمر", + "design_content_alignment":"flex-row" + }}; + var object = { 'id' : this.selected_unique_id, 'fields': [] }; + object.fields = options; + this.contents[this.selected_page].push(object); + + + this.template_editor(unique_id,type); + } + console.log(this.contents['home']); diff --git a/resources/views/components/contact.blade.php b/resources/views/components/contact.blade.php new file mode 100644 index 0000000..0f24e14 --- /dev/null +++ b/resources/views/components/contact.blade.php @@ -0,0 +1,41 @@ +
+
+ {{-- --}} + @csrf +
+
+
+
+ + + +
+
+
+
+ + +
+
+
+
+ + + +
+
+
+
+ + + +
+
+ +
+ +
+ +
+
+
\ No newline at end of file diff --git a/resources/views/components/page.blade.php b/resources/views/components/page.blade.php index c955f2a..b91e836 100644 --- a/resources/views/components/page.blade.php +++ b/resources/views/components/page.blade.php @@ -16,7 +16,7 @@

{{$component['fields']['content_sub_title']}}

{{$component['fields']['content_description']}}

-
+
@foreach($component['fields']['buttons'] as $button) @@ -39,7 +39,7 @@

{{$component['fields']['content_title']}}

{{$component['fields']['content_sub_title']}}

{{$component['fields']['content_description']}}

-