Clean up unused variables and improve sidebar label for clarity
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -245,7 +245,7 @@ return [
|
||||
],
|
||||
|
||||
[
|
||||
'text' => 'Documents',
|
||||
'text' => 'Free Resources',
|
||||
'url' => 'admin/documents',
|
||||
'icon' => 'ri-file-text-line',
|
||||
'module' => 'Document',
|
||||
|
@@ -216,7 +216,9 @@
|
||||
<div id="collapse-service-menu-1" class="accordion-collapse collapse menu-dropdown"
|
||||
data-bs-parent="#menu-dropdown" role="tabpanel" aria-labelledby="service-menu-1">
|
||||
<ul>
|
||||
<li><a class="hover:text-brand" href=" x ">Study in UK</a></li>
|
||||
<li><a class="hover:text-brand"
|
||||
href=" x ">Study
|
||||
in UK</a></li>
|
||||
<li><a class="hover:text-brand" href="study-usa.php">Study in USA</a></li>
|
||||
<li><a class="hover:text-brand" class="hover:text-brand"
|
||||
href="study-canada.php">Study in Canada</a></li>
|
||||
|
@@ -67,7 +67,6 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
<p class="mb-0 fs-5 test-muted"><i>Estimated Cost Calculation For
|
||||
{{ $cost->country?->title ?? 'N/A' }}</i> (<strong
|
||||
|
@@ -1,8 +1,7 @@
|
||||
@extends('client.raffles.layouts.app')
|
||||
@section('content')
|
||||
@php
|
||||
$firstAcc = $page->children[0];
|
||||
@endphp
|
||||
|
||||
|
||||
<div class="study-destinations-banner">
|
||||
<img src="{{ asset($page->banner) }}" width="1425" height="356" alt="study uk">
|
||||
</div>
|
||||
@@ -12,7 +11,8 @@
|
||||
<h2 class="md:text-30 text-60 text-sec">Study in {{ $page->title }}</h2>
|
||||
<div class="title-line mx-auto"></div>
|
||||
</div>
|
||||
@if ($page->children->count() > 0)
|
||||
|
||||
@if ($page->children)
|
||||
<section class="free-resources-content tab-container">
|
||||
<div class="row">
|
||||
<div class="col col-md-3">
|
||||
|
Reference in New Issue
Block a user