52 lines
2.0 KiB
PHP
52 lines
2.0 KiB
PHP
|
<x-show.accordion type="send" :open="($accordionActive == 'send')">
|
||
|
<x-slot name="head">
|
||
|
<x-show.accordion.head
|
||
|
title="{{ trans('general.send') }}"
|
||
|
description="{!! trans($description, [
|
||
|
'user' => $document->owner->name,
|
||
|
'date' => $sent_date,
|
||
|
]) !!}"
|
||
|
/>
|
||
|
</x-slot>
|
||
|
|
||
|
<x-slot name="body">
|
||
|
<div class="flex flex-wrap space-x-3 rtl:space-x-reverse">
|
||
|
@if (! $hideEmail)
|
||
|
@if ($document->contact_email)
|
||
|
<x-button id="button-email-send" kind="secondary" @click="onEmail('{{ route($emailRoute, $document->id) }}')">
|
||
|
{{ trans($textEmail) }}
|
||
|
</x-button>
|
||
|
@else
|
||
|
<x-tooltip message="{{ trans('invoices.messages.email_required') }}" placement="top">
|
||
|
<x-dropdown.button disabled="disabled">
|
||
|
{{ trans($textEmail) }}
|
||
|
</x-dropdown.button>
|
||
|
</x-tooltip>
|
||
|
@endif
|
||
|
@endif
|
||
|
|
||
|
@if (! $hideMarkSent)
|
||
|
@can($permissionUpdate)
|
||
|
@if ($document->status == 'draft')
|
||
|
<x-link href="{{ route($markSentRoute, $document->id) }}" @click="e => e.target.classList.add('disabled')">
|
||
|
{{ trans($textMarkSent) }}
|
||
|
</x-link>
|
||
|
@else
|
||
|
<x-button disabled="disabled">
|
||
|
{{ trans($textMarkSent) }}
|
||
|
</x-button>
|
||
|
@endif
|
||
|
@endcan
|
||
|
@endif
|
||
|
|
||
|
@if (! $hideShare)
|
||
|
@if ($document->status != 'cancelled')
|
||
|
<x-button @click="onShareLink('{{ route($shareRoute, $document->id) }}')">
|
||
|
{{ trans('general.share_link') }}
|
||
|
</x-button>
|
||
|
@endif
|
||
|
@endif
|
||
|
</div>
|
||
|
</x-slot>
|
||
|
</x-show.accordion>
|