diff options
author | Frankie B <git@diskfloppy.me> | 2023-07-26 00:08:58 +0100 |
---|---|---|
committer | Frankie B <frankieraybrown@gmail.com> | 2023-07-29 18:10:50 +0100 |
commit | 8e81858470c2b09e22b383e14ee5439cfc4e6e53 (patch) | |
tree | 32d64a1709d301f5bfdb1eb12db436013135f76a /resources/views/pages/bookmarks.blade.php | |
parent | 5a39e2a7962d88fb0fbad0c0dfdc54a1f6c2eddb (diff) |
Update
Diffstat (limited to 'resources/views/pages/bookmarks.blade.php')
-rw-r--r-- | resources/views/pages/bookmarks.blade.php | 48 |
1 files changed, 33 insertions, 15 deletions
diff --git a/resources/views/pages/bookmarks.blade.php b/resources/views/pages/bookmarks.blade.php index ee91334..cbc67ee 100644 --- a/resources/views/pages/bookmarks.blade.php +++ b/resources/views/pages/bookmarks.blade.php @@ -1,28 +1,46 @@ @extends('layouts.default') -@section('title', 'bookmarks') +@section('title', 'Bookmarks') @section('description', 'This is the personal homepage of floppydisk.') @section('content') -@php - $categories = DB::select(' + @php + $categories = DB::select(' SELECT id, name FROM bookmark__categories ORDER BY priority ASC '); -@endphp + @endphp -@foreach ($categories as $category) - <h1>{{ $category->name }}</h1> - @php - $sites = DB::select(' + @foreach ($categories as $category) + <table class="infotable"> + + <tr> + <td colspan="2"> + <h1>{{ $category->name }}</h1> + </td> + </tr> + <tr> + <td colspan="2"> + <hr> + </td> + </tr> + + @php + $sites = DB::select( + ' SELECT name, url, description FROM bookmark__sites WHERE category_id = ? ORDER BY priority ASC - ', array($category->id)); - @endphp - <ul> - @foreach ($sites as $site) - <li><a href="{{ $site->url }}">{{ $site->name }}</a> - {{ $site->description }}</li> + ', + [$category->id], + ); + @endphp + @foreach ($sites as $site) + <tr> + <td><a href="{{ $site->url }}">{{ $site->name }}</a> + - {{ $site->description }}</td> + </tr> + @endforeach + </table> + <br> @endforeach - </ul> -@endforeach @stop |