Add cost calculator page and update header link
- Created a new cost calculator page with form functionality to select study options. - Updated the header to link to the new cost calculator route instead of a static PHP file.
This commit is contained in:
@@ -239,4 +239,17 @@ class WebsiteController extends Controller
|
||||
|
||||
return view("client.raffles.pages.resources-template", $data);
|
||||
}
|
||||
|
||||
public function costCalculator(Request $request)
|
||||
{
|
||||
$data['programs'] = $this->programService->findAll($request);
|
||||
$data['countryOptions'] = Country::where('status', 1)->where('parent_id', null)->pluck('title', 'id');
|
||||
$data['programLevelOptions'] = ProgramLevel::where('status', 1)->pluck('title', 'id');
|
||||
$data['intakeOptions'] = Program::INTAKE;
|
||||
$data['coopOptions'] = Coop::where('status', 1)->pluck('title', 'id');
|
||||
$data['testOptions'] = Test::where('status', 1)->where('parent_id', null)->pluck('title', 'id');
|
||||
$data['statusOptions'] = config('constants.page_status_options');
|
||||
|
||||
return view("client.raffles.pages.cost-calculator", $data);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user