2022-06-01 10:15:55 +03:00
|
|
|
@stack('button_group_start')
|
|
|
|
|
|
|
|
@if (! $hideMoreActions)
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-dropdown id="show-more-actions-{{ $document->type }}">
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-slot name="trigger">
|
2022-09-20 10:17:14 +03:00
|
|
|
<span class="material-icons pointer-events-none">more_horiz</span>
|
2022-06-01 10:15:55 +03:00
|
|
|
</x-slot>
|
|
|
|
|
|
|
|
@stack('button_dropdown_start')
|
|
|
|
|
|
|
|
@stack('duplicate_button_start')
|
|
|
|
|
|
|
|
@if (! $hideDuplicate)
|
|
|
|
@can($permissionCreate)
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-dropdown.link href="{{ route($duplicateRoute, $document->id) }}" id="show-more-actions-duplicate-{{ $document->type }}">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans('general.duplicate') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('duplicate_button_end')
|
|
|
|
|
|
|
|
@if (! $hideDivider1)
|
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_print_start')
|
|
|
|
|
|
|
|
@if (! $hidePrint)
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-dropdown.link href="{{ route($printRoute, $document->id) }}" target="_blank" id="show-more-actions-print-{{ $document->type }}">
|
|
|
|
{{ trans('general.print') }}
|
|
|
|
</x-dropdown.link>
|
2022-06-01 10:15:55 +03:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_print_end')
|
|
|
|
|
|
|
|
@stack('button_pdf_start')
|
|
|
|
|
|
|
|
@if (! $hidePdf)
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-dropdown.link href="{{ route($pdfRoute, $document->id) }}" id="show-more-actions-pdf-{{ $document->type }}">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans('general.download_pdf') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_pdf_end')
|
|
|
|
|
2022-06-03 09:39:09 +03:00
|
|
|
@if (! in_array($document->status, $hideButtonStatuses))
|
|
|
|
@if (! $hideDivider2)
|
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
2022-06-01 10:15:55 +03:00
|
|
|
|
2022-06-03 09:39:09 +03:00
|
|
|
@stack('share_button_start')
|
2022-06-01 10:15:55 +03:00
|
|
|
|
|
|
|
@if (! $hideShare)
|
|
|
|
@if ($document->status != 'cancelled')
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-dropdown.button id="show-more-actions-share-link-{{ $document->type }}" @click="onShareLink('{{ route($shareRoute, $document->id) }}')">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans('general.share_link') }}
|
|
|
|
</x-dropdown.button>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('share_button_end')
|
|
|
|
|
|
|
|
@stack('edit_button_start')
|
|
|
|
|
|
|
|
@if (! $hideEmail)
|
|
|
|
@if ($document->contact_email)
|
2022-10-20 14:59:04 +03:00
|
|
|
<x-dropdown.button id="show-more-actions-send-email-{{ $document->type }}" @click="onSendEmail('{{ route($emailRoute, $document->id) }}')">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans($textEmail) }}
|
|
|
|
</x-dropdown.button>
|
|
|
|
@else
|
|
|
|
<x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="left">
|
|
|
|
<x-dropdown.button disabled="disabled">
|
|
|
|
{{ trans($textEmail) }}
|
|
|
|
</x-dropdown.button>
|
|
|
|
</x-tooltip>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('share_button_end')
|
|
|
|
|
|
|
|
@if (! $hideDivider3)
|
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_customize_start')
|
|
|
|
|
|
|
|
@if (! $hideCustomize)
|
|
|
|
@can($permissionCustomize)
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-dropdown.link href="{{ route($customizeRoute) }}" id="show-more-actions-customize-{{ $document->type }}">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans('general.customize') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_customize_end')
|
|
|
|
|
|
|
|
@stack('end_button_start')
|
|
|
|
|
2023-08-24 12:21:15 +03:00
|
|
|
@if (! $hideEnd && $document->recurring && $document->recurring->status != 'ended')
|
2022-09-06 13:54:56 +03:00
|
|
|
<x-dropdown.link href="{{ route($endRoute, $document->id) }}" id="show-more-actions-end-{{ $document->type }}">
|
2022-06-01 10:15:55 +03:00
|
|
|
{{ trans('recurring.end') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('end_button_end')
|
|
|
|
|
2022-09-06 13:54:56 +03:00
|
|
|
@stack('button_cancelled_start')
|
|
|
|
|
2023-02-15 16:15:26 +03:00
|
|
|
@if (! $hideCancel && ! in_array($document->status, ['cancelled', 'draft']))
|
2022-09-06 13:54:56 +03:00
|
|
|
@can($permissionUpdate)
|
|
|
|
<x-dropdown.divider />
|
|
|
|
|
2023-02-15 16:15:26 +03:00
|
|
|
<x-dropdown.link href="{{ route($cancelledRoute, $document->id) }}" id="show-more-actions-cancel-{{ $document->type }}">
|
2023-01-14 10:48:25 +01:00
|
|
|
{{ trans('documents.actions.cancel') }}
|
2023-02-15 16:15:26 +03:00
|
|
|
</x-dropdown.link>
|
2022-09-06 13:54:56 +03:00
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_cancelled_end')
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideDivider4)
|
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('delete_button_start')
|
|
|
|
|
|
|
|
@if (! $hideDelete)
|
|
|
|
@can($permissionDelete)
|
|
|
|
@if ($checkReconciled)
|
|
|
|
@if (! $document->reconciled)
|
|
|
|
<x-delete-link :model="$document" :route="$deleteRoute" :text="$textDeleteModal" model-name="document_number" />
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
<x-delete-link :model="$document" :route="$deleteRoute" :text="$textDeleteModal" model-name="document_number" />
|
|
|
|
@endif
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('delete_button_end')
|
|
|
|
|
|
|
|
@stack('button_dropdown_end')
|
|
|
|
</x-dropdown>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_group_end')
|