updaetd to roles and permissions
This commit is contained in:
@@ -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]) }}"
|
||||
|
||||
Reference in New Issue
Block a user