From ea4c3f91b1fa554fe0d441c6c14c7b3bbaa6f0d4 Mon Sep 17 00:00:00 2001 From: Mahesh Sharma Date: Fri, 9 Dec 2022 10:19:15 +0545 Subject: [PATCH] for-captch --- ...12_09_041319_create_recruitments_table.php | 36 +++++++++++++++ resources/views/need_chef.blade.php | 45 +++++++++++++++---- routes/web.php | 1 + 3 files changed, 73 insertions(+), 9 deletions(-) create mode 100644 database/migrations/2022_12_09_041319_create_recruitments_table.php diff --git a/database/migrations/2022_12_09_041319_create_recruitments_table.php b/database/migrations/2022_12_09_041319_create_recruitments_table.php new file mode 100644 index 0000000..63b1fd4 --- /dev/null +++ b/database/migrations/2022_12_09_041319_create_recruitments_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('full_name'); + $table->string('company'); + $table->string('address'); + $table->string('no_of_position'); + $table->text('enquiry'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('recruitments'); + } +}; diff --git a/resources/views/need_chef.blade.php b/resources/views/need_chef.blade.php index 510fd46..713f6cb 100644 --- a/resources/views/need_chef.blade.php +++ b/resources/views/need_chef.blade.php @@ -36,37 +36,44 @@
-
+ + @csrf

Please fill-up the form

- +
- +
- +
- +
- +
+ @php + $code = Str::random(5); + @endphp
- + +
-

g46x0

- + + + +
@@ -76,4 +83,24 @@
+ + @section('script') + + @endsection @endsection \ No newline at end of file diff --git a/routes/web.php b/routes/web.php index 1e5c915..662b2a4 100644 --- a/routes/web.php +++ b/routes/web.php @@ -73,6 +73,7 @@ Route::post('/referral', [ReferralController::class, 'store']); Route::get('/gallery', [HomeController::class, 'gallery']); Route::get('/career', [HomeController::class, 'working_dice']); Route::post('/career', [HomeController::class, 'save_career'])->name('career'); +Route::post('recruitment', [RecruitmentController::class,'save_vacancy'])->name('recruitment.vacancy'); Route::get('/service/{slug}', [FrontendServiceController::class,'single_service']); Route::post('/contact_mail', [HomeController::class, 'send_contact_mail'])->name('send_contact_mail');