There will be no bias in my house!
This commit is contained in:
parent
a715ae58af
commit
61f01750ff
1 changed files with 11 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue