31 lines
1.1 KiB
PHP
Raw Normal View History

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">
2022-06-27 14:53:06 +03:00
<x-link.hover group-hover>
{{ trans_choice('general.attachments', 2) }}
</x-link.hover>
2022-06-01 10:15:55 +03:00
</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