-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
share.blade.php
36 lines (32 loc) · 1.33 KB
/
share.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<x-form id="form-share">
<div class="text-center">
<div class="my-3">
{{ trans('transactions.share.' . $transaction->type . '.show_link') }} :
</div>
<div class="my-3">
<x-form.input.text
name="share"
value="{{ $signedUrl }}"
ref="clone"
@click="onCopyLink()"
style="appearance: none; background-color: whitesmoke; border: none; font-size: 16px;"
/>
<x-form.input.hidden name="hidden-share" value="{{ $signedUrl }}" />
<div data-copied class="hidden h-10 items-center justify-center">
<span
class="px-2.5 py-1 ltr:ml-2 rtl:mr-2 text-xs font-medium rounded-xl bg-orange-300 text-orange-700"
>
{{ trans('general.copied') }}
</span>
</div>
</div>
<div class="my-3">
{{ trans('transactions.share.' . $transaction->type . '.copy_link') }}
</div>
<div class="my-3">
<x-link href="{{ $previewUrl }}" class="flex items-center justify-center gap-x-2 text-purple" override="class" target="_blank">
{{ trans('general.preview_in_window') }} <x-icon icon="open_in_new" />
</x-link>
</div>
</div>
</x-form>