updaetd to roles and permissions

This commit is contained in:
Mark Gregory
2026-08-26 10:38:38 +01:00
parent af6ebe5730
commit 7fcef01be4
10 changed files with 456 additions and 21 deletions
@@ -18,6 +18,16 @@
</div>
</section>
<div class="doc-actions" style="margin-top:18px;justify-content:flex-end;">
<form method="POST"
action="{{ route('documentation.documents.destroy', $document) }}"
onsubmit="return confirm('Archive this document? Its files and attachments will be retained.')">
@csrf
@method('DELETE')
<button class="doc-button warning" type="submit">Archive document</button>
</form>
</div>
@foreach ($document->attachments as $attachment)
<form id="delete-attachment-{{ $attachment->id }}" method="POST"
action="{{ route('documentation.documents.attachments.destroy', [$document, $attachment]) }}"