fix job positions
This commit is contained in:
@@ -47,6 +47,18 @@ class JobPostingController extends BaseController
|
||||
return view('jobs/show', ['position' => $position]);
|
||||
}
|
||||
|
||||
public function trackDetailsClick(string $positionId)
|
||||
{
|
||||
$position = $this->positions->where('position_id', $positionId)->where('status', 'open')->first();
|
||||
if (!$position) {
|
||||
throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound('Position not found');
|
||||
}
|
||||
|
||||
$this->positions->recordDetailsClick($positionId);
|
||||
|
||||
return redirect()->to(site_url('careers/' . rawurlencode($positionId)));
|
||||
}
|
||||
|
||||
public function apply(string $positionId)
|
||||
{
|
||||
$position = $this->positions->where('position_id', $positionId)->where('status', 'open')->first();
|
||||
|
||||
Reference in New Issue
Block a user