refactoring

This commit is contained in:
Burak Civan 2022-11-28 17:55:21 +03:00
parent ef75f2c43e
commit ecc643435b
3 changed files with 9 additions and 18 deletions

View File

@ -1,27 +1,27 @@
<x-form> <x-form>
<div> <div>
<div class="relative" x-model="price_type"> <div class="relative" x-model="price_type">
<div class="w-58 flex items-center bg-gray-200 p-1 rounded-lg"> <div class="w-58 flex items-center">
<button type="button" <button type="button"
x-on:click="price_type = 'monthly'" x-on:click="price_type = 'monthly'"
class="w-18 flex justify-center px-2" 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-white rounded-lg' : 'btn-outline-primary'" x-bind:class="price_type == 'monthly' ? 'bg-black-700 text-white' : 'bg-gray-200 btn-outline-primary'"
> >
{{ trans('general.monthly') }} {{ trans('general.monthly') }}
</button> </button>
<button type="button" <button type="button"
x-on:click="price_type = 'yearly'" x-on:click="price_type = 'yearly'"
class="w-18 flex justify-center px-2" 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-white rounded-lg' : 'btn-outline-primary'" x-bind:class="price_type == 'yearly' ? 'bg-black-700 text-white' : 'bg-gray-200 btn-outline-primary'"
> >
{{ trans('general.yearly') }} {{ trans('general.yearly') }}
</button> </button>
<button type="button" <button type="button"
x-on:click="price_type = 'lifetime'" x-on:click="price_type = 'lifetime'"
class="w-18 flex justify-center px-2" 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-white rounded-lg' : 'btn-outline-primary'" x-bind:class="price_type == 'lifetime' ? 'bg-black-700 text-white' : 'bg-gray-200 btn-outline-primary'"
> >
{{ trans('general.lifetime') }} {{ trans('general.lifetime') }}
</button> </button>

View File

@ -1,9 +0,0 @@
<div
x-data="{ }"
x-init="document.querySelector('[data-modal-handle]') ? document.querySelectorAll('[data-modal-handle]').forEach((item) => { item.classList.add('invisible') }) : null, setTimeout(() => $refs.loadingModuleContent.remove(), 1000), setTimeout(() => document.querySelector('[data-modal-handle]') ? document.querySelectorAll('[data-modal-handle]').forEach((item) => { item.classList.remove('invisible') }) : null , 1010)"
x-ref="loadingModuleContent"
class="absolute lg:flex items-center justify-center bg-body top-0 bottom-0 left-0 right-0"
style="width: 120%; z-index: 60;"
>
<img src="{{ asset('public/img/akaunting-loading.gif') }}" class="w-28 h-28" alt="Akaunting" />
</div>

View File

@ -14,6 +14,8 @@
</x-slot> </x-slot>
<x-slot name="content"> <x-slot name="content">
<x-loading.content />
<div class="flex flex-col space-y-16 py-4 cursor-default"> <div class="flex flex-col space-y-16 py-4 cursor-default">
<div class="flex flex-col lg:flex-row w-full lg:space-x-16 rtl:space-x-reverse space-y-0"> <div class="flex flex-col lg:flex-row w-full lg:space-x-16 rtl:space-x-reverse space-y-0">
<div class="w-full lg:w-7/12 flex flex-col space-x-2 banner"> <div class="w-full lg:w-7/12 flex flex-col space-x-2 banner">
@ -102,8 +104,6 @@
</div> </div>
<div class="flex items-center space-x-4 justify-between"> <div class="flex items-center space-x-4 justify-between">
<x-loading.module />
<x-layouts.modules.show.price :module="$module" /> <x-layouts.modules.show.price :module="$module" />
<div class="flex lg:justify-center"> <div class="flex lg:justify-center">