@section('site_title', formatTitle([e($document->name), __('Document'), config('settings.title')])) @include('shared.breadcrumbs', ['breadcrumbs' => [ ['url' => request()->is('admin/*') ? route('admin.dashboard') : route('dashboard'), 'title' => request()->is('admin/*') ? __('Admin') : __('Home')], ['url' => request()->is('admin/*') ? route('admin.documents') : route('documents'), 'title' => __('Documents')], ['title' => __('Document')], ]])

{{ __('Document') }}

@csrf
@if($document->template->isCustom()) {{ $document->template->icon }} @else @include('icons.' . $document->template->icon, ['class' => 'fill-current width-5 height-5']) @endif
{{ __('Name') }}
{{ $document->name }}
@if($document->favorite)
@include('icons.star', ['class' => 'fill-current width-4 height-4 flex-shrink-0'])
@endif
{{ __('Words') }}
@include('icons.info', ['class' => 'width-4 height-4 fill-current text-muted'])
{{ ($document->words > 1 ? __(':number words', ['number' => number_format($document->words, 0, __('.'), __(','))]) : __(':number word', ['number' => number_format($document->words, 0, __('.'), __(','))])) }}
{{ __('Created at') }}
{{ $document->created_at->diffForHumans() }}
@include('documents.partials.editor.toolbar')
@include('documents.partials.editor.content')
@if ($errors->has('result')) {{ $errors->first('result') }} @endif