2022-06-01 10:15:55 +03:00
|
|
|
@stack('button_group_start')
|
|
|
|
|
|
|
|
@if (! $hideButtonMoreActions)
|
|
|
|
<x-dropdown id="dropdown-more-actions">
|
|
|
|
<x-slot name="trigger">
|
|
|
|
<span class="material-icons">more_horiz</span>
|
|
|
|
</x-slot>
|
|
|
|
|
|
|
|
@stack('duplicate_button_start')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if (empty($transaction->document_id) && $transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideButtonDuplicate)
|
|
|
|
@can($permissionCreate)
|
|
|
|
<x-dropdown.link href="{{ route($routeButtonDuplicate, [$transaction->id, 'type' => $type]) }}">
|
|
|
|
{{ trans('general.duplicate') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('duplicate_button_end')
|
|
|
|
|
|
|
|
@stack('connect_button_start')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if ($transaction->is_splittable && empty($transaction->document_id) && empty($transaction->recurring) && $transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideButtonConnect)
|
|
|
|
@can($permissionCreate)
|
2022-06-02 00:12:48 +03:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
class="w-full flex items-center text-purple px-2 h-9 leading-9 whitespace-nowrap"
|
|
|
|
title="{{ trans('general.connect') }}"
|
2022-06-16 12:27:19 +03:00
|
|
|
@click="onConnectTransactions('{{ route('transactions.dial', $transaction->id) }}')">
|
2022-06-02 00:12:48 +03:00
|
|
|
<span class="w-full h-full flex items-center rounded-md px-2 text-sm hover:bg-lilac-100">{{ trans('general.connect') }}</span>
|
|
|
|
</button>
|
2022-06-01 10:15:55 +03:00
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('connect_button_end')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if (! $hideDivider1 && $transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_print_start')
|
|
|
|
|
|
|
|
@if (! $hideButtonPrint)
|
|
|
|
<x-dropdown.link href="{{ route($routeButtonPrint, $transaction->id) }}" target="_blank">
|
|
|
|
{{ trans('general.print') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_print_end')
|
|
|
|
|
|
|
|
@stack('button_pdf_start')
|
|
|
|
|
|
|
|
@if (! $hideButtonPdf)
|
|
|
|
<x-dropdown.link href="{{ route($routeButtonPdf, $transaction->id) }}" class="">
|
|
|
|
{{ trans('general.download_pdf') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_pdf_end')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if (! $hideDivider2 && $transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('share_button_start')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if ($transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideButtonShare)
|
|
|
|
<x-dropdown.button @click="onShareLink('{{ route($shareRoute, $transaction->id) }}')">
|
|
|
|
{{ trans('general.share_link') }}
|
|
|
|
</x-dropdown.button>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('share_button_end')
|
|
|
|
|
|
|
|
@stack('email_button_start')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if ($transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideButtonEmail)
|
|
|
|
@if (! empty($transaction->contact) && $transaction->contact->email)
|
|
|
|
<x-dropdown.button @click="onEmail('{{ route($routeButtonEmail, $transaction->id) }}')">
|
|
|
|
{{ trans('invoices.send_mail') }}
|
|
|
|
</x-dropdown.button>
|
|
|
|
@else
|
|
|
|
<x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="left">
|
|
|
|
<x-dropdown.button disabled="disabled">
|
|
|
|
{{ trans('invoices.send_mail') }}
|
|
|
|
</x-dropdown.button>
|
|
|
|
</x-tooltip>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('email_button_end')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if (! $hideDivider3 && $transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_end_start')
|
|
|
|
|
|
|
|
@if (! $hideButtonEnd)
|
|
|
|
<x-dropdown.link href="{{ route($routeButtonEnd, $transaction->id) }}">
|
|
|
|
{{ trans('recurring.end') }}
|
|
|
|
</x-dropdown.link>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_end_end')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if (! $hideDivider4 && $transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
<x-dropdown.divider />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('delete_button_start')
|
|
|
|
|
2022-07-21 01:07:55 +03:00
|
|
|
@if ($transaction->isNotTransferTransaction())
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideButtonDelete)
|
|
|
|
@can($permissionDelete)
|
|
|
|
@if ($checkButtonReconciled)
|
|
|
|
@if (! $transaction->reconciled)
|
|
|
|
<x-delete-link :model="$transaction" :route="$routeButtonDelete" :text="$textDeleteModal" model-name="transaction_number" />
|
|
|
|
@endif
|
|
|
|
@else
|
|
|
|
<x-delete-link :model="$transaction" :route="$routeButtonDelete" :text="$textDeleteModal" model-name="transaction_number" />
|
|
|
|
@endif
|
|
|
|
@endcan
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('delete_button_end')
|
|
|
|
</x-dropdown>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('button_group_end')
|