2016-06-12 07:14:14 -04:00
|
|
|
<div class="page {{$page->draft ? 'draft' : ''}} entity-list-item" data-entity-type="page" data-entity-id="{{$page->id}}">
|
2016-09-18 09:49:36 -04:00
|
|
|
<h4>
|
2016-09-01 15:36:22 -04:00
|
|
|
<a href="{{ $page->getUrl() }}" class="text-page entity-list-item-link"><i class="zmdi zmdi-file-text"></i><span class="entity-list-item-name">{{ $page->name }}</span></a>
|
2016-09-18 09:49:36 -04:00
|
|
|
</h4>
|
2015-10-14 16:55:56 -04:00
|
|
|
|
2015-09-03 14:05:45 -04:00
|
|
|
@if(isset($page->searchSnippet))
|
|
|
|
<p class="text-muted">{!! $page->searchSnippet !!}</p>
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ $page->getExcerpt() }}</p>
|
|
|
|
@endif
|
2016-02-20 13:51:01 -05:00
|
|
|
|
|
|
|
@if(isset($style) && $style === 'detailed')
|
|
|
|
<div class="row meta text-muted text-small">
|
2016-06-11 16:04:18 -04:00
|
|
|
<div class="col-md-6">
|
2016-12-03 13:35:40 -05:00
|
|
|
@include('partials.entity-meta', ['entity' => $page])
|
2016-02-20 13:51:01 -05:00
|
|
|
</div>
|
2016-06-11 16:04:18 -04:00
|
|
|
<div class="col-md-6">
|
2016-02-21 07:53:58 -05:00
|
|
|
<a class="text-book" href="{{ $page->book->getUrl() }}"><i class="zmdi zmdi-book"></i>{{ $page->book->getShortName(30) }}</a>
|
2016-02-20 13:51:01 -05:00
|
|
|
<br>
|
|
|
|
@if($page->chapter)
|
2016-02-21 07:53:58 -05:00
|
|
|
<a class="text-chapter" href="{{ $page->chapter->getUrl() }}"><i class="zmdi zmdi-collection-bookmark"></i>{{ $page->chapter->getShortName(30) }}</a>
|
2016-02-20 13:51:01 -05:00
|
|
|
@else
|
2016-12-03 13:35:40 -05:00
|
|
|
<i class="zmdi zmdi-collection-bookmark"></i> {{ trans('entities.pages_not_in_chapter') }}
|
2016-02-20 13:51:01 -05:00
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
2015-09-03 14:05:45 -04:00
|
|
|
</div>
|