@extends('layouts.app') @section('title', 'View · ' . $document->title . ' · ' . config('app.name')) @section('page-title', 'View Document') @section('content') @php $ext = strtolower($document->original_file_extension); $latestVersionNumber = $document->latestVersion()?->version_number; @endphp

{{ $document->title }}

Read-only preview @if($latestVersionNumber) · Version {{ $latestVersionNumber }} @endif
Download Back to Document
@if($ext === 'pdf') @elseif($ext === 'docx')
Loading document…
@else

This file type ({{ strtoupper($ext) }}) can’t be previewed in the browser.

Download to view
@endif @endsection @if(strtolower($document->original_file_extension) === 'docx') @push('scripts') @vite(['resources/js/document-changes.js']) @endpush @endif