2018-12-09 09:04:28 -05:00
|
|
|
<a href="{{$book->getUrl()}}" class="grid-card" data-entity-type="book" data-entity-id="{{$book->id}}">
|
2019-03-16 12:00:41 -04:00
|
|
|
<div class="bg-book featured-image-container-wrap">
|
|
|
|
<div class="featured-image-container" @if($book->cover) style="background-image: url('{{ $book->getBookCover() }}')"@endif>
|
|
|
|
</div>
|
|
|
|
@icon('book')
|
2017-07-12 04:14:37 -04:00
|
|
|
</div>
|
2018-02-11 06:36:51 -05:00
|
|
|
<div class="grid-card-content">
|
2018-12-09 09:04:28 -05:00
|
|
|
<h2>{{$book->getShortName(35)}}</h2>
|
2017-09-04 10:57:52 -04:00
|
|
|
@if(isset($book->searchSnippet))
|
2018-12-09 09:04:28 -05:00
|
|
|
<p class="text-muted">{!! $book->searchSnippet !!}</p>
|
2017-09-04 10:57:52 -04:00
|
|
|
@else
|
2018-12-09 09:04:28 -05:00
|
|
|
<p class="text-muted">{{ $book->getExcerpt(130) }}</p>
|
2017-09-04 10:57:52 -04:00
|
|
|
@endif
|
2018-02-11 06:36:51 -05:00
|
|
|
</div>
|
2019-03-16 12:00:41 -04:00
|
|
|
<div class="grid-card-footer text-muted ">
|
|
|
|
<p>@icon('star')<span title="{{$book->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $book->created_at->diffForHumans()]) }}</span></p>
|
|
|
|
<p>@icon('edit')<span title="{{ $book->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $book->updated_at->diffForHumans()]) }}</span></p>
|
2017-09-04 10:57:52 -04:00
|
|
|
</div>
|
2018-12-09 09:04:28 -05:00
|
|
|
</a>
|