aboutsummaryrefslogtreecommitdiff
path: root/resources/views/bookmarks.blade.php
blob: f75e9b4c83ded9f4a995b4c26c1145ed038ae974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<x-layout>
    <x-slot:title>Bookmarks</x-slot:title>
    @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($sites as $site)
                    <li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li>
            @endforeach
            </ul>
        </div>
    @endforeach
</x-layout>