diff --git a/app/Http/Controllers/WebsiteController.php b/app/Http/Controllers/WebsiteController.php index 97fe477..f3f15ed 100644 --- a/app/Http/Controllers/WebsiteController.php +++ b/app/Http/Controllers/WebsiteController.php @@ -148,23 +148,20 @@ class WebsiteController extends Controller { $country = $data["page"] = Country::where('status', 1) ->where('slug', $alias) - ->with('institutions', function ($query) { - $query->where('status', 1); - }) ->first(); if (!$country) { return view("client.$this->path.errors.404"); } - $data['countryFAQs'] = getFAQsByCategory(limit: null, order: 'desc', category: $country->slug); - $data['countryInstitutions'] = $country->institutions; + // $data['countryFAQs'] = getFAQsByCategory(limit: null, order: 'desc', category: $country->slug); + // $data['countryInstitutions'] = $country->institutions; - $data['recentCountries'] = Country::where('status', 1) - ->where('id', '!=', $country->id) - ->inRandomOrder() - ->orderBy('created_at', 'desc') - ->take(5)->get(); + // $data['recentCountries'] = Country::where('status', 1) + // ->where('id', '!=', $country->id) + // ->inRandomOrder() + // ->orderBy('created_at', 'desc') + // ->take(5)->get(); return view("client.$this->path.pages.study-destination-template", $data); } diff --git a/config/sidebar.php b/config/sidebar.php index a956bac..aaa7545 100644 --- a/config/sidebar.php +++ b/config/sidebar.php @@ -245,7 +245,7 @@ return [ ], [ - 'text' => 'Documents', + 'text' => 'Free Resources', 'url' => 'admin/documents', 'icon' => 'ri-file-text-line', 'module' => 'Document', diff --git a/resources/views/client/raffles/layouts/partials/header.blade.php b/resources/views/client/raffles/layouts/partials/header.blade.php index b6f58ca..cfdd0f3 100644 --- a/resources/views/client/raffles/layouts/partials/header.blade.php +++ b/resources/views/client/raffles/layouts/partials/header.blade.php @@ -216,7 +216,9 @@ -

Estimated Cost Calculation For {{ $cost->country?->title ?? 'N/A' }} (children[0]; - @endphp + +

study uk
@@ -12,7 +11,8 @@

Study in {{ $page->title }}

- @if ($page->children->count() > 0) + + @if ($page->children)