Annika Backstrom
0b1fe6d491
Seems like overkill for this stage of things. It's also not clear to me how to use Livewire for only a subset of interactive functionality on the page.
25 lines
807 B
PHP
25 lines
807 B
PHP
<div class="bookmark">
|
|
<p class="bookmark-title">
|
|
{{ $bookmark->title }}
|
|
@action('index')
|
|
<a href="/bookmarks/{{ $bookmark->id }}">#</a>
|
|
@endaction
|
|
</p>
|
|
<p class="bookmark-href"><a href="{{ $bookmark->href }}">{{ $bookmark->href }}</a></p>
|
|
@if (!empty($bookmark->description))
|
|
<div class="bookmark-description">
|
|
<p>{{ strip_tags($bookmark->description) }}</p>
|
|
</div>
|
|
@endif
|
|
<p class="bookmark-date">
|
|
<time datetime="{{ $bookmark->created_at }}">{{ $bookmark->created_at->diffForHumans() }}</time>
|
|
</p>
|
|
<ul class="bookmark-tags">
|
|
@foreach ($bookmark->tags as $tag)
|
|
<li class="bookmark-tag">
|
|
{{ $tag->tag->name }}
|
|
</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|