24 lines
		
	
	
		
			602 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			602 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @stack('add_new_button_start')
 | |
| 
 | |
| @if (! $hideCreate)
 | |
|     @can($permissionCreate)
 | |
|         <x-link href="{{ route($createRoute) }}" kind="primary">
 | |
|             {{ trans('general.title.new', ['type' => trans_choice($textPage, 1)]) }}
 | |
|         </x-link>
 | |
|     @endcan
 | |
| @endif
 | |
| 
 | |
| @stack('edit_button_start')
 | |
| 
 | |
| @if (! in_array($document->status, $hideButtonStatuses))
 | |
|     @if (! $hideEdit)
 | |
|         @can($permissionUpdate)
 | |
|             <x-link href="{{ route($editRoute, $document->id) }}">
 | |
|                 {{ trans('general.edit') }}
 | |
|             </x-link>
 | |
|         @endcan
 | |
|     @endif
 | |
| @endif
 | |
| 
 | |
| @stack('edit_button_end')
 |