feat: Enhance Cost Calculator with StayType integration and cost management features

This commit is contained in:
2025-08-15 00:01:21 +05:45
parent dee5d001b1
commit 5e0913b9f9
9 changed files with 123 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
<tr class="accomodation-cost">
<td>
{{ html()->select('accomodation_cost[' . $numInc . '][status]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->select('accomodation_cost[' . $numInc . '][stay_type_id]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->div('Please enter living status')->class('invalid-feedback') }}
</td>

View File

@@ -32,13 +32,13 @@
<div class="col-md-6">
{{ html()->label('Program Level')->class('form-label')->for('programlevel_id') }}
{{ html()->span('*')->class('text-danger') }}
{{ html()->select('programlevel_id', $programLevelOptions)->placeholder('Select')->class('form-select choices-select')->required() }}
{{ html()->select('programlevel_id', $programLevelOptions)->placeholder('Select')->class('form-select choices-select') }}
{{ html()->div('Please select program level')->class('invalid-feedback') }}
</div>
<div class="col-md-12">
{{ html()->label('Program')->class('form-label')->for('program_id') }}
{{ html()->select('program_id', $programOptions)->placeholder('Select')->class('form-select choices-select')->required() }}
{{ html()->select('program_id', $programOptions)->placeholder('Select')->class('form-select choices-select') }}
{{ html()->div('Please select program')->class('invalid-feedback') }}
</div>
</div>

View File

@@ -1,6 +1,6 @@
<tr class="living-cost">
<td>
{{ html()->select('living_cost[' . $numInc . '][status]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->select('living_cost[' . $numInc . '][stay_type_id]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->div('Please enter living status')->class('invalid-feedback') }}
</td>

View File

@@ -1,6 +1,6 @@
<tr class="onetime-cost">
<td>
{{ html()->select('onetime_cost[' . $numInc . '][status]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->select('onetime_cost[' . $numInc . '][stay_type_id]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->div('Please enter living status')->class('invalid-feedback') }}
</td>

View File

@@ -1,20 +1,20 @@
<tr class="onetime-cost">
<td>
{{ html()->select('other_services[' . $numInc . '][status]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->select('service_cost[' . $numInc . '][stay_type_id]', $livingStatusOptions)->class('form-select')->placeholder('-Select-')->value($value->id ?? null)->required() }}
{{ html()->div('Please enter living status')->class('invalid-feedback') }}
</td>
<td class="d-flex flex-column gap-2">
{{ html()->text('other_services[' . $numInc . '][flight_ticket]')->class('form-control')->value($value->flight_ticket ?? null)->placeholder('Flight Ticket') }}
{{ html()->text('service_cost[' . $numInc . '][flight_ticket]')->class('form-control')->value($value->flight_ticket ?? null)->placeholder('Flight Ticket') }}
</td>
<td>
{{ html()->text('other_services[' . $numInc . '][insurance]')->class('form-control')->value($value->insurance ?? null)->placeholder('Health Insurance') }}
{{ html()->text('service_cost[' . $numInc . '][insurance]')->class('form-control')->value($value->insurance ?? null)->placeholder('Health Insurance') }}
</td>
<td>
{{ html()->text('other_services[' . $numInc . '][extra]')->class('form-control')->value($value->extra ?? null)->placeholder('Extra') }}
{{ html()->text('service_cost[' . $numInc . '][extra]')->class('form-control')->value($value->extra ?? null)->placeholder('Extra') }}
</td>
<td class="align-middle">