mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Link Updates, Recent Links on Index clean up
Started the front end refresh by starting to plug in the new design on the index page. The search methodology was still not consistent, so that process was cleaned up to display what is actually being tracked based on the two action criteria, then updating the design for the location links to be clear and display the heat rating. Added a repo link to the About section.
This commit is contained in:
@ -13,18 +13,24 @@ class FrontIndexController extends Controller
|
||||
|
||||
public function start()
|
||||
{
|
||||
$locations = Location::where("active", true)->get();
|
||||
$count = count($locations);
|
||||
$recent = Location::where("active", true)
|
||||
$sources = Source::where("active", true)->get();
|
||||
$locations = Location::where("active", true)->orderByDesc('updated_at')->get();
|
||||
$list = [];
|
||||
foreach ($locations as $location) {
|
||||
if (($location->block_count + $location->silence_count) > 2) {
|
||||
array_push($list, $location);
|
||||
}
|
||||
}
|
||||
|
||||
$recentList = Location::where("active", true)
|
||||
->where('block_count', '>', 2)
|
||||
->limit(10)->orderByDesc('updated_at')->get();
|
||||
|
||||
//$result = DB::select("SELECT * FROM searchlocations('$terms')");
|
||||
|
||||
return view('front.index', [
|
||||
'count' => $count,
|
||||
'recent' => $recent,
|
||||
'title' => "The Bad Space"
|
||||
'count' => count($list),
|
||||
'sources' => count($sources),
|
||||
'recent' => $list,
|
||||
'title' => "The Bad Space"
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user