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)
|
$country = $data["page"] = Country::where('status', 1)
|
||||||
->where('slug', $alias)
|
->where('slug', $alias)
|
||||||
->with('institutions', function ($query) {
|
|
||||||
$query->where('status', 1);
|
|
||||||
})
|
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
if (!$country) {
|
if (!$country) {
|
||||||
return view("client.$this->path.errors.404");
|
return view("client.$this->path.errors.404");
|
||||||
}
|
}
|
||||||
|
|
||||||
$data['countryFAQs'] = getFAQsByCategory(limit: null, order: 'desc', category: $country->slug);
|
// $data['countryFAQs'] = getFAQsByCategory(limit: null, order: 'desc', category: $country->slug);
|
||||||
$data['countryInstitutions'] = $country->institutions;
|
// $data['countryInstitutions'] = $country->institutions;
|
||||||
|
|
||||||
$data['recentCountries'] = Country::where('status', 1)
|
// $data['recentCountries'] = Country::where('status', 1)
|
||||||
->where('id', '!=', $country->id)
|
// ->where('id', '!=', $country->id)
|
||||||
->inRandomOrder()
|
// ->inRandomOrder()
|
||||||
->orderBy('created_at', 'desc')
|
// ->orderBy('created_at', 'desc')
|
||||||
->take(5)->get();
|
// ->take(5)->get();
|
||||||
|
|
||||||
return view("client.$this->path.pages.study-destination-template", $data);
|
return view("client.$this->path.pages.study-destination-template", $data);
|
||||||
}
|
}
|
||||||
|
@@ -245,7 +245,7 @@ return [
|
|||||||
],
|
],
|
||||||
|
|
||||||
[
|
[
|
||||||
'text' => 'Documents',
|
'text' => 'Free Resources',
|
||||||
'url' => 'admin/documents',
|
'url' => 'admin/documents',
|
||||||
'icon' => 'ri-file-text-line',
|
'icon' => 'ri-file-text-line',
|
||||||
'module' => 'Document',
|
'module' => 'Document',
|
||||||
|
@@ -216,7 +216,9 @@
|
|||||||
<div id="collapse-service-menu-1" class="accordion-collapse collapse menu-dropdown"
|
<div id="collapse-service-menu-1" class="accordion-collapse collapse menu-dropdown"
|
||||||
data-bs-parent="#menu-dropdown" role="tabpanel" aria-labelledby="service-menu-1">
|
data-bs-parent="#menu-dropdown" role="tabpanel" aria-labelledby="service-menu-1">
|
||||||
<ul>
|
<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" href="study-usa.php">Study in USA</a></li>
|
||||||
<li><a class="hover:text-brand" class="hover:text-brand"
|
<li><a class="hover:text-brand" class="hover:text-brand"
|
||||||
href="study-canada.php">Study in Canada</a></li>
|
href="study-canada.php">Study in Canada</a></li>
|
||||||
|
@@ -67,7 +67,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<p class="mb-0 fs-5 test-muted"><i>Estimated Cost Calculation For
|
<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
|
||||||
|
@@ -1,8 +1,7 @@
|
|||||||
@extends('client.raffles.layouts.app')
|
@extends('client.raffles.layouts.app')
|
||||||
@section('content')
|
@section('content')
|
||||||
@php
|
|
||||||
$firstAcc = $page->children[0];
|
|
||||||
@endphp
|
|
||||||
<div class="study-destinations-banner">
|
<div class="study-destinations-banner">
|
||||||
<img src="{{ asset($page->banner) }}" width="1425" height="356" alt="study uk">
|
<img src="{{ asset($page->banner) }}" width="1425" height="356" alt="study uk">
|
||||||
</div>
|
</div>
|
||||||
@@ -12,7 +11,8 @@
|
|||||||
<h2 class="md:text-30 text-60 text-sec">Study in {{ $page->title }}</h2>
|
<h2 class="md:text-30 text-60 text-sec">Study in {{ $page->title }}</h2>
|
||||||
<div class="title-line mx-auto"></div>
|
<div class="title-line mx-auto"></div>
|
||||||
</div>
|
</div>
|
||||||
@if ($page->children->count() > 0)
|
|
||||||
|
@if ($page->children)
|
||||||
<section class="free-resources-content tab-container">
|
<section class="free-resources-content tab-container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-3">
|
<div class="col col-md-3">
|
||||||
|
Reference in New Issue
Block a user