@extends('documentation::layouts.master') @section('title', 'Archived Documents') @section('content')
@include('documentation::partials.hero', [ 'title' => 'Archived documents', 'subtitle' => 'Soft-deleted documents are retained here with their files and attachments until permanently deleted.', 'actions' => [ [ 'label' => 'Active documents', 'url' => route('documentation.documents.index'), 'class' => 'primary', ], ], ]) @if (session('status'))
{{ session('status') }}
@endif
Archive
Restore documents or permanently remove them and their stored files.
{{ $documents->total() }} archived
@if (request()->filled('search') || request()->filled('category')) Clear @endif
@forelse ($documents as $document) @empty @endforelse
Document Category Version Archived Files Actions
{{ $document->title }}
{{ $document->reference ?: 'No reference' }} ยท {{ $document->summary ?: 'No summary' }}
{{ $document->category?->name ?: 'Uncategorised' }} {{ $document->version }} {{ $document->deleted_at?->format('d M Y H:i') }} {{ ($document->attachment_name ? 1 : 0) + $document->attachments->count() }}
@csrf @method('PATCH')
@csrf @method('DELETE')
No archived documents found.
{{ $documents->links() }}
@endsection