|
|
@@ -462,7 +462,7 @@
|
|
|
<a href="{{ $document->link }}" target="_blank">
|
|
|
{{ $document->original_name }}
|
|
|
</a>
|
|
|
- @if(hasRole('admin'))
|
|
|
+ @if(hasRole('admin,manager'))
|
|
|
<i class="bi bi-x-circle-fill fs-6 text-danger cursor-pointer ms-2"
|
|
|
onclick="customConfirm('Удалить?', function () { $('#document-{{ $document->id }}').submit(); }, 'Подтверждение удаления')"
|
|
|
title="Удалить"></i>
|
|
|
@@ -496,17 +496,17 @@
|
|
|
<a href="{{ $act->link }}" target="_blank">
|
|
|
{{ $act->original_name }}
|
|
|
</a>
|
|
|
- @if(hasRole('admin'))
|
|
|
+ @if(hasRole('admin,manager'))
|
|
|
<i class="bi bi-x-circle-fill fs-6 text-danger cursor-pointer ms-2"
|
|
|
onclick="customConfirm('Удалить?', function () { $('#act-{{ $act->id }}').submit(); }, 'Подтверждение удаления')"
|
|
|
title="Удалить"></i>
|
|
|
- <form action="{{ route('reclamations.delete-act', [$reclamation, $act]) }}"
|
|
|
- method="POST"
|
|
|
- id="act-{{ $act->id }}" class="visually-hidden">
|
|
|
- @csrf
|
|
|
- @method('DELETE')
|
|
|
- </form>
|
|
|
@endif
|
|
|
+ <form action="{{ route('reclamations.delete-act', [$reclamation, $act]) }}"
|
|
|
+ method="POST"
|
|
|
+ id="act-{{ $act->id }}" class="visually-hidden">
|
|
|
+ @csrf
|
|
|
+ @method('DELETE')
|
|
|
+ </form>
|
|
|
</div>
|
|
|
@endforeach
|
|
|
</div>
|