2023-06-13 22:50:07 +00:00
|
|
|
@extends('layouts.default')
|
|
|
|
@section('title', 'bookmarks')
|
|
|
|
@section('description', 'This is the personal homepage of floppydisk.')
|
|
|
|
@section('content')
|
2023-07-19 00:50:07 +00:00
|
|
|
@php
|
|
|
|
$categories = DB::select('
|
|
|
|
SELECT id, name
|
2023-07-19 00:58:32 +00:00
|
|
|
FROM bookmark__categories
|
2023-07-19 00:50:07 +00:00
|
|
|
ORDER BY priority ASC
|
|
|
|
');
|
|
|
|
@endphp
|
|
|
|
|
2023-06-13 22:50:07 +00:00
|
|
|
@foreach ($categories as $category)
|
2023-07-19 00:50:07 +00:00
|
|
|
<h1>{{ $category->name }}</h1>
|
|
|
|
@php
|
|
|
|
$sites = DB::select('
|
|
|
|
SELECT name, url, description
|
2023-07-19 00:58:32 +00:00
|
|
|
FROM bookmark__sites
|
2023-07-19 00:50:07 +00:00
|
|
|
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>
|
2023-06-13 22:50:07 +00:00
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endforeach
|
|
|
|
@stop
|