aplus/#9
Mahesh Sharma 2 years ago
parent 4da6194cea
commit ea4c3f91b1
  1. 36
      database/migrations/2022_12_09_041319_create_recruitments_table.php
  2. 45
      resources/views/need_chef.blade.php
  3. 1
      routes/web.php

@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('recruitments', function (Blueprint $table) {
$table->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');
}
};

@ -36,37 +36,44 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<div class="chef-hire-form"> <div class="chef-hire-form">
<form action=""> <form action="{{route('recruitment.vacancy')}}" method = "post">
@csrf
<h2>Please fill-up the form</h2> <h2>Please fill-up the form</h2>
<div class="mb-3"> <div class="mb-3">
<label for="">Full name</label> <label for="">Full name</label>
<input type="text" class="form-control" placeholder="Your full name" name="" id=""> <input type="text" class="form-control" placeholder="Your full name" name="full_name" id="">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="">Company</label> <label for="">Company</label>
<input type="text" class="form-control" placeholder="Your company name" name="" id=""> <input type="text" class="form-control" placeholder="Your company name" name="company" id="">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="">Email address</label> <label for="">Email address</label>
<input type="email" class="form-control" placeholder="Your email address" name="" id=""> <input type="email" class="form-control" placeholder="Your email address" name="email" id="">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="">No. of position</label> <label for="">No. of position</label>
<input type="text" class="form-control" placeholder="Required number of position" name="" id=""> <input type="text" class="form-control" placeholder="Required number of position" name="no_of_position" id="">
</div> </div>
<div class="mb-3"> <div class="mb-3">
<label for="">Enquiry</label> <label for="">Enquiry</label>
<textarea type="text" rows="3" class="form-control" placeholder="Your enquiries.." name="" id=""></textarea> <textarea type="text" rows="3" class="form-control" placeholder="Your enquiries.." name="enquiry" id=""></textarea>
</div> </div>
@php
$code = Str::random(5);
@endphp
<div class="mb-5"> <div class="mb-5">
<label for="">Enter Captcha</label> <label for="">Enter Captcha</label>
<div class="d-flex gap-3"> <div class="d-flex gap-3">
<div class="captcha-sec"> <div class="captcha-sec">
<input type="text" name="" class="form-control" placeholder="Captcha" id=""> <input id="captcha" type="text" name = "entered_captcha_code" class="form-control" placeholder="Enter Captcha as Shown" required>
<input type = "hidden" id = "displayed_captcha_code" name = "displayed_captcha_code" value = "{{$code}}"/>
</div> </div>
<div class="captch-field"> <div class="captch-field">
<p>g46x0</p> <!-- name = "captcha_code" value = "{{$code}}" -->
<img src="{{url('frontend/icons/reset-icon.svg')}}" alt=""> <input type = "text" id = "captcha_code" readonly class="form-control" name = "captcha_code" value = "{{$code}}"/>
<!-- <img src="{{url('frontend/icons/reset-icon.svg')}}" alt=""> -->
<button id = "refresh"><i class="fas fa-sync-alt"></i></button>
</div> </div>
</div> </div>
</div> </div>
@ -76,4 +83,24 @@
</div> </div>
</div> </div>
</section> </section>
@section('script')
<script>
$('#refresh').click(function(event){
event.preventDefault();
$.ajax({
type:'GET',
url:'refreshcaptcha',
success:function(data){
document.getElementById('captcha_code').readOnly
= false;
document.getElementById('captcha_code').value = (data.captcha_code);
document.getElementById('displayed_captcha_code').value = (data.captcha_code);
document.getElementById('captcha_code').readOnly
= true;
}
});
});
</script>
@endsection
@endsection @endsection

@ -73,6 +73,7 @@ Route::post('/referral', [ReferralController::class, 'store']);
Route::get('/gallery', [HomeController::class, 'gallery']); Route::get('/gallery', [HomeController::class, 'gallery']);
Route::get('/career', [HomeController::class, 'working_dice']); Route::get('/career', [HomeController::class, 'working_dice']);
Route::post('/career', [HomeController::class, 'save_career'])->name('career'); 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::get('/service/{slug}', [FrontendServiceController::class,'single_service']);
Route::post('/contact_mail', [HomeController::class, 'send_contact_mail'])->name('send_contact_mail'); Route::post('/contact_mail', [HomeController::class, 'send_contact_mail'])->name('send_contact_mail');

Loading…
Cancel
Save