32 lines
1.4 KiB
PHP
Raw Normal View History

2022-06-24 10:20:38 +03:00
<x-form>
2022-11-28 17:30:25 +03:00
<div>
2022-06-24 10:20:38 +03:00
<div class="relative" x-model="price_type">
2022-11-28 17:55:21 +03:00
<div class="w-58 flex items-center">
2022-06-24 10:20:38 +03:00
<button type="button"
2022-11-28 13:17:36 +03:00
x-on:click="price_type = 'monthly'"
2022-11-28 17:55:21 +03:00
class="w-18 flex justify-center text-base px-2 py-1 rounded-tl-lg rounded-bl-lg"
x-bind:class="price_type == 'monthly' ? 'bg-black-700 text-white' : 'bg-gray-200 btn-outline-primary'"
2022-06-24 10:20:38 +03:00
>
{{ trans('general.monthly') }}
</button>
2022-06-01 10:15:55 +03:00
2022-06-24 10:20:38 +03:00
<button type="button"
2022-11-28 13:17:36 +03:00
x-on:click="price_type = 'yearly'"
2022-11-28 17:55:21 +03:00
class="w-18 flex justify-center text-base px-2 py-1 border-r border-l border-gray-300"
x-bind:class="price_type == 'yearly' ? 'bg-black-700 text-white' : 'bg-gray-200 btn-outline-primary'"
2022-06-24 10:20:38 +03:00
>
{{ trans('general.yearly') }}
</button>
2022-11-28 13:17:36 +03:00
<button type="button"
x-on:click="price_type = 'lifetime'"
2022-11-28 17:55:21 +03:00
class="w-18 flex justify-center text-base px-2 py-1 rounded-tr-lg rounded-br-lg "
x-bind:class="price_type == 'lifetime' ? 'bg-black-700 text-white' : 'bg-gray-200 btn-outline-primary'"
2022-11-28 13:17:36 +03:00
>
{{ trans('general.lifetime') }}
</button>
2022-06-01 10:15:55 +03:00
</div>
2022-06-24 10:20:38 +03:00
</div>
2022-06-01 10:15:55 +03:00
</div>
</x-form>