maintained filteration in stay type in cost calculator

This commit is contained in:
2025-08-25 16:20:07 +05:45
parent dc32ac8f91
commit 658d3600a2
4 changed files with 184 additions and 166 deletions

View File

@@ -18,6 +18,7 @@ use Modules\CourseFinder\Models\Coop;
use Modules\CourseFinder\Models\Program;
use Modules\CourseFinder\Models\ProgramLevel;
use Modules\CourseFinder\Services\ProgramService;
use Illuminate\Support\Str;
class WebsiteController extends Controller
{
@@ -328,14 +329,16 @@ class WebsiteController extends Controller
};
$data = [
'serviceStatus' => $request->services,
'costs' => $costs,
'fee' => $program,
'title' => 'View Cost Calculation',
'cost' => $cost,
'type' => Str::slug($request->status_type_id),
'breakdowns' => [
'alone' => $getBreakdown('Alone'),
'with_spouse' => $getBreakdown('With Spouse'),
'with_spouse_and_child' => $getBreakdown('With Spouse and Child'),
'with-spouse' => $getBreakdown('With Spouse'),
'with-spouse-and-child' => $getBreakdown('With Spouse and Child'),
],
];