feat: Enhance cost calculator functionality with new cost retrieval route and result display

This commit is contained in:
2025-08-18 17:00:40 +05:45
parent ba055ce495
commit 6b4a9f1ebe
7 changed files with 261 additions and 19 deletions

View File

@@ -144,7 +144,7 @@
<button data-step="4">Program</button>
</div>
<form id="multiStepForm">
<form id="multiStepForm" method="GET" action="{{ route('cost.getCost') }}">
<!-- Step 1: Select Country -->
<div class="tab-pane active" data-step="0">
@@ -153,9 +153,9 @@
<div class="d-flex flex-wrap">
@foreach ($countries as $country)
<div class="form-check country-card me-3 mb-3">
<input class="form-check-input" type="radio" name="country"
value="{{ $country->id }}" id="country_{{ $country->id }}">
<label class="form-check-label" for="country_{{ $country->id }}">
<input class="form-check-input" type="radio" name="country_id"
value="{{ $country->id }}" id="{{ $country->id }}">
<label class="form-check-label" for="{{ $country->id }}">
{{ $country->title }}
</label>
</div>
@@ -176,7 +176,7 @@
<div class="d-flex flex-wrap">
@foreach ($livingStatusOptions as $key => $status)
<div class="form-check status-card me-3 mb-3">
<input class="form-check-input" type="radio" name="status_type"
<input class="form-check-input" type="radio" name="status_type_id"
value="{{ $key }}" id="status_type_{{ $key }}">
<label class="form-check-label" for="status_type_{{ $key }}">
{{ $status }}
@@ -214,8 +214,7 @@
<div class="form-group">
@foreach ($programLevelOptions as $level)
<input type="radio" name="program_level" id="program_level_id"
value="program_level_id"> <label
<input type="radio" name="" id="" value=""> <label
for="program_level_id">{{ $level }}</label>
@endforeach
</div>
@@ -233,7 +232,7 @@
<div class="form-group">
<div class="d-flex flex-wrap">
@foreach ($programss as $key => $program)
<select name="country_id" class="form-control" required>
<select name="program_id" class="form-control" required>
<option value="">Select Program</option>
<option value="{{ $key }}">{{ $program }}</option>
</select>