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