@extends('layouts.app') @section('page-title', 'Replace File — ' . $document->doc_number) @section('content') Back

Version number will not change — stays at v{{ $document->version }}.

Use this to correct an error in the uploaded file (wrong file, typo, etc.). The old file will be moved to the Archive list.

@csrf
@if($document->file_path)

{{ $document->file_name }}

{{ $document->file_size_formatted }} · v{{ $document->version }}

Download
@endif
@error('replacement_notes')

{{ $message }}

@enderror
@if($document->archives->isNotEmpty())
@foreach($document->archives as $arch)

{{ $arch->file_name }}

{{ $arch->file_size_formatted }} · Replaced {{ $arch->replaced_at->format('d M Y') }} by {{ $arch->replacedBy?->full_name ?? '-' }}

@if($arch->replacement_notes)

{{ $arch->replacement_notes }}

@endif
@endforeach
@endif
Cancel
@endsection