From 8e81858470c2b09e22b383e14ee5439cfc4e6e53 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 26 Jul 2023 00:08:58 +0100 Subject: Update --- resources/views/pages/bookmarks.blade.php | 48 +++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 15 deletions(-) (limited to 'resources/views/pages/bookmarks.blade.php') 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) -

{{ $category->name }}

- @php - $sites = DB::select(' + @foreach ($categories as $category) + + + + + + + + + + @php + $sites = DB::select( + ' SELECT name, url, description FROM bookmark__sites WHERE category_id = ? ORDER BY priority ASC - ', array($category->id)); - @endphp - + + + @endforeach +
+

{{ $category->name }}

+
+
+
{{ $site->name }} + - {{ $site->description }}
+
@endforeach - -@endforeach @stop -- cgit v1.2.3-54-g00ecf