2023-12-15 15:42:57 +01:00
|
|
|
<div x-data="{ open: true }" style="display: none;" id="displayTermsModal" class="fixed bottom-0 inset-x-0 px-4 pb-4 sm:inset-0 sm:flex sm:items-center sm:justify-center">
|
2020-11-17 16:56:44 +01:00
|
|
|
<div x-show="open" x-transition:enter="ease-out duration-300" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100" x-transition:leave="ease-in duration-200" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0" class="fixed inset-0 transition-opacity">
|
2020-03-23 18:10:42 +01:00
|
|
|
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
|
|
|
</div>
|
|
|
|
|
2020-11-17 16:56:44 +01:00
|
|
|
<div x-show="open" x-transition:enter="ease-out duration-300" x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100" x-transition:leave="ease-in duration-200" x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100" x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" class="bg-white rounded-lg px-4 pt-5 pb-4 overflow-hidden shadow-xl transform transition-all sm:max-w-lg sm:w-full sm:p-6">
|
2024-01-29 05:43:40 +01:00
|
|
|
<div class="">
|
2020-03-23 18:10:42 +01:00
|
|
|
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
2020-11-17 16:56:44 +01:00
|
|
|
<h3 class="text-xl leading-6 font-medium text-gray-900">
|
2020-03-23 18:10:42 +01:00
|
|
|
{{ ctrans('texts.terms') }}
|
|
|
|
</h3>
|
2021-10-13 13:00:06 +02:00
|
|
|
<div class="mt-4 h-64 overflow-y-auto">
|
2020-11-17 16:56:44 +01:00
|
|
|
@foreach($entities as $entity)
|
|
|
|
<div class="mb-4">
|
2021-03-02 13:42:25 +01:00
|
|
|
<p class="text-sm leading-6 font-medium text-gray-500">{{ $entity_type }} {{ $entity->number }}:</p>
|
2024-01-29 05:43:40 +01:00
|
|
|
@if($variables && $entity->terms)
|
2024-03-29 22:31:49 +01:00
|
|
|
<h5 data-ref="entity-terms">{!! $entity->parseHtmlVariables('terms', $variables) !!}</h5>
|
2024-01-29 05:43:40 +01:00
|
|
|
@elseif($entity->terms)
|
2021-03-02 13:42:25 +01:00
|
|
|
<h5 data-ref="entity-terms" class="text-sm leading-5 text-gray-900">{!! $entity->terms !!}</h5>
|
2020-11-17 16:56:44 +01:00
|
|
|
@else
|
|
|
|
<i class="text-sm leading-5 text-gray-500">{{ ctrans('texts.not_specified') }}</i>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endforeach
|
2020-03-23 18:10:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="mt-5 sm:mt-4 sm:flex sm:flex-row-reverse">
|
2023-07-16 04:40:32 +02:00
|
|
|
<div class="flex w-full rounded-md shadow-sm sm:ml-3 sm:w-auto" x-data>
|
2023-12-13 17:52:49 +01:00
|
|
|
<button
|
2021-12-15 10:25:13 +01:00
|
|
|
type="button"
|
2023-12-13 17:52:49 +01:00
|
|
|
id="accept-terms-button"
|
2021-12-15 10:25:13 +01:00
|
|
|
onclick="setTimeout(() => this.disabled = true, 0); setTimeout(() => this.disabled = false, 5000); return true;"
|
|
|
|
class="button button-primary bg-primary">
|
2021-04-25 15:57:55 +02:00
|
|
|
{{ ctrans('texts.i_agree') }}
|
2020-03-23 18:10:42 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
2023-07-16 04:40:32 +02:00
|
|
|
<div class="mt-3 flex w-full rounded-md shadow-sm sm:mt-0 sm:w-auto" x-data>
|
|
|
|
<button @click="document.getElementById('displayTermsModal').style.display = 'none';" type="button" class="button button-secondary" id="close-terms-button">
|
2020-03-23 18:10:42 +01:00
|
|
|
{{ ctrans('texts.close') }}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-02 13:42:25 +01:00
|
|
|
|
|
|
|
@push('footer')
|
2023-09-04 16:07:34 +02:00
|
|
|
@vite('resources/js/clients/linkify-urls.js')
|
2021-03-02 13:42:25 +01:00
|
|
|
@endpush
|