App pricing tab updated

This commit is contained in:
EnesSacid-Buker 2023-02-24 15:47:22 +03:00
parent 2069a9161c
commit 73818d3c88
No known key found for this signature in database
GPG Key ID: 13B101B7922E1730

View File

@ -54,7 +54,13 @@
@endif
</div>
<div class="relative w-full lg:w-5/12" x-data="{ price_type : {{ $module->where_to_use[0] == 'cloud' ? "'lifetime'" : "'yearly'" }} }">
<div class="relative w-full lg:w-5/12"
@if (in_array('cloud', $module->where_to_use) && count($module->where_to_use) == 1)
x-data="{ price_type : 'lifetime' }"
@else
x-data="{ price_type : 'yearly' }"
@endif
>
<div class="flex flex-col space-y-6">
<div class="flex flex-col cursor-default">
<div class="flex flex-col space-y-4">