Akaunting/resources/views/components/documents/show/buttons.blade.php

24 lines
701 B
PHP
Raw Normal View History

2022-06-01 07:15:55 +00:00
@stack('add_new_button_start')
@if (! $hideCreate)
@can($permissionCreate)
2022-09-06 10:54:56 +00:00
<x-link href="{{ route($createRoute) }}" kind="primary" id="show-more-actions-new-{{ $document->type }}">
2022-06-07 08:29:11 +00:00
{{ trans('general.title.new', ['type' => trans_choice($textPage, 1)]) }}
2022-06-01 07:15:55 +00:00
</x-link>
@endcan
@endif
@stack('edit_button_start')
@if (! in_array($document->status, $hideButtonStatuses))
@if (! $hideEdit)
@can($permissionUpdate)
2022-09-06 10:54:56 +00:00
<x-link href="{{ route($editRoute, $document->id) }}" id="show-more-actions-edit-{{ $document->type }}">
2022-06-01 07:15:55 +00:00
{{ trans('general.edit') }}
</x-link>
@endcan
@endif
@endif
@stack('edit_button_end')