first commit
This commit is contained in:
0
Modules/Recruit/app/Http/Controllers/.gitkeep
Normal file
0
Modules/Recruit/app/Http/Controllers/.gitkeep
Normal file
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Modules\Employee\Repositories\EmployeeRepository;
|
||||
use Modules\Recruit\Repositories\InterviewScheduleInterface;
|
||||
use Modules\Recruit\Repositories\InterviewScheduleRepository;
|
||||
use Modules\Recruit\Repositories\JobPostInterface;
|
||||
use Modules\Recruit\Repositories\JobPostRepository;
|
||||
use Yoeunes\Toastr\Facades\Toastr;
|
||||
|
||||
class InterviewScheduleController extends Controller
|
||||
{
|
||||
|
||||
private $interviewScheduleRepository;
|
||||
private $jobPostRepository;
|
||||
private $employeeRepository;
|
||||
public function __construct(InterviewScheduleInterface $interviewScheduleRepository, JobPostInterface $jobPostRepository, EmployeeRepository $employeeRepository)
|
||||
{
|
||||
$this->interviewScheduleRepository = $interviewScheduleRepository;
|
||||
$this->jobPostRepository = $jobPostRepository;
|
||||
$this->employeeRepository = $employeeRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data['title'] = 'Interview Schedule Lists';
|
||||
$data['interviewScheduleLists'] = $this->interviewScheduleRepository->findAll();
|
||||
return view('recruit::interviewschedules.index', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
$data['title'] = 'Create InterviewSchedule';
|
||||
$data['editable'] = false;
|
||||
$data['jobPostLists'] = $this->jobPostRepository->pluck();
|
||||
$data['employeeLists'] = $this->employeeRepository->pluck();
|
||||
|
||||
return view('recruit::interviewschedules.create', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
$request->merge([
|
||||
'createdBy' => auth()->user()->id,
|
||||
]);
|
||||
try {
|
||||
$this->interviewScheduleRepository->create($request->all());
|
||||
toastr()->success('InterviewSchedule Created Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
|
||||
// return redirect()->route('interviewSchedule.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the specified resource.
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return view('recruit::interviewschedules.show');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
$data['title'] = 'Edit InterviewSchedule';
|
||||
|
||||
$data['editable'] = true;
|
||||
|
||||
$data['jobPostLists'] = $this->jobPostRepository->pluck();
|
||||
|
||||
$data['employeeLists'] = $this->employeeRepository->pluck();
|
||||
|
||||
$data['interviewSchedule'] = $this->interviewScheduleRepository->getInterviewScheduleById($id);
|
||||
|
||||
return view('recruit::interviewschedules.edit', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Request $request, $id): RedirectResponse
|
||||
{
|
||||
$inputData = $request->all();
|
||||
try {
|
||||
|
||||
$this->interviewScheduleRepository->update($id, $inputData);
|
||||
toastr()->success('InterviewSchecule Updated Succesfully');
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
return redirect()->route('interviewSchedule.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
try {
|
||||
$this->interviewScheduleRepository->delete($id);
|
||||
|
||||
toastr()->success('InterviewSchecule Deleted Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
//throw $th;
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,136 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Modules\Admin\Repositories\FieldRepository;
|
||||
use Modules\Recruit\Repositories\JobApplicationInterface;
|
||||
use Modules\Recruit\Repositories\JobApplicationRepository;
|
||||
use Modules\Recruit\Repositories\JobPostInterface;
|
||||
use Modules\Recruit\Repositories\JobPostRepository;
|
||||
use Yoeunes\Toastr\Facades\Toastr;
|
||||
|
||||
class JobApplicationController extends Controller
|
||||
{
|
||||
private $jobApplicationRepository;
|
||||
private $jobPostRepository;
|
||||
|
||||
private $fieldRepository;
|
||||
|
||||
public function __construct(JobApplicationInterface $jobApplicationRepository, JobPostInterface $jobPostRepository, FieldRepository $fieldRepository)
|
||||
{
|
||||
$this->jobApplicationRepository = $jobApplicationRepository;
|
||||
$this->jobPostRepository = $jobPostRepository;
|
||||
$this->fieldRepository = $fieldRepository;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data['title'] = 'JobApplication Lists';
|
||||
$data['jobApplicationLists'] = $this->jobApplicationRepository->findAll();
|
||||
return view('recruit::jobapplications.index', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
$data['title'] = 'Create JobApplication';
|
||||
$data['editable'] = false;
|
||||
$data['jobPostLists'] = $this->jobPostRepository->pluck();
|
||||
$data['genderLists'] = $this->fieldRepository->getDropdownByAlias('gender');
|
||||
return view('recruit::jobapplications.create', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
$request->mergeIfMissing([
|
||||
'createdBy' => auth()->user()->employee?->id,
|
||||
'status' => 11,
|
||||
|
||||
]);
|
||||
|
||||
try {
|
||||
$this->jobApplicationRepository->create($request->all());
|
||||
toastr()->success('JobApplication Created Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
return redirect()->route('jobApplication.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the specified resource.
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return view('recruit::jobapplications.show');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
$data['title'] = 'Edit JobApplication';
|
||||
|
||||
$data['editable'] = true;
|
||||
|
||||
$data['jobPostLists'] = $this->jobPostRepository->pluck();
|
||||
|
||||
$data['genderLists'] = $this->fieldRepository->getDropdownByAlias('gender');
|
||||
|
||||
|
||||
$data['jobApplication'] = $this->jobApplicationRepository->getJobApplicationById($id);
|
||||
|
||||
return view('recruit::jobapplications.edit', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Request $request, $id): RedirectResponse
|
||||
{
|
||||
$request->mergeIfMissing([
|
||||
'updatedBy' => auth()->user()->employee?->id,
|
||||
'status' => 11,
|
||||
]);
|
||||
|
||||
$inputData = $request->all();
|
||||
try {
|
||||
|
||||
$this->jobApplicationRepository->update($id, $inputData);
|
||||
toastr()->success('JobApplication Updated Succesfully');
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
return redirect()->route('jobApplication.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
try {
|
||||
$this->jobApplicationRepository->delete($id);
|
||||
|
||||
toastr()->success('JobApplication Deleted Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
//throw $th;
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
131
Modules/Recruit/app/Http/Controllers/JobPostController.php
Normal file
131
Modules/Recruit/app/Http/Controllers/JobPostController.php
Normal file
@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Modules\Admin\Repositories\DepartmentInterface;
|
||||
use Modules\Admin\Repositories\DesignationInterface;
|
||||
use Modules\Recruit\Repositories\JobPostInterface;
|
||||
use Modules\Recruit\Repositories\JobPostRepository;
|
||||
use Yoeunes\Toastr\Facades\Toastr;
|
||||
|
||||
class JobPostController extends Controller
|
||||
{
|
||||
private $jobPostRepository;
|
||||
private $departmentRepository;
|
||||
private $designationRepository;
|
||||
|
||||
public function __construct(JobPostInterface $jobPostRepository, DepartmentInterface $departmentRepository, DesignationInterface $designationRepository)
|
||||
{
|
||||
$this->jobPostRepository = $jobPostRepository;
|
||||
$this->departmentRepository = $departmentRepository;
|
||||
$this->designationRepository = $designationRepository;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data['title'] = 'Job Post Lists';
|
||||
$data['jobPostLists'] = $this->jobPostRepository->findAll();
|
||||
|
||||
return view('recruit::jobposts.index', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
$data['title'] = 'Create Job Post';
|
||||
$data['editable'] = false;
|
||||
$data['departmentLists'] = $this->departmentRepository->pluck();
|
||||
$data['designationLists'] = $this->designationRepository->pluck();
|
||||
return view('recruit::jobposts.create', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
$request->mergeIfMissing([
|
||||
'createdBy' => auth()->user()->employee?->id,
|
||||
]);
|
||||
|
||||
try {
|
||||
$this->jobPostRepository->create($request->all());
|
||||
toastr()->success('JobPost Created Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
return redirect()->route('jobPost.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the specified resource.
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return view('recruit::jobposts.show');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
$data['title'] = 'Edit Job Post';
|
||||
|
||||
$data['editable'] = true;
|
||||
|
||||
$data['departmentLists'] = $this->departmentRepository->pluck();
|
||||
$data['designationLists'] = $this->designationRepository->pluck();
|
||||
|
||||
$data['jobPost'] = $this->jobPostRepository->getJobPostById($id);
|
||||
|
||||
return view('recruit::jobposts.edit', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Request $request, $id): RedirectResponse
|
||||
{
|
||||
$request->mergeIfMissing([
|
||||
'updateBy' => auth()->user()->employee?->id,
|
||||
]);
|
||||
|
||||
$inputData = $request->all();
|
||||
|
||||
try {
|
||||
$this->jobPostRepository->update($id, $inputData);
|
||||
|
||||
toastr()->success('Job Post Updated Succesfully');
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
return redirect()->route('jobPost.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
try {
|
||||
$this->jobPostRepository->delete($id);
|
||||
|
||||
toastr()->success('Job Post Deleted Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
//throw $th;
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
151
Modules/Recruit/app/Http/Controllers/OfferLetterController.php
Normal file
151
Modules/Recruit/app/Http/Controllers/OfferLetterController.php
Normal file
@ -0,0 +1,151 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Modules\Admin\Repositories\DepartmentInterface;
|
||||
use Modules\Admin\Repositories\DepartmentRepository;
|
||||
use Modules\Admin\Repositories\DesignationRepository;
|
||||
use Modules\Admin\Repositories\WorkShiftInterface;
|
||||
use Modules\Admin\Repositories\WorkShiftRepository;
|
||||
use Modules\Employee\Repositories\EmployeeInterface;
|
||||
use Modules\Employee\Repositories\EmployeeRepository;
|
||||
use Modules\Recruit\Repositories\JobApplicationInterface;
|
||||
use Modules\Recruit\Repositories\JobPostInterface;
|
||||
use Modules\Recruit\Repositories\OfferLetterInterface;
|
||||
use Modules\Recruit\Repositories\OfferLetterRepository;
|
||||
use Modules\Recruit\Repositories\JobPostRepository;
|
||||
use Yoeunes\Toastr\Facades\Toastr;
|
||||
|
||||
class OfferLetterController extends Controller
|
||||
{
|
||||
private $offerLetterRepository;
|
||||
private $departmentRepository;
|
||||
private $designationRepository;
|
||||
private $workShiftRepository;
|
||||
private $employeeRepository;
|
||||
private $jobPostRepository;
|
||||
private $jobApplicationRepository;
|
||||
|
||||
public function __construct(OfferLetterInterface $offerLetterRepository, DepartmentInterface $departmentRepository, DesignationRepository $designationRepository, WorkShiftRepository $workShiftRepository, EmployeeInterface $employeeRepository, JobApplicationInterface $jobApplicationRepository, JobPostRepository $jobPostRepository)
|
||||
{
|
||||
$this->offerLetterRepository = $offerLetterRepository;
|
||||
$this->departmentRepository = $departmentRepository;
|
||||
$this->designationRepository = $designationRepository;
|
||||
$this->workShiftRepository = $workShiftRepository;
|
||||
$this->employeeRepository = $employeeRepository;
|
||||
$this->jobPostRepository = $jobPostRepository;
|
||||
$this->jobApplicationRepository = $jobApplicationRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$data['title'] = 'OfferLetter Lists';
|
||||
$data['offerLetterLists'] = $this->offerLetterRepository->findAll();
|
||||
return view('recruit::offerletters.index', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
$data['title'] = 'Create OfferLetter';
|
||||
$data['editable'] = false;
|
||||
$data['workShiftLists'] = $this->workShiftRepository->pluck();
|
||||
$data['designationLists'] = $this->designationRepository->pluck();
|
||||
$data['departmentLists'] = $this->departmentRepository->pluck();
|
||||
$data['employeeLists'] = $this->employeeRepository->pluck();
|
||||
$data['jobPostLists'] = $this->jobPostRepository->pluck();
|
||||
$data['jobApplicationLists'] = $this->jobApplicationRepository->pluck();
|
||||
$data['employeeLists'] = $this->employeeRepository->pluck();
|
||||
|
||||
return view('recruit::offerletters.create', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
$request->merge([
|
||||
'createdBy' => auth()->user()->id,
|
||||
]);
|
||||
try {
|
||||
$this->offerLetterRepository->create($request->all());
|
||||
toastr()->success('OfferLetter Created Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
|
||||
return redirect()->route('offerLetter.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the specified resource.
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return view('recruit::offerletters.show');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
$data['title'] = 'Edit OfferLetter';
|
||||
|
||||
$data['editable'] = true;
|
||||
|
||||
$data['workShiftLists'] = $this->workShiftRepository->pluck();
|
||||
|
||||
$data['designationLists'] = $this->designationRepository->pluck();
|
||||
|
||||
$data['departmentLists'] = $this->departmentRepository->pluck();
|
||||
|
||||
$data['employeeLists'] = $this->employeeRepository->pluck();
|
||||
|
||||
$data['offerLetter'] = $this->offerLetterRepository->getOfferLetterById($id);
|
||||
|
||||
return view('recruit::offerletters.edit', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Request $request, $id): RedirectResponse
|
||||
{
|
||||
$inputData = $request->all();
|
||||
try {
|
||||
|
||||
$this->offerLetterRepository->update($id, $inputData);
|
||||
toastr()->success('InterviewSchecule Updated Succesfully');
|
||||
|
||||
} catch (\Throwable $th) {
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
return redirect()->route('offerLetter.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
try {
|
||||
$this->offerLetterRepository->delete($id);
|
||||
|
||||
toastr()->success('OfferLetter Deleted Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
//throw $th;
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
67
Modules/Recruit/app/Http/Controllers/RecruitController.php
Normal file
67
Modules/Recruit/app/Http/Controllers/RecruitController.php
Normal file
@ -0,0 +1,67 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class RecruitController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return view('recruit::index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return view('recruit::create');
|
||||
}
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
*/
|
||||
public function store(Request $request): RedirectResponse
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the specified resource.
|
||||
*/
|
||||
public function show($id)
|
||||
{
|
||||
return view('recruit::show');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
return view('recruit::edit');
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*/
|
||||
public function update(Request $request, $id): RedirectResponse
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
0
Modules/Recruit/app/Http/Requests/.gitkeep
Normal file
0
Modules/Recruit/app/Http/Requests/.gitkeep
Normal file
0
Modules/Recruit/app/Models/.gitkeep
Normal file
0
Modules/Recruit/app/Models/.gitkeep
Normal file
55
Modules/Recruit/app/Models/InterviewSchedule.php
Normal file
55
Modules/Recruit/app/Models/InterviewSchedule.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Models;
|
||||
|
||||
use App\Observers\InterviewScheduleObserver;
|
||||
use App\Traits\StatusTrait;
|
||||
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Recruit\Database\factories\InterviewScheduleFactory;
|
||||
|
||||
#[ObservedBy([InterviewScheduleObserver::class])]
|
||||
class InterviewSchedule extends Model
|
||||
{
|
||||
use HasFactory, StatusTrait;
|
||||
|
||||
protected $table = 'tbl_interview_schedules';
|
||||
protected $primaryKey = 'interview_schedule_id';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = [
|
||||
'job_post_id',
|
||||
'interviewer_choices',
|
||||
'interviewer_approved',
|
||||
'scheduled_date',
|
||||
'scheduled_time',
|
||||
'arranged_date',
|
||||
'interview_mode',
|
||||
'arranged_by',
|
||||
'createdBy',
|
||||
'updatedBy',
|
||||
'status',
|
||||
'description',
|
||||
'remarks',
|
||||
];
|
||||
|
||||
public $appends = ['status_name'];
|
||||
|
||||
protected $casts = [
|
||||
'interviewer_choices' => 'array',
|
||||
'interviewer_approved' => 'array',
|
||||
'arranged_date' => 'date',
|
||||
'scheduled_time' => 'datetime',
|
||||
|
||||
];
|
||||
|
||||
public function jobPost()
|
||||
{
|
||||
return $this->belongsTo(JobPost::class, 'job_post_id');
|
||||
}
|
||||
|
||||
|
||||
}
|
55
Modules/Recruit/app/Models/JobApplication.php
Normal file
55
Modules/Recruit/app/Models/JobApplication.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Models;
|
||||
|
||||
use App\Models\Document;
|
||||
use App\Traits\StatusTrait;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Modules\Recruit\Database\factories\JobApplicationFactory;
|
||||
|
||||
class JobApplication extends Model
|
||||
{
|
||||
use HasFactory, StatusTrait, Notifiable;
|
||||
|
||||
protected $table = 'tbl_job_applications';
|
||||
protected $primaryKey = 'job_application_id';
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'address',
|
||||
'phone',
|
||||
'email',
|
||||
'gender',
|
||||
'job_post_id',
|
||||
'working_experience',
|
||||
'prev_company',
|
||||
'working_mode',
|
||||
'working_type',
|
||||
'working_shift',
|
||||
'apply_date',
|
||||
'recommended_by',
|
||||
'status',
|
||||
'description',
|
||||
'remarks',
|
||||
'createdBy',
|
||||
'updatedBy',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'apply_date' => 'date',
|
||||
];
|
||||
public $appends = ['status_name'];
|
||||
public function jobPost()
|
||||
{
|
||||
return $this->belongsTo(JobPost::class, 'job_post_id');
|
||||
}
|
||||
|
||||
public function documents()
|
||||
{
|
||||
return $this->morphMany(Document::class, 'documentable');
|
||||
}
|
||||
}
|
69
Modules/Recruit/app/Models/JobPost.php
Normal file
69
Modules/Recruit/app/Models/JobPost.php
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Models;
|
||||
|
||||
use App\Traits\StatusTrait;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Admin\Models\Department;
|
||||
use Modules\Admin\Models\Departments;
|
||||
use Modules\Admin\Models\Designation;
|
||||
use Modules\Admin\Models\Designations;
|
||||
use Modules\Employee\Models\Employee;
|
||||
use Modules\Recruit\Database\factories\JobPostFactory;
|
||||
|
||||
class JobPost extends Model
|
||||
{
|
||||
|
||||
use StatusTrait;
|
||||
|
||||
protected $table = 'tbl_job_posts';
|
||||
protected $primaryKey = 'job_post_id';
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'alias',
|
||||
'vacancy_no',
|
||||
'department_id',
|
||||
'designation_id',
|
||||
'post_date',
|
||||
'expiry_date',
|
||||
'status',
|
||||
'description',
|
||||
'remarks',
|
||||
'createdBy',
|
||||
'updateBy',
|
||||
];
|
||||
|
||||
public $appends = ['status_name'];
|
||||
|
||||
public function department()
|
||||
{
|
||||
return $this->belongsTo(Department::class, 'department_id');
|
||||
}
|
||||
|
||||
public function designation()
|
||||
{
|
||||
return $this->belongsTo(Designation::class, 'designation_id');
|
||||
}
|
||||
|
||||
public function jobPoster()
|
||||
{
|
||||
return $this->belongsTo(Employee::class, 'createdBy');
|
||||
}
|
||||
|
||||
public function interviewSchedules()
|
||||
{
|
||||
return $this->hasMany(InterviewSchedule::class, 'job_post_id');
|
||||
}
|
||||
|
||||
public function jobApplications()
|
||||
{
|
||||
return $this->hasMany(JobApplication::class, 'job_post_id');
|
||||
}
|
||||
|
||||
}
|
39
Modules/Recruit/app/Models/OfferLetter.php
Normal file
39
Modules/Recruit/app/Models/OfferLetter.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Models;
|
||||
|
||||
use App\Traits\StatusTrait;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Modules\Recruit\Database\factories\OfferLetterFactory;
|
||||
|
||||
class OfferLetter extends Model
|
||||
{
|
||||
use HasFactory, StatusTrait;
|
||||
|
||||
protected $table = 'tbl_offer_letters';
|
||||
protected $primaryKey = "offer_letter_id";
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = [
|
||||
'applicant_name',
|
||||
'department_id',
|
||||
'designation_id',
|
||||
'working_shift_id',
|
||||
'salary',
|
||||
'contract_time_period',
|
||||
'joining_date',
|
||||
'issued_date',
|
||||
'issued_by',
|
||||
'createdBy',
|
||||
'updatedBy',
|
||||
'description',
|
||||
'remarks',
|
||||
];
|
||||
|
||||
public $appends = ['status_name;'];
|
||||
|
||||
|
||||
}
|
0
Modules/Recruit/app/Observers/.gitkeep
Normal file
0
Modules/Recruit/app/Observers/.gitkeep
Normal file
0
Modules/Recruit/app/Providers/.gitkeep
Normal file
0
Modules/Recruit/app/Providers/.gitkeep
Normal file
127
Modules/Recruit/app/Providers/RecruitServiceProvider.php
Normal file
127
Modules/Recruit/app/Providers/RecruitServiceProvider.php
Normal file
@ -0,0 +1,127 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Modules\Recruit\Repositories\InterviewScheduleInterface;
|
||||
use Modules\Recruit\Repositories\InterviewScheduleRepository;
|
||||
use Modules\Recruit\Repositories\JobApplicationInterface;
|
||||
use Modules\Recruit\Repositories\JobApplicationRepository;
|
||||
use Modules\Recruit\Repositories\JobPostInterface;
|
||||
use Modules\Recruit\Repositories\JobPostRepository;
|
||||
use Modules\Recruit\Repositories\OfferLetterInterface;
|
||||
use Modules\Recruit\Repositories\OfferLetterRepository;
|
||||
|
||||
class RecruitServiceProvider extends ServiceProvider
|
||||
{
|
||||
protected string $moduleName = 'Recruit';
|
||||
|
||||
protected string $moduleNameLower = 'recruit';
|
||||
|
||||
/**
|
||||
* Boot the application events.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
$this->registerCommands();
|
||||
$this->registerCommandSchedules();
|
||||
$this->registerTranslations();
|
||||
$this->registerConfig();
|
||||
$this->registerViews();
|
||||
$this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the service provider.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->bind(OfferLetterInterface::class,OfferLetterRepository::class);
|
||||
$this->app->bind(JobPostInterface::class, JobPostRepository::class);
|
||||
$this->app->bind(JobApplicationInterface::class, JobApplicationRepository::class);
|
||||
$this->app->bind(InterviewScheduleInterface::class, InterviewScheduleRepository::class);
|
||||
$this->app->bind(JobPostInterface::class, JobPostRepository::class);
|
||||
$this->app->register(RouteServiceProvider::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register commands in the format of Command::class
|
||||
*/
|
||||
protected function registerCommands(): void
|
||||
{
|
||||
// $this->commands([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register command Schedules.
|
||||
*/
|
||||
protected function registerCommandSchedules(): void
|
||||
{
|
||||
// $this->app->booted(function () {
|
||||
// $schedule = $this->app->make(Schedule::class);
|
||||
// $schedule->command('inspire')->hourly();
|
||||
// });
|
||||
}
|
||||
|
||||
/**
|
||||
* Register translations.
|
||||
*/
|
||||
public function registerTranslations(): void
|
||||
{
|
||||
$langPath = resource_path('lang/modules/' . $this->moduleNameLower);
|
||||
|
||||
if (is_dir($langPath)) {
|
||||
$this->loadTranslationsFrom($langPath, $this->moduleNameLower);
|
||||
$this->loadJsonTranslationsFrom($langPath);
|
||||
} else {
|
||||
$this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower);
|
||||
$this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang'));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Register config.
|
||||
*/
|
||||
protected function registerConfig(): void
|
||||
{
|
||||
$this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower . '.php')], 'config');
|
||||
$this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register views.
|
||||
*/
|
||||
public function registerViews(): void
|
||||
{
|
||||
$viewPath = resource_path('views/modules/' . $this->moduleNameLower);
|
||||
$sourcePath = module_path($this->moduleName, 'resources/views');
|
||||
|
||||
$this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower . '-module-views']);
|
||||
|
||||
$this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower);
|
||||
|
||||
$componentNamespace = str_replace('/', '\\', config('modules.namespace') . '\\' . $this->moduleName . '\\' . ltrim(config('modules.paths.generator.component-class.path'), config('modules.paths.app_folder', '')));
|
||||
Blade::componentNamespace($componentNamespace, $this->moduleNameLower);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*/
|
||||
public function provides(): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
private function getPublishableViewPaths(): array
|
||||
{
|
||||
$paths = [];
|
||||
foreach (config('view.paths') as $path) {
|
||||
if (is_dir($path . '/modules/' . $this->moduleNameLower)) {
|
||||
$paths[] = $path . '/modules/' . $this->moduleNameLower;
|
||||
}
|
||||
}
|
||||
|
||||
return $paths;
|
||||
}
|
||||
}
|
49
Modules/Recruit/app/Providers/RouteServiceProvider.php
Normal file
49
Modules/Recruit/app/Providers/RouteServiceProvider.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Called before routes are registered.
|
||||
*
|
||||
* Register any model bindings or pattern based filters.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
parent::boot();
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the routes for the application.
|
||||
*/
|
||||
public function map(): void
|
||||
{
|
||||
$this->mapApiRoutes();
|
||||
|
||||
$this->mapWebRoutes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the "web" routes for the application.
|
||||
*
|
||||
* These routes all receive session state, CSRF protection, etc.
|
||||
*/
|
||||
protected function mapWebRoutes(): void
|
||||
{
|
||||
Route::middleware('web')->group(module_path('Recruit', '/routes/web.php'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Define the "api" routes for the application.
|
||||
*
|
||||
* These routes are typically stateless.
|
||||
*/
|
||||
protected function mapApiRoutes(): void
|
||||
{
|
||||
Route::middleware('api')->prefix('api')->name('api.')->group(module_path('Recruit', '/routes/api.php'));
|
||||
}
|
||||
}
|
0
Modules/Recruit/app/Repositories/.gitkeep
Normal file
0
Modules/Recruit/app/Repositories/.gitkeep
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
interface InterviewScheduleInterface
|
||||
{
|
||||
public function findAll();
|
||||
public function getInterviewScheduleById($interviewScheduleId);
|
||||
public function delete($interviewScheduleId);
|
||||
public function create(array $interviewScheduleDetails);
|
||||
public function update($interviewScheduleId, array $newDetails);
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
use Modules\Recruit\Models\InterviewSchedule;
|
||||
|
||||
|
||||
class InterviewScheduleRepository implements InterviewScheduleInterface
|
||||
{
|
||||
public function findAll()
|
||||
{
|
||||
return InterviewSchedule::get();
|
||||
}
|
||||
|
||||
public function getInterviewScheduleById($interviewScheduleId)
|
||||
{
|
||||
return InterviewSchedule::findOrFail($interviewScheduleId);
|
||||
}
|
||||
|
||||
public function delete($interviewScheduleId)
|
||||
{
|
||||
InterviewSchedule::destroy($interviewScheduleId);
|
||||
}
|
||||
|
||||
public function create(array $interviewScheduleDetails)
|
||||
{
|
||||
return InterviewSchedule::create($interviewScheduleDetails);
|
||||
}
|
||||
|
||||
public function update($interviewScheduleId, array $newDetails)
|
||||
{
|
||||
return InterviewSchedule::where('interview_schedule_id', $interviewScheduleId)->update($newDetails);
|
||||
}
|
||||
|
||||
}
|
14
Modules/Recruit/app/Repositories/JobApplicationInterface.php
Normal file
14
Modules/Recruit/app/Repositories/JobApplicationInterface.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
interface JobApplicationInterface
|
||||
{
|
||||
public function findAll();
|
||||
public function getJobApplicationById($jobApplicationId);
|
||||
public function delete($jobApplicationId);
|
||||
public function create(array $jobApplicationDetails);
|
||||
public function update($jobApplicationId, array $newDetails);
|
||||
|
||||
public function pluck();
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
use Modules\Recruit\Models\JobApplication;
|
||||
|
||||
|
||||
class JobApplicationRepository implements JobApplicationInterface
|
||||
{
|
||||
public function findAll()
|
||||
{
|
||||
return JobApplication::get();
|
||||
}
|
||||
|
||||
public function getJobApplicationById($jobApplicationId)
|
||||
{
|
||||
return JobApplication::findOrFail($jobApplicationId);
|
||||
}
|
||||
|
||||
public function delete($jobApplicationId)
|
||||
{
|
||||
JobApplication::destroy($jobApplicationId);
|
||||
}
|
||||
|
||||
public function create(array $jobApplicationDetails)
|
||||
{
|
||||
return JobApplication::create($jobApplicationDetails);
|
||||
}
|
||||
|
||||
public function update($jobApplicationId, array $newDetails)
|
||||
{
|
||||
return JobApplication::where('job_application_id', $jobApplicationId)->update($newDetails);
|
||||
}
|
||||
|
||||
public function pluck()
|
||||
{
|
||||
return JobApplication::pluck('name', 'job_application_id');
|
||||
}
|
||||
|
||||
}
|
13
Modules/Recruit/app/Repositories/JobPostInterface.php
Normal file
13
Modules/Recruit/app/Repositories/JobPostInterface.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
interface JobPostInterface
|
||||
{
|
||||
public function findAll();
|
||||
public function pluck();
|
||||
public function getJobPostById($jobPostId);
|
||||
public function delete($jobPostId);
|
||||
public function create(array $jobPostDetails);
|
||||
public function update($jobPostId, array $newDetails);
|
||||
}
|
39
Modules/Recruit/app/Repositories/JobPostRepository.php
Normal file
39
Modules/Recruit/app/Repositories/JobPostRepository.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
use Modules\Recruit\Models\JobPost;
|
||||
|
||||
|
||||
class JobPostRepository implements JobPostInterface
|
||||
{
|
||||
public function findAll()
|
||||
{
|
||||
return JobPost::get();
|
||||
}
|
||||
|
||||
public function getJobPostById($jobPostId)
|
||||
{
|
||||
return JobPost::findOrFail($jobPostId);
|
||||
}
|
||||
|
||||
public function delete($jobPostId)
|
||||
{
|
||||
JobPost::destroy($jobPostId);
|
||||
}
|
||||
|
||||
public function create(array $jobPostDetails)
|
||||
{
|
||||
return JobPost::create($jobPostDetails);
|
||||
}
|
||||
|
||||
public function update($jobPostId, array $newDetails)
|
||||
{
|
||||
return JobPost::where('job_post_id', $jobPostId)->update($newDetails);
|
||||
}
|
||||
|
||||
public function pluck(){
|
||||
return JobPost::pluck('title', 'job_post_id');
|
||||
}
|
||||
|
||||
}
|
13
Modules/Recruit/app/Repositories/OfferLetterInterface.php
Normal file
13
Modules/Recruit/app/Repositories/OfferLetterInterface.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
interface OfferLetterInterface
|
||||
{
|
||||
public function findAll();
|
||||
public function pluck();
|
||||
public function getOfferLetterById($offerLetterId);
|
||||
public function delete($offerLetterId);
|
||||
public function create(array $offerLetterDetails);
|
||||
public function update($offerLetterId, array $newDetails);
|
||||
}
|
40
Modules/Recruit/app/Repositories/OfferLetterRepository.php
Normal file
40
Modules/Recruit/app/Repositories/OfferLetterRepository.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Recruit\Repositories;
|
||||
|
||||
use Modules\Recruit\Models\OfferLetter;
|
||||
|
||||
|
||||
class OfferLetterRepository implements OfferLetterInterface
|
||||
{
|
||||
public function findAll()
|
||||
{
|
||||
return OfferLetter::get();
|
||||
}
|
||||
|
||||
public function getOfferLetterById($offerLetterId)
|
||||
{
|
||||
return OfferLetter::findOrFail($offerLetterId);
|
||||
}
|
||||
|
||||
public function delete($offerLetterId)
|
||||
{
|
||||
OfferLetter::destroy($offerLetterId);
|
||||
}
|
||||
|
||||
public function create(array $offerLetterDetails)
|
||||
{
|
||||
return OfferLetter::create($offerLetterDetails);
|
||||
}
|
||||
|
||||
public function update($offerLetterId, array $newDetails)
|
||||
{
|
||||
return OfferLetter::where('offer_letter_id', $offerLetterId)->update($newDetails);
|
||||
}
|
||||
|
||||
public function pluck()
|
||||
{
|
||||
return OfferLetter::pluck('title', 'offer_letter_id');
|
||||
}
|
||||
|
||||
}
|
30
Modules/Recruit/composer.json
Normal file
30
Modules/Recruit/composer.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "nwidart/recruit",
|
||||
"description": "",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Widart",
|
||||
"email": "n.widart@gmail.com"
|
||||
}
|
||||
],
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"providers": [],
|
||||
"aliases": {
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Modules\\Recruit\\": "app/",
|
||||
"Modules\\Recruit\\Database\\Factories\\": "database/factories/",
|
||||
"Modules\\Recruit\\Database\\Seeders\\": "database/seeders/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"Modules\\Recruit\\Tests\\": "tests/"
|
||||
}
|
||||
}
|
||||
}
|
0
Modules/Recruit/config/.gitkeep
Normal file
0
Modules/Recruit/config/.gitkeep
Normal file
5
Modules/Recruit/config/config.php
Normal file
5
Modules/Recruit/config/config.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => 'Recruit',
|
||||
];
|
0
Modules/Recruit/database/factories/.gitkeep
Normal file
0
Modules/Recruit/database/factories/.gitkeep
Normal file
0
Modules/Recruit/database/migrations/.gitkeep
Normal file
0
Modules/Recruit/database/migrations/.gitkeep
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tbl_job_posts', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('job_post_id')->autoIncrement();
|
||||
$table->text('title')->nullable();
|
||||
$table->text('alias')->nullable();
|
||||
$table->unsignedInteger('vacancy_no')->nullable();
|
||||
$table->unsignedBigInteger('department_id')->nullable();
|
||||
$table->unsignedBigInteger('designation_id')->nullable();
|
||||
$table->date('post_date')->nullable();
|
||||
$table->date('expiry_date')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->longText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updateBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_job_posts');
|
||||
}
|
||||
};
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tbl_job_applications', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('job_application_id')->autoIncrement();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('address')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->string('gender')->nullable();
|
||||
$table->unsignedBigInteger('job_post_id')->nullable();
|
||||
$table->string('working_experience')->nullable();
|
||||
$table->string('prev_company')->nullable();
|
||||
$table->string('working_mode')->nullable();
|
||||
$table->string('working_type')->nullable();
|
||||
$table->string('working_shift')->nullable();
|
||||
$table->date('apply_date')->nullable();
|
||||
$table->string('recommended_by')->nullable();
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->unsignedBigInteger('status')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_job_applications');
|
||||
}
|
||||
};
|
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tbl_interview_schedules', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('interview_schedule_id')->autoIncrement();
|
||||
$table->unsignedBigInteger('job_post_id')->nullable();
|
||||
$table->string('interviewer_choices')->nullable();
|
||||
$table->string('interviewer_approved')->nullable();
|
||||
$table->date('scheduled_date')->nullable();
|
||||
$table->time('scheduled_time')->nullable();
|
||||
$table->date('arranged_date')->nullable();
|
||||
$table->string('interview_mode')->nullable();
|
||||
$table->unsignedBigInteger('arranged_by')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_interview_schedules');
|
||||
}
|
||||
};
|
@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tbl_offer_letters', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('offer_letter_id')->autoIncrement();
|
||||
$table->string('applicant_name')->nullable();
|
||||
$table->unsignedBigInteger('job_post_id')->nullable();
|
||||
$table->unsignedBigInteger('job_application_id')->nullable();
|
||||
$table->unsignedBigInteger('department_id')->nullable();
|
||||
$table->unsignedBigInteger('designation_id')->nullable();
|
||||
$table->unsignedBigInteger('work_shift_id')->nullable();
|
||||
$table->unsignedBigInteger('contract_time_period')->nullable();
|
||||
$table->decimal('salary')->nullable();
|
||||
$table->date('joining_date')->nullable();
|
||||
$table->date('issued_date')->nullable();
|
||||
$table->unsignedBigInteger('issued_by')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_offer_letters');
|
||||
}
|
||||
};
|
0
Modules/Recruit/database/seeders/.gitkeep
Normal file
0
Modules/Recruit/database/seeders/.gitkeep
Normal file
11
Modules/Recruit/module.json
Normal file
11
Modules/Recruit/module.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "Recruit",
|
||||
"alias": "recruit",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
"priority": 0,
|
||||
"providers": [
|
||||
"Modules\\Recruit\\Providers\\RecruitServiceProvider"
|
||||
],
|
||||
"files": []
|
||||
}
|
0
Modules/Recruit/resources/assets/.gitkeep
Normal file
0
Modules/Recruit/resources/assets/.gitkeep
Normal file
0
Modules/Recruit/resources/assets/js/app.js
Normal file
0
Modules/Recruit/resources/assets/js/app.js
Normal file
0
Modules/Recruit/resources/assets/sass/app.scss
Normal file
0
Modules/Recruit/resources/assets/sass/app.scss
Normal file
0
Modules/Recruit/resources/views/.gitkeep
Normal file
0
Modules/Recruit/resources/views/.gitkeep
Normal file
7
Modules/Recruit/resources/views/index.blade.php
Normal file
7
Modules/Recruit/resources/views/index.blade.php
Normal file
@ -0,0 +1,7 @@
|
||||
@extends('recruit::layouts.master')
|
||||
|
||||
@section('content')
|
||||
<h1>Hello World</h1>
|
||||
|
||||
<p>Module: {!! config('recruit.name') !!}</p>
|
||||
@endsection
|
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->form('POST')->route('interviewSchedule.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.interviewschedules.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->modelForm($interviewSchedule, 'PUT')->route('interviewSchedule.update', $interviewSchedule->interview_schedule_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.interviewschedules.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -0,0 +1,130 @@
|
||||
@inject('employeeRepository', 'Modules\Employee\Repositories\EmployeeRepository')
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('interviewSchedule.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Schedule</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="tb-col"><span class="overline-title">S.N</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Designation</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Post</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Interviewer Choices</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Interviewer Approved</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Scheduled Date</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Scheduled Time</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Status</span></th>
|
||||
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($interviewScheduleLists as $index => $item)
|
||||
<tr>
|
||||
<td class="tb-col">{{ $index + 1 }}</td>
|
||||
<td class="tb-col">{{ $item->jobPost?->designation?->name }}</td>
|
||||
<td class="tb-col">{{ $item->jobPost?->title }}</td>
|
||||
<td>
|
||||
<div class="avatar-group flex-nowrap">
|
||||
|
||||
@isset($item->interviewer_choices)
|
||||
@foreach ($item->interviewer_choices as $interviewId)
|
||||
@php
|
||||
$interviewer = $employeeRepository->getEmployeeById(
|
||||
$interviewId,
|
||||
);
|
||||
@endphp
|
||||
|
||||
<div class="avatar-group-item">
|
||||
<a href="javascript: void(0);" class="d-inline-block"
|
||||
data-bs-toggle="tooltip" data-bs-trigger="hover"
|
||||
data-bs-placement="top" aria-label="{{ $interviewer?->full_name }}"
|
||||
data-bs-original-title="{{ $interviewer?->full_name }}">
|
||||
<img src="{{ asset($interviewer?->profile_pic) }}" alt=""
|
||||
class="rounded-circle avatar-xxs">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@endisset
|
||||
</div>
|
||||
</td>
|
||||
<td class="tb-col">
|
||||
<div class="avatar-group flex-nowrap">
|
||||
@isset($item->interviewer_choices)
|
||||
@foreach ($item->interviewer_choices as $interviewId)
|
||||
@php
|
||||
$interviewer = $employeeRepository->getEmployeeById(
|
||||
$interviewId,
|
||||
);
|
||||
@endphp
|
||||
|
||||
<div class="avatar-group-item">
|
||||
<a href="javascript: void(0);" class="d-inline-block"
|
||||
data-bs-toggle="tooltip" data-bs-trigger="hover"
|
||||
data-bs-placement="top" aria-label="{{ $interviewer?->full_name }}"
|
||||
data-bs-original-title="{{ $interviewer?->full_name }}">
|
||||
<img src="{{ asset($interviewer?->profile_pic) }}" alt=""
|
||||
class="rounded-circle avatar-xxs">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@endisset
|
||||
</div>
|
||||
</td>
|
||||
<td class="tb-col">{{ $item->scheduled_date }}</td>
|
||||
<td class="tb-col">{{ $item->scheduled_time?->format('H:i A') }}</td>
|
||||
<td class="tb-col">{!! $item->status_name !!}</td>
|
||||
<td class="tb-col">
|
||||
<div class="dropdown d-inline-block">
|
||||
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
|
||||
data-bs-toggle="dropdown" aria-expanded="false">
|
||||
<i class="ri-more-fill align-middle"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-end">
|
||||
<li><a href="{{ route('interviewSchedule.show', [$item->interview_schedule_id]) }}"
|
||||
class="dropdown-item"><i
|
||||
class="ri-eye-fill text-muted me-2 align-bottom"></i> View</a>
|
||||
</li>
|
||||
|
||||
<li><a href="{{ route('interviewSchedule.edit', [$item->interview_schedule_id]) }}"
|
||||
class="dropdown-item edit-item-btn"><i
|
||||
class="ri-pencil-fill text-muted me-2 align-bottom"></i>
|
||||
Edit</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ route('interviewSchedule.destroy', [$item->interview_schedule_id]) }}"
|
||||
class="dropdown-item remove-item-btn"
|
||||
onclick="confirmDelete(this.href)">
|
||||
<i class="ri-delete-bin-fill text-muted me-2 align-bottom"></i>
|
||||
Delete
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -0,0 +1,48 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">View Detail</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('designations.index') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Back to List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='card-body'>
|
||||
<p><b>Title : </b> <span>{{ $data->title }}</span></p>
|
||||
<p><b>Alias : </b> <span>{{ $data->alias }}</span></p>
|
||||
<p><b>Status : </b> <span
|
||||
class="{{ $data->status == 1 ? 'text-success' : 'text-danger' }}">{{ $data->status == 1 ? 'Active' : 'Inactive' }}</span>
|
||||
</p>
|
||||
<p><b>Remarks : </b> <span>{{ $data->remarks }}</span></p>
|
||||
<p><b>Display Order : </b> <span>{{ $data->display_order }}</span></p>
|
||||
<p><b>Createdby : </b> <span>{{ $data->createdby }}</span></p>
|
||||
<p><b>Updatedby : </b> <span>{{ $data->updatedby }}</span></p>
|
||||
<p><b>Job Description : </b> <span>{{ $data->job_description }}</span></p>
|
||||
<p><b>Departments Id : </b> <span>{{ $data->departments_id }}</span></p>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<p><b>Created On :</b> <span>{{ $data->created_at }}</span></p>
|
||||
<p><b>Created By :</b> <span>{{ $data->createdBy }}</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><b>Updated On :</b> <span>{{ $data->updated_at }}</span></p>
|
||||
<p><b>Updated By :</b> <span>{{ $data->updatedBy }}</span></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endSection
|
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->form('POST')->route('jobApplication.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.jobapplications.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->modelForm($jobApplication, 'PUT')->route('jobApplication.update', $jobApplication->job_application_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.jobapplications.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -0,0 +1,77 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('jobApplication.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Create</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="tb-col"><span class="overline-title">S.N</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Department</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Designation</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Post</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Name</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Working Experience</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Prev Company</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Apply Date</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Status</span></th>
|
||||
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($jobApplicationLists as $index => $item)
|
||||
<tr>
|
||||
<td class="tb-col">{{ $index + 1 }}</td>
|
||||
<td class="tb-col">{{ $item->jobPost?->department?->name }}</td>
|
||||
<td class="tb-col">{{ $item->jobPost?->designation?->name }}</td>
|
||||
<td class="tb-col">{{ $item->jobPost?->title }}</td>
|
||||
<td class="tb-col">{{ $item->name }}</td>
|
||||
<td class="tb-col">{{ $item->prev_company }}</td>
|
||||
<td class="tb-col">{{ $item->working_experience }}</td>
|
||||
<td class="tb-col">{{ $item->apply_date->format('Y-m-d') }}</td>
|
||||
<td class="tb-col">{!! $item->status_name !!}</td>
|
||||
<td>
|
||||
<div class="hstack flex-wrap gap-3">
|
||||
<a href="javascript:void(0);" class="link-info fs-15 view-item-btn"
|
||||
data-bs-toggle="modal" data-bs-target="#viewModal">
|
||||
<i class="ri-eye-line"></i>
|
||||
</a>
|
||||
@can('jobApplication.edit')
|
||||
<a href="{{ route('jobApplication.edit', $item->job_application_id) }}"
|
||||
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
|
||||
@endcan
|
||||
|
||||
@can('jobApplication.destroy')
|
||||
<a href="javascript:void(0);"
|
||||
data-link="{{ route('jobApplication.destroy', $item->job_application_id) }}"
|
||||
data-id="{{ $item->job_application_id }}"
|
||||
class="link-danger fs-15 remove-item-btn"><i
|
||||
class="ri-delete-bin-line"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -0,0 +1,48 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">View Detail</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('designations.index') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Back to List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='card-body'>
|
||||
<p><b>Title : </b> <span>{{ $data->title }}</span></p>
|
||||
<p><b>Alias : </b> <span>{{ $data->alias }}</span></p>
|
||||
<p><b>Status : </b> <span
|
||||
class="{{ $data->status == 1 ? 'text-success' : 'text-danger' }}">{{ $data->status == 1 ? 'Active' : 'Inactive' }}</span>
|
||||
</p>
|
||||
<p><b>Remarks : </b> <span>{{ $data->remarks }}</span></p>
|
||||
<p><b>Display Order : </b> <span>{{ $data->display_order }}</span></p>
|
||||
<p><b>Createdby : </b> <span>{{ $data->createdby }}</span></p>
|
||||
<p><b>Updatedby : </b> <span>{{ $data->updatedby }}</span></p>
|
||||
<p><b>Job Description : </b> <span>{{ $data->job_description }}</span></p>
|
||||
<p><b>Departments Id : </b> <span>{{ $data->departments_id }}</span></p>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<p><b>Created On :</b> <span>{{ $data->created_at }}</span></p>
|
||||
<p><b>Created By :</b> <span>{{ $data->createdBy }}</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><b>Updated On :</b> <span>{{ $data->updated_at }}</span></p>
|
||||
<p><b>Updated By :</b> <span>{{ $data->updatedBy }}</span></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endSection
|
23
Modules/Recruit/resources/views/jobposts/create.blade.php
Normal file
23
Modules/Recruit/resources/views/jobposts/create.blade.php
Normal file
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->form('POST')->route('jobPost.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.jobposts.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
23
Modules/Recruit/resources/views/jobposts/edit.blade.php
Normal file
23
Modules/Recruit/resources/views/jobposts/edit.blade.php
Normal file
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->modelForm($jobPost, 'PUT')->route('jobPost.update', $jobPost->job_post_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.jobposts.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
78
Modules/Recruit/resources/views/jobposts/index.blade.php
Normal file
78
Modules/Recruit/resources/views/jobposts/index.blade.php
Normal file
@ -0,0 +1,78 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('jobPost.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Create</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="tb-col"><span class="overline-title">S.N</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Department</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Designation</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Title</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Vacancy Number</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Post Date</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Expiry Date</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Post By</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Status</span></th>
|
||||
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($jobPostLists as $index => $item)
|
||||
<tr>
|
||||
<td class="tb-col">{{ $index + 1 }}</td>
|
||||
<td class="tb-col">{{ $item->department?->name }}</td>
|
||||
<td class="tb-col">{{ $item->designation?->name }}</td>
|
||||
<td class="tb-col">{{ $item->title }}</td>
|
||||
<td class="tb-col">{{ $item->vacancy_no }}</td>
|
||||
<td class="tb-col">
|
||||
{{ $item->post_date }}</td>
|
||||
<td class="tb-col">{{ $item->expiry_date }}</td>
|
||||
<td class="tb-col">{{ $item->jobPoster?->full_name }}</td>
|
||||
<td class="tb-col">{!! $item->status_name !!}</td>
|
||||
<td>
|
||||
<div class="hstack flex-wrap gap-3">
|
||||
<a href="javascript:void(0);" class="link-info fs-15 view-item-btn"
|
||||
data-bs-toggle="modal" data-bs-target="#viewModal">
|
||||
<i class="ri-eye-line"></i>
|
||||
</a>
|
||||
@can('jobPost.edit')
|
||||
<a href="{{ route('jobPost.edit', $item->job_post_id) }}"
|
||||
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
|
||||
@endcan
|
||||
|
||||
@can('jobPost.destroy')
|
||||
<a href="javascript:void(0);"
|
||||
data-link="{{ route('jobPost.destroy', $item->job_post_id) }}"
|
||||
data-id="{{ $item->job_post_id }}"
|
||||
class="link-danger fs-15 remove-item-btn"><i
|
||||
class="ri-delete-bin-line"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
48
Modules/Recruit/resources/views/jobposts/show.blade.php
Normal file
48
Modules/Recruit/resources/views/jobposts/show.blade.php
Normal file
@ -0,0 +1,48 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">View Detail</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('designations.index') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Back to List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='card-body'>
|
||||
<p><b>Title : </b> <span>{{ $data->title }}</span></p>
|
||||
<p><b>Alias : </b> <span>{{ $data->alias }}</span></p>
|
||||
<p><b>Status : </b> <span
|
||||
class="{{ $data->status == 1 ? 'text-success' : 'text-danger' }}">{{ $data->status == 1 ? 'Active' : 'Inactive' }}</span>
|
||||
</p>
|
||||
<p><b>Remarks : </b> <span>{{ $data->remarks }}</span></p>
|
||||
<p><b>Display Order : </b> <span>{{ $data->display_order }}</span></p>
|
||||
<p><b>Createdby : </b> <span>{{ $data->createdby }}</span></p>
|
||||
<p><b>Updatedby : </b> <span>{{ $data->updatedby }}</span></p>
|
||||
<p><b>Job Description : </b> <span>{{ $data->job_description }}</span></p>
|
||||
<p><b>Departments Id : </b> <span>{{ $data->departments_id }}</span></p>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<p><b>Created On :</b> <span>{{ $data->created_at }}</span></p>
|
||||
<p><b>Created By :</b> <span>{{ $data->createdBy }}</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><b>Updated On :</b> <span>{{ $data->updated_at }}</span></p>
|
||||
<p><b>Updated By :</b> <span>{{ $data->updatedBy }}</span></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endSection
|
29
Modules/Recruit/resources/views/layouts/master.blade.php
Normal file
29
Modules/Recruit/resources/views/layouts/master.blade.php
Normal file
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
|
||||
<title>Recruit Module - {{ config('app.name', 'Laravel') }}</title>
|
||||
|
||||
<meta name="description" content="{{ $description ?? '' }}">
|
||||
<meta name="keywords" content="{{ $keywords ?? '' }}">
|
||||
<meta name="author" content="{{ $author ?? '' }}">
|
||||
|
||||
<!-- Fonts -->
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
{{-- Vite CSS --}}
|
||||
{{-- {{ module_vite('build-recruit', 'resources/assets/sass/app.scss') }} --}}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@yield('content')
|
||||
|
||||
{{-- Vite JS --}}
|
||||
{{-- {{ module_vite('build-recruit', 'resources/assets/js/app.js') }} --}}
|
||||
</body>
|
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->form('POST')->route('offerLetter.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.offerLetters.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
23
Modules/Recruit/resources/views/offerletters/edit.blade.php
Normal file
23
Modules/Recruit/resources/views/offerletters/edit.blade.php
Normal file
@ -0,0 +1,23 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class='card-body'>
|
||||
|
||||
{{ html()->modelForm($offerLetter, 'PUT')->route('offerLetter.update', $offerLetter->interview_schedule_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
|
||||
|
||||
@include('recruit::partials.offerletters.action')
|
||||
|
||||
{{ html()->form()->close() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
76
Modules/Recruit/resources/views/offerletters/index.blade.php
Normal file
76
Modules/Recruit/resources/views/offerletters/index.blade.php
Normal file
@ -0,0 +1,76 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('offerLetter.create') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Create</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="buttons-datatables" class="display table-sm table-bordered table">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th class="tb-col"><span class="overline-title">S.N</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Name</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Designation</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Joining Date</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Issued By</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Issued Date</span></th>
|
||||
<th class="tb-col"><span class="overline-title">Status</span></th>
|
||||
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($offerLetterLists as $index => $item)
|
||||
<tr>
|
||||
<td class="tb-col">{{ $index + 1 }}</td>
|
||||
<td class="tb-col">{{ $item->applicant_name }}</td>
|
||||
<td class="tb-col">{{ $item->designation_id }}</td>
|
||||
<td class="tb-col">{{ $item->joining_date }}</td>
|
||||
<td class="tb-col">{{ $item->issued_by }}</td>
|
||||
<td class="tb-col">{{ $item->issued_date }}</td>
|
||||
<td class="tb-col">{!! $item->status_name !!}</td>
|
||||
<td>
|
||||
<div class="hstack flex-wrap gap-3">
|
||||
<a href="javascript:void(0);" class="link-info fs-15 view-item-btn"
|
||||
data-bs-toggle="modal" data-bs-target="#viewModal">
|
||||
<i class="ri-eye-line"></i>
|
||||
</a>
|
||||
@can('offerLetter.edit')
|
||||
<a href="{{ route('offerLetter.edit', $item->offer_Letter_id) }}"
|
||||
class="link-success fs-15 edit-item-btn"><i class="ri-edit-2-line"></i></a>
|
||||
@endcan
|
||||
<a href="javascript:void(0);" class="link-dark fs-15 view-item-btn"
|
||||
data-bs-toggle="modal" data-bs-target="#statusModal">
|
||||
<i class="ri-check-double-line"></i>
|
||||
</a>
|
||||
@can('offerLetter.destroy')
|
||||
<a href="javascript:void(0);"
|
||||
data-link="{{ route('offerLetter.destroy', $item->offer_Letter_id) }}"
|
||||
data-id="{{ $item->offer_Letter_id }}"
|
||||
class="link-danger fs-15 remove-item-btn"><i
|
||||
class="ri-delete-bin-line"></i></a>
|
||||
@endcan
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
48
Modules/Recruit/resources/views/offerletters/show.blade.php
Normal file
48
Modules/Recruit/resources/views/offerletters/show.blade.php
Normal file
@ -0,0 +1,48 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<div class="page-content">
|
||||
<div class="container-fluid">
|
||||
|
||||
<!-- start page title -->
|
||||
@include('layouts.partials.breadcrumb', ['title' => $title])
|
||||
|
||||
<!-- end page title -->
|
||||
|
||||
<div class='card'>
|
||||
<div class="card-header align-items-center d-flex">
|
||||
<h5 class="card-title flex-grow-1 mb-0">View Detail</h5>
|
||||
<div class="flex-shrink-0">
|
||||
<a href="{{ route('designations.index') }}" class="btn btn-success waves-effect waves-light"><i
|
||||
class="ri-add-fill me-1 align-bottom"></i> Back to List</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class='card-body'>
|
||||
<p><b>Title : </b> <span>{{ $data->title }}</span></p>
|
||||
<p><b>Alias : </b> <span>{{ $data->alias }}</span></p>
|
||||
<p><b>Status : </b> <span
|
||||
class="{{ $data->status == 1 ? 'text-success' : 'text-danger' }}">{{ $data->status == 1 ? 'Active' : 'Inactive' }}</span>
|
||||
</p>
|
||||
<p><b>Remarks : </b> <span>{{ $data->remarks }}</span></p>
|
||||
<p><b>Display Order : </b> <span>{{ $data->display_order }}</span></p>
|
||||
<p><b>Createdby : </b> <span>{{ $data->createdby }}</span></p>
|
||||
<p><b>Updatedby : </b> <span>{{ $data->updatedby }}</span></p>
|
||||
<p><b>Job Description : </b> <span>{{ $data->job_description }}</span></p>
|
||||
<p><b>Departments Id : </b> <span>{{ $data->departments_id }}</span></p>
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<p><b>Created On :</b> <span>{{ $data->created_at }}</span></p>
|
||||
<p><b>Created By :</b> <span>{{ $data->createdBy }}</span></p>
|
||||
</div>
|
||||
<div>
|
||||
<p><b>Updated On :</b> <span>{{ $data->updated_at }}</span></p>
|
||||
<p><b>Updated By :</b> <span>{{ $data->updatedBy }}</span></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endSection
|
@ -0,0 +1,57 @@
|
||||
<div class="row gy-3">
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Job Post')->class('form-label') }}
|
||||
{{ html()->select('job_post_id', $jobPostLists)->class('form-select select2')->placeholder('Schedule For') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Schedule Date')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->date('scheduled_date')->class('form-control flatpickr-date') }}
|
||||
<span class="input-group-text"><i class="ri-calendar-line"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Schedule Time')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->text('scheduled_time')->class('form-control')->attributes(['data-provider' => 'timepickr', 'data-time-basic' => 'true']) }}
|
||||
<span class="input-group-text"><i class="ri-time-line"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Interview Mode')->class('form-label') }}
|
||||
{{ html()->select('interview_mode', ['online' => 'Online', 'physical' => 'Physical'])->class('form-select select2')->placeholder('Interview Mode') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Arranged by')->class('form-label') }}
|
||||
{{ html()->select('arranged_by', $employeeLists)->class('form-select select2')->placeholder('Arranged By') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Arranged Date')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->date('arranged_date')->class('form-control flatpickr-date') }}
|
||||
<span class="input-group-text"><i class="ri-calendar-line"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Interviewer')->class('form-label') }}
|
||||
{{ html()->multiselect('interviewer_choices[]', $employeeLists)->placeholder('Pick Interviewer')->class('form-control select2')->value($task->interview_choices ?? null)->attributes(['multiple'])->required() }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Description')->class('form-label') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic') }}
|
||||
</div>
|
||||
|
||||
<x-form-buttons :editable="$editable" label="Add" href="{{ route('interviewSchedule.index') }}" />
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
@endpush
|
@ -0,0 +1,79 @@
|
||||
<div class="row gy-3">
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Job Post')->class('form-label') }}
|
||||
{{ html()->select('job_post_id', $jobPostLists)->class('form-select select2')->placeholder('Apply For') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Name')->class('form-label') }}
|
||||
{{ html()->text('name')->class('form-control')->placeholder('Full Name')->required() }}
|
||||
{{ html()->div('Please enter Name')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Email')->class('form-label') }}
|
||||
{{ html()->text('email')->class('form-control')->placeholder('Email Address')->required() }}
|
||||
{{ html()->div('Please enter email address')->class('invalid-feedback') }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Gender')->class('form-label') }}
|
||||
{{ html()->select('gender', $genderLists)->class('form-control select2')->placeholder('Gender') }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Address')->class('form-label') }}
|
||||
{{ html()->text('address')->class('form-control')->placeholder('Full Address')->required() }}
|
||||
{{ html()->div('Please enter address')->class('invalid-feedback') }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Contact')->class('form-label') }}
|
||||
{{ html()->text('phone')->class('form-control')->placeholder('Contact Number')->required() }}
|
||||
{{ html()->div('Please enter contact number')->class('invalid-feedback') }}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Working Experience')->class('form-label') }}
|
||||
{{ html()->text('working_experience')->class('form-control')->placeholder('Working Experience') }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Previous Company Name (If any)')->class('form-label') }}
|
||||
{{ html()->text('prev_company')->class('form-control')->placeholder('Previous Company Name') }}
|
||||
{{ html()->div('Please enter email')->class('invalid-feedback') }}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Apply Date')->class('form-label') }}
|
||||
{{ html()->text('apply_date')->class('form-control flatpickr-date')->placeholder('Apply Date')->required() }}
|
||||
{{ html()->div('Please enter apply date')->class('invalid-feedback') }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Recommended By (If any)')->class('form-label') }}
|
||||
{{ html()->text('recommended_by')->class('form-control')->placeholder('Recommended By') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Description')->class('form-label') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic') }}
|
||||
</div>
|
||||
|
||||
<x-form-buttons :editable="$editable" label="Add" href="{{route('jobApplication.index')}}" />
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
@endpush
|
@ -0,0 +1,58 @@
|
||||
<div class="row gy-2">
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('For Department')->class('form-label') }}
|
||||
{{ html()->select('department_id', $departmentLists)->class('form-select select2')->placeholder('Department')->required() }}
|
||||
{{ html()->div('Please select department')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('For Designation')->class('form-label') }}
|
||||
{{ html()->select('designation_id', $designationLists)->class('form-select select2')->placeholder('Designation')->required() }}
|
||||
{{ html()->div('Please select designation')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Title')->class('form-label') }}
|
||||
{{ html()->text('title')->class('form-control')->placeholder('Enter Title')->required() }}
|
||||
{{ html()->div('Please fill title')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Vacancy Number')->class('form-label') }}
|
||||
{{ html()->number('vacancy_no')->class('form-control')->placeholder('Job Vacancy Number')->required() }}
|
||||
{{ html()->div('Please add vacancy number')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Post Date')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->text('post_date')->class('form-control flatpickr-date')->placeholder('Job Post Date') }}
|
||||
<span class="input-group-text"><i class="ri-time-line"></i></span>
|
||||
</div>
|
||||
{{ html()->div('Please add post date')->class('invalid-feedback') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Expiry Date')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->text('expiry_date')->class('form-control flatpickr-date')->placeholder('Expiry Date') }}
|
||||
<span class="input-group-text"><i class="ri-time-line"></i></span>
|
||||
</div>
|
||||
|
||||
{{ html()->div('Please add expiry date')->class('invalid-feedback') }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Description')->class('form-label') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic')->attributes(['rows' => 3]) }}
|
||||
</div>
|
||||
|
||||
<x-form-buttons :editable='$editable' label='Add' href="{{ route('jobPost.index') }}" />
|
||||
|
||||
</div>
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
|
||||
@endpush
|
@ -0,0 +1,66 @@
|
||||
<div class="row gy-3">
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('From Post')->class('form-label') }}
|
||||
{{ html()->select('job_post_id', $jobPostLists)->class('form-select select2')->placeholder('Job Post') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('For Applicant')->class('form-label') }}
|
||||
{{ html()->select('job_application_id', $jobApplicationLists)->class('form-select select2')->placeholder('Applicant') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('For Department')->class('form-label') }}
|
||||
{{ html()->select('department_id', $departmentLists)->class('form-select select2')->placeholder('Department') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('For Designation')->class('form-label') }}
|
||||
{{ html()->select('designation_id', $designationLists)->class('form-select select2')->placeholder('Designation') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Working Shift')->class('form-label') }}
|
||||
{{ html()->select('work_shift_id', $workShiftLists)->class('form-select select2')->placeholder('Working Shift') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Applicant Name')->class('form-label') }}
|
||||
{{ html()->text('applicant_name')->class('form-control')->placeholder('Full Name') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Offered Salary')->class('form-label') }}
|
||||
{{ html()->number('salary')->class('form-control')->placeholder('Offered Salary') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Joining Date')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->text('joining_date')->class('form-control flatpickr-date') }}
|
||||
<span class="input-group-text"><i class="ri-calendar-event-line"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Issued Date')->class('form-label') }}
|
||||
<div class="input-group">
|
||||
{{ html()->text('issued_date')->class('form-control flatpickr-date') }}
|
||||
<span class="input-group-text"><i class="ri-calendar-event-line"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4 col-md-6">
|
||||
{{ html()->label('Issued By')->class('form-label') }}
|
||||
{{ html()->select('issued_by', $employeeLists)->class('form-select select2')->placeholder('Issued By') }}
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 col-md-12">
|
||||
{{ html()->label('Description')->class('form-label') }}
|
||||
{{ html()->textarea('description')->class('form-control ckeditor-classic') }}
|
||||
</div>
|
||||
|
||||
<x-form-buttons :editable='$editable' label="Add" href="{{ route('offerLetter.index') }}" />
|
||||
|
||||
</div>
|
0
Modules/Recruit/routes/.gitkeep
Normal file
0
Modules/Recruit/routes/.gitkeep
Normal file
19
Modules/Recruit/routes/api.php
Normal file
19
Modules/Recruit/routes/api.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Recruit\Http\Controllers\RecruitController;
|
||||
|
||||
/*
|
||||
*--------------------------------------------------------------------------
|
||||
* API Routes
|
||||
*--------------------------------------------------------------------------
|
||||
*
|
||||
* Here is where you can register API routes for your application. These
|
||||
* routes are loaded by the RouteServiceProvider within a group which
|
||||
* is assigned the "api" middleware group. Enjoy building your API!
|
||||
*
|
||||
*/
|
||||
|
||||
Route::middleware(['auth:sanctum'])->prefix('v1')->group(function () {
|
||||
Route::apiResource('recruit', RecruitController::class)->names('recruit');
|
||||
});
|
25
Modules/Recruit/routes/web.php
Normal file
25
Modules/Recruit/routes/web.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Modules\Recruit\Http\Controllers\InterviewScheduleController;
|
||||
use Modules\Recruit\Http\Controllers\JobApplicationController;
|
||||
use Modules\Recruit\Http\Controllers\JobPostController;
|
||||
use Modules\Recruit\Http\Controllers\OfferLetterController;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Web Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here is where you can register web routes for your application. These
|
||||
| routes are loaded by the RouteServiceProvider within a group which
|
||||
| contains the "web" middleware group. Now create something great!
|
||||
|
|
||||
*/
|
||||
|
||||
Route::group([], function () {
|
||||
Route::resource('job-post', JobPostController::class)->names('jobPost');
|
||||
Route::resource('job-application', JobApplicationController::class)->names('jobApplication');
|
||||
Route::resource('interview-schedule', InterviewScheduleController::class)->names('interviewSchedule');
|
||||
Route::resource('offer-letter', OfferLetterController::class)->names('offerLetter');
|
||||
});
|
Reference in New Issue
Block a user