feat: Enhance cost calculator functionality with new cost retrieval route and result display
This commit is contained in:
@@ -18,10 +18,6 @@ class CostCalculatorService
|
||||
$query->where("stay_type_id", $request->stay_type_id);
|
||||
}
|
||||
|
||||
if ($request->filled('program_id')) {
|
||||
Program::where('status', 1)-> where('id', $request->program_id)->get();
|
||||
}
|
||||
|
||||
})->latest()->paginate(10)->withQueryString();
|
||||
}
|
||||
|
||||
|
@@ -28,7 +28,7 @@
|
||||
|
||||
<div class="text-center">
|
||||
<p class="mb-0 fs-5 test-muted"><i>Estimated Cost Calculation For
|
||||
{{ $cost->country?->title ?? 'N/A' }}</i> (<strong
|
||||
{{ $cost->country?->title ?? 'N/A' }}</i> (<strong
|
||||
class="text-capitalize">{{ str_replace('_', ' ', $type) }}</strong>)
|
||||
</p>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user