@extends('layouts.simple') @section('body')
@include('entities.breadcrumbs', ['crumbs' => [ $page->book, $page->chapter, $page, $page->getUrl('/revisions') => [ 'text' => trans('entities.pages_revisions'), 'icon' => 'history', ] ]])

{{ trans('entities.pages_revisions') }}

@if(count($page->revisions) > 0) @foreach($page->revisions as $index => $revision) @endforeach
{{ trans('entities.pages_revisions_number') }} {{ trans('entities.pages_name') }} / {{ trans('entities.pages_revisions_editor') }} {{ trans('entities.pages_revisions_created_by') }} / {{ trans('entities.pages_revisions_date') }} {{ trans('entities.pages_revisions_changelog') }} {{ trans('common.actions') }}
{{ $revision->revision_number == 0 ? '' : $revision->revision_number }} {{ $revision->name }}
({{ $revision->markdown ? 'Markdown' : 'WYSIWYG' }})
@if($revision->createdBy) {{ $revision->createdBy->name }} @endif @if($revision->createdBy) {{ $revision->createdBy->name }} @else {{ trans('common.deleted_user') }} @endif
{{ $revision->created_at->formatLocalized('%e %B %Y %H:%M:%S') }} ({{ $revision->created_at->diffForHumans() }})
{{ $revision->summary }} {{ trans('entities.pages_revisions_changes') }}  |  @if ($index === 0) {{ trans('entities.pages_revisions_current') }} @else {{ trans('entities.pages_revisions_preview') }}  |   |  @endif
@else

{{ trans('entities.pages_revisions_none') }}

@endif
@stop