2019-02-03 14:45:45 +01:00
|
|
|
<a href="{{ $shelf->getUrl() }}" class="shelf entity-list-item" data-entity-type="bookshelf" data-entity-id="{{$shelf->id}}">
|
2020-12-18 22:26:22 +01:00
|
|
|
<div class="entity-list-item-image bg-bookshelf @if($shelf->image_id) has-image @endif" style="background-image: url('{{ $shelf->getBookCover() }}')">
|
2019-02-16 18:13:01 +01:00
|
|
|
@icon('bookshelf')
|
2018-08-27 15:18:09 +02:00
|
|
|
</div>
|
2019-02-16 18:13:01 +01:00
|
|
|
<div class="content py-xs">
|
2019-02-03 14:45:45 +01:00
|
|
|
<h4 class="entity-list-item-name break-text">{{ $shelf->name }}</h4>
|
|
|
|
<div class="entity-item-snippet">
|
2019-02-16 18:13:01 +01:00
|
|
|
<p class="text-muted break-text mb-none">{{ $shelf->getExcerpt() }}</p>
|
2019-02-03 14:45:45 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-16 18:13:01 +01:00
|
|
|
</a>
|
2019-04-07 12:34:40 +02:00
|
|
|
<div class="entity-shelf-books grid third gap-y-xs entity-list-item-children">
|
2020-05-12 23:21:45 +02:00
|
|
|
@foreach($shelf->visibleBooks as $book)
|
2019-02-16 18:13:01 +01:00
|
|
|
<div>
|
2019-04-07 19:28:11 +02:00
|
|
|
<a href="{{ $book->getUrl('?shelf=' . $shelf->id) }}" class="entity-chip text-book">
|
2019-02-16 18:13:01 +01:00
|
|
|
@icon('book')
|
|
|
|
{{ $book->name }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|