aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfloppydiskette <floppydisk@hyprcat.net>2024-08-31 00:47:19 +0100
committerfloppydiskette <floppydisk@hyprcat.net>2024-08-31 00:47:19 +0100
commit61f01750ff2f7a27bcd0281a7b6d01a5841f75c8 (patch)
tree2301d0b5fa690c408770809d0e3ce6b5260bf2e9
parenta715ae58afa15a98006e2271522bef5a00ca071f (diff)
There will be no bias in my house!
-rw-r--r--resources/views/bookmarks.blade.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/resources/views/bookmarks.blade.php b/resources/views/bookmarks.blade.php
index c8d0e11..f75e9b4 100644
--- a/resources/views/bookmarks.blade.php
+++ b/resources/views/bookmarks.blade.php
@@ -3,9 +3,19 @@
@foreach($categories as $category)
<div class="section">
<h2>{{ $category->name }}</h2>
+ @if($category->id == 1)
+ <p><em>(These are shuffled every load)</em></p>
+ @php
+ $sites = $category->sites->shuffle();
+ @endphp
+ @else
+ @php
+ $sites = $category->sites;
+ @endphp
+ @endif
<hr>
<ul>
- @foreach($category->sites as $site)
+ @foreach($sites as $site)
<li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li>
@endforeach
</ul>