fix job positions
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Successful in 1m22s

This commit is contained in:
root
2026-09-03 13:01:36 -04:00
parent c70f6bdc6e
commit 9e2f858343
9 changed files with 75 additions and 5 deletions
@@ -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();