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:
2025-08-12 17:59:36 +05:45
parent 59e5392370
commit 03c5955768
18 changed files with 778 additions and 514 deletions

View File

@@ -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);
}
}