@extends('documentation::layouts.master') @section('title', $document->title) @section('content') @include('documentation::partials.hero', [ 'title' => $document->title, 'subtitle' => $document->summary ?: 'Controlled documentation record with versioning, attachments and Markdown rendering.', 'actions' => [ ['label' => 'Edit document', 'url' => route('documentation.documents.edit', $document), 'class' => 'primary'], ['label' => 'Back to documents', 'url' => route('documentation.documents.index'), 'class' => 'secondary'], ], ]) {{ $document->reference ?: 'Document' }} Version {{ $document->version }} @if($document->category) ยท {{ $document->category->name }} @endif {{ ucfirst($document->status) }} {!! $document->rendered_body !!} @if($document->attachment_name || $document->attachments->isNotEmpty()) Attachments @if($document->attachment_name) {{ $document->attachment_name }} Primary file @endif @foreach($document->attachments as $attachment) {{ $attachment->original_name }} {{ $attachment->size_label }} @endforeach @endif @endsection