Added Documentation

This commit is contained in:
Mark Gregory
2026-06-15 07:54:26 +01:00
parent 91b600a4fe
commit 04f8124e65
34 changed files with 2045 additions and 0 deletions
@@ -0,0 +1,25 @@
@extends('documentation::layouts.master')
@section('title', 'Edit Document')
@section('content')
@include('documentation::partials.hero', [
'title' => 'Edit document',
'subtitle' => 'Maintain document metadata, workflow status, version and attachment details.',
])
<section class="doc-card">
<div class="doc-card-header"><strong>{{ $document->title }}</strong></div>
<div class="doc-card-body">
<form method="POST" action="{{ route('documentation.documents.update', $document) }}" enctype="multipart/form-data">
@include('documentation::partials.document-form')
</form>
</div>
</section>
@foreach($document->attachments as $attachment)
<form id="delete-attachment-{{ $attachment->id }}" method="POST" action="{{ route('documentation.documents.attachments.destroy', [$document, $attachment]) }}" onsubmit="return confirm('Remove this attachment?')">
@csrf
@method('DELETE')
</form>
@endforeach
@endsection