Design Refresh
This commit is contained in:
parent
1dee7ae516
commit
e7202174f7
44 changed files with 593 additions and 228 deletions
|
|
@ -1,9 +1,21 @@
|
|||
<x-layout>
|
||||
<x-slot:title>Bookmarks</x-slot:title>
|
||||
@if(auth()->check())
|
||||
<a href="{{ route('bookmarks.create-category') }}">new category pretty please</a><br>
|
||||
<a href="{{ route('bookmarks.create-bookmark') }}">new bookmark pretty please</a>
|
||||
@endif
|
||||
@foreach($categories as $category)
|
||||
<div class="bookmark-category">
|
||||
<h2>{{ $category->name }}</h2>
|
||||
@if($category->id == 1)
|
||||
@if(Auth::check())
|
||||
<hr>
|
||||
<form action="{{ route('bookmarks.destroy-category',$category->id) }}" method="POST">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit">Delete</button>
|
||||
</form>
|
||||
@endif
|
||||
@if($category->shuffled)
|
||||
<p><em>(These are shuffled every load)</em></p>
|
||||
@php
|
||||
$sites = $category->sites->shuffle();
|
||||
|
|
@ -16,7 +28,17 @@
|
|||
<hr>
|
||||
<ul>
|
||||
@foreach($sites as $site)
|
||||
<li><a href="{{ $site->url }}"><font color="#000000">{{ $site->name }}</font></a> - {{ $site->description }}</li>
|
||||
<li>
|
||||
<a href="{{ $site->url }}"><font color="#000000">{{ $site->name }}</font></a> - {{ $site->description }}
|
||||
@if(Auth::check())
|
||||
<hr>
|
||||
<form action="{{ route('bookmarks.destroy-bookmark',$site->id) }}" method="POST">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit">Delete</button>
|
||||
</form>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue