2018-12-09 22:04:28 +08:00
|
|
|
<a href="{{$book->getUrl()}}" class="grid-card" data-entity-type="book" data-entity-id="{{$book->id}}">
|
|
|
|
<div class="featured-image-container bg-book">
|
|
|
|
<img src="{{$book->getBookCover()}}" alt="{{$book->name}}">
|
2017-07-12 16:14:37 +08:00
|
|
|
</div>
|
2018-02-11 19:36:51 +08:00
|
|
|
<div class="grid-card-content">
|
2018-12-09 22:04:28 +08:00
|
|
|
<h2>{{$book->getShortName(35)}}</h2>
|
2017-09-04 22:57:52 +08:00
|
|
|
@if(isset($book->searchSnippet))
|
2018-12-09 22:04:28 +08:00
|
|
|
<p class="text-muted">{!! $book->searchSnippet !!}</p>
|
2017-09-04 22:57:52 +08:00
|
|
|
@else
|
2018-12-09 22:04:28 +08:00
|
|
|
<p class="text-muted">{{ $book->getExcerpt(130) }}</p>
|
2017-09-04 22:57:52 +08:00
|
|
|
@endif
|
2018-02-11 19:36:51 +08:00
|
|
|
</div>
|
2018-04-30 22:12:10 +08:00
|
|
|
<div class="grid-card-footer text-muted text-small">
|
2018-12-09 22:04:28 +08:00
|
|
|
{{--<span>@include('partials.entity-meta', ['entity' => $book])</span>--}}
|
|
|
|
{{--TODO - Add in meta details, in list view too--}}
|
2017-09-04 22:57:52 +08:00
|
|
|
</div>
|
2018-12-09 22:04:28 +08:00
|
|
|
</a>
|