There will be no bias in my house!
This commit is contained in:
		
					parent
					
						
							
								29f40ced3b
							
						
					
				
			
			
				commit
				
					
						4730f59dd0
					
				
			
		
					 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 floppydiskette
				floppydiskette