2022-09-06 13:54:56 +03:00

24 lines
701 B
PHP

@stack('add_new_button_start')
@if (! $hideCreate)
@can($permissionCreate)
<x-link href="{{ route($createRoute) }}" kind="primary" id="show-more-actions-new-{{ $document->type }}">
{{ 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) }}" id="show-more-actions-edit-{{ $document->type }}">
{{ trans('general.edit') }}
</x-link>
@endcan
@endif
@endif
@stack('edit_button_end')