2019-02-03 08:45:45 -05:00
|
|
|
<a href="{{$shelf->getUrl()}}" class="bookshelf-grid-item grid-card"
|
|
|
|
data-entity-type="bookshelf" data-entity-id="{{$shelf->id}}">
|
2019-03-16 12:00:41 -04:00
|
|
|
<div class="bg-shelf featured-image-container-wrap">
|
|
|
|
<div class="featured-image-container" @if($shelf->cover) style="background-image: url('{{ $shelf->getBookCover() }}')"@endif>
|
|
|
|
</div>
|
|
|
|
@icon('bookshelf')
|
2018-08-27 09:18:09 -04:00
|
|
|
</div>
|
|
|
|
<div class="grid-card-content">
|
2019-02-03 08:45:45 -05:00
|
|
|
<h2>{{$shelf->getShortName(35)}}</h2>
|
|
|
|
@if(isset($shelf->searchSnippet))
|
|
|
|
<p class="text-muted">{!! $shelf->searchSnippet !!}</p>
|
2018-08-27 09:18:09 -04:00
|
|
|
@else
|
2019-02-03 08:45:45 -05:00
|
|
|
<p class="text-muted">{{ $shelf->getExcerpt(130) }}</p>
|
2018-08-27 09:18:09 -04:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="grid-card-footer text-muted text-small">
|
2019-02-03 08:45:45 -05:00
|
|
|
@icon('star')<span title="{{$shelf->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $shelf->created_at->diffForHumans()]) }}</span>
|
|
|
|
<br>
|
|
|
|
@icon('edit')<span title="{{ $shelf->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $shelf->updated_at->diffForHumans()]) }}</span>
|
2018-08-27 09:18:09 -04:00
|
|
|
</div>
|
2019-02-03 08:45:45 -05:00
|
|
|
</a>
|