Code refactoring after commit 510c38adcc
				
					
				
			This commit is contained in:
		| @@ -108,15 +108,13 @@ | ||||
|  | ||||
|         @stack('button_cancelled_start') | ||||
|  | ||||
|         @if (! $hideCancel) | ||||
|         @if (! $hideCancel && ! in_array($document->status, ['cancelled', 'draft'])) | ||||
|             @can($permissionUpdate) | ||||
|                 <x-dropdown.divider /> | ||||
|  | ||||
|                 @if ($document->status != 'cancelled' && $document->status != 'draft') | ||||
|                     <x-dropdown.link href="{{ route($cancelledRoute, $document->id) }}" id="show-more-actions-cancel-{{ $document->type }}"> | ||||
|                         {{ trans('general.cancel') }} | ||||
|                     </x-dropdown.link> | ||||
|                 @endif | ||||
|                 <x-dropdown.link href="{{ route($cancelledRoute, $document->id) }}" id="show-more-actions-cancel-{{ $document->type }}"> | ||||
|                     {{ trans('general.cancel') }} | ||||
|                 </x-dropdown.link> | ||||
|             @endcan | ||||
|         @endif | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user