2024-06-11 17:02:01 +00:00
|
|
|
<x-layout>
|
|
|
|
<x-slot:title>Bookmarks</x-slot:title>
|
|
|
|
@foreach($categories as $category)
|
2024-08-08 01:00:44 +00:00
|
|
|
<div class="section">
|
2024-07-12 22:51:50 +00:00
|
|
|
<h2>{{ $category->name }}</h2>
|
2024-08-30 23:47:19 +00:00
|
|
|
@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
|
2024-07-12 22:51:50 +00:00
|
|
|
<hr>
|
|
|
|
<ul>
|
2024-08-30 23:47:19 +00:00
|
|
|
@foreach($sites as $site)
|
2024-07-12 22:51:50 +00:00
|
|
|
<li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li>
|
2024-06-11 17:02:01 +00:00
|
|
|
@endforeach
|
2024-07-12 22:51:50 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2024-06-11 17:02:01 +00:00
|
|
|
@endforeach
|
|
|
|
</x-layout>
|