2021-06-24 13:52:49 +03:00
|
|
|
@if ($attachment)
|
2022-06-01 10:15:55 +03:00
|
|
|
<div class="border-b border-gray-200 pb-4"
|
|
|
|
x-data="{ attachment : null }"
|
|
|
|
>
|
|
|
|
<div class="relative w-full text-left cursor-pointer group"
|
|
|
|
x-on:click="attachment !== 1 ? attachment = 1 : attachment = null"
|
|
|
|
>
|
|
|
|
<span class="font-medium border-b border-transparent transition-all group-hover:border-black">
|
|
|
|
{{ trans_choice('general.attachments', 2) }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<div class="text-black-400 text-sm">
|
|
|
|
{{ trans('transactions.slider.attachments') }}
|
2021-06-24 13:52:49 +03:00
|
|
|
</div>
|
2022-06-01 10:15:55 +03:00
|
|
|
|
|
|
|
<span class="material-icons absolute right-0 top-0 transition-all transform" x-bind:class="attachment === 1 ? 'rotate-180' : ''">expand_more</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="overflow-hidden transition-transform origin-top-left ease-linear duration-100"
|
|
|
|
x-ref="container1"
|
|
|
|
x-bind:class="attachment == 1 ? 'h-auto ' : 'scale-y-0 h-0'"
|
|
|
|
>
|
|
|
|
@foreach ($attachment as $file)
|
|
|
|
<x-media.file :file="$file" />
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2021-06-24 13:52:49 +03:00
|
|
|
</div>
|
|
|
|
@endif
|