@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',
],
],
])
@if (session('status'))
{{ session('status') }}
@endif
{!! $document->rendered_body !!}
@if ($document->attachment_name || $document->attachments->isNotEmpty())
@if ($document->attachment_name)
@endif
@foreach ($document->attachments as $attachment)
@endforeach
@endif
@endsection