{{ $page->name }}

@if(isset($page->searchSnippet))

{!! $page->searchSnippet !!}

@else

{{ $page->getExcerpt() }}

@endif @if(isset($style) && $style === 'detailed')
Created {{$page->created_at->diffForHumans()}} @if($page->createdBy)by {{$page->createdBy->name}}@endif
Last updated {{ $page->updated_at->diffForHumans() }} @if($page->updatedBy)by {{$page->updatedBy->name}} @endif
{{ $page->book->getShortName(30) }}
@if($page->chapter) {{ $page->chapter->getShortName(30) }} @else Page is not in a chapter @endif
@endif