remove covid
This commit is contained in:
@@ -39,12 +39,12 @@ class HomeController extends Controller
|
|||||||
})->unique('source.name')->values();
|
})->unique('source.name')->values();
|
||||||
});
|
});
|
||||||
|
|
||||||
$covid19 = config("karudhaas.topic_filters.covid19");
|
// $covid19 = config("karudhaas.topic_filters.covid19");
|
||||||
$covid19_articles = Cache::remember("home.articles.covid19", 3600, function () use ($covid19) { // Cache for an hour
|
// $covid19_articles = Cache::remember("home.articles.covid19", 3600, function () use ($covid19) { // Cache for an hour
|
||||||
return Article::with('source')->whereHas('topics', function ($q) use ($covid19) {
|
// return Article::with('source')->whereHas('topics', function ($q) use ($covid19) {
|
||||||
$q->whereIn('slug', $covid19["keys"]);
|
// $q->whereIn('slug', $covid19["keys"]);
|
||||||
})->latest('published_date')->limit(5)->get();
|
// })->latest('published_date')->limit(5)->get();
|
||||||
});
|
// });
|
||||||
|
|
||||||
$business = config("karudhaas.topic_filters.business");
|
$business = config("karudhaas.topic_filters.business");
|
||||||
$business_articles = Cache::remember("home.articles.business", 3600, function () use ($business) { // Cache for an hour
|
$business_articles = Cache::remember("home.articles.business", 3600, function () use ($business) { // Cache for an hour
|
||||||
@@ -62,7 +62,7 @@ class HomeController extends Controller
|
|||||||
|
|
||||||
return view('home', [
|
return view('home', [
|
||||||
"todays_pick" => $todays_pick,
|
"todays_pick" => $todays_pick,
|
||||||
"covid19_articles" => $covid19_articles,
|
// "covid19_articles" => $covid19_articles,
|
||||||
"business_articles" => $business_articles,
|
"business_articles" => $business_articles,
|
||||||
"sports_articles" => $sports_articles
|
"sports_articles" => $sports_articles
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -126,6 +126,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- covid -->
|
<!-- covid -->
|
||||||
|
@if(true == false)
|
||||||
<div class="mx-auto container py-6 sm:py-12 px-4 xl:px-0">
|
<div class="mx-auto container py-6 sm:py-12 px-4 xl:px-0">
|
||||||
<div class="flex flex-col items-end">
|
<div class="flex flex-col items-end">
|
||||||
<h2 class="text-gray-800 text-3xl text-right MvAamu" style="font-weight: 100;">ކޮވިޑް 19 އާއި ގުޅޭ</h2>
|
<h2 class="text-gray-800 text-3xl text-right MvAamu" style="font-weight: 100;">ކޮވިޑް 19 އާއި ގުޅޭ</h2>
|
||||||
@@ -182,6 +183,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- covid -->
|
<!-- covid -->
|
||||||
|
@endif
|
||||||
|
|
||||||
<div class="container px-4 xl:px-0 mx-auto">
|
<div class="container px-4 xl:px-0 mx-auto">
|
||||||
<hr class="border-t border-gry-300" />
|
<hr class="border-t border-gry-300" />
|
||||||
|
|||||||
Reference in New Issue
Block a user