module pricing changes
This commit is contained in:
@ -1,28 +1,12 @@
|
||||
@props(['module'])
|
||||
|
||||
@if ($module->price != '0.0000')
|
||||
<div class="flex gap-2 items-baseline">
|
||||
<div class="flex gap-2 items-baseline cursor-default">
|
||||
{!! $module->price_prefix !!}
|
||||
|
||||
<div x-show="price_type == true">
|
||||
<div x-show="price_type == 'monthly'">
|
||||
@if (! empty($module->is_discount))
|
||||
<del class="text-red">
|
||||
{!! $module->yearly_per_monthly_price !!}
|
||||
</del>
|
||||
|
||||
<span class="text-5xl font-bold text-purple">
|
||||
{!! $module->yearly_per_monthly_special_price !!}
|
||||
</span>
|
||||
@else
|
||||
<span class="text-5xl font-bold text-purple">
|
||||
{!! $module->yearly_per_monthly_price !!}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div x-show="price_type == false">
|
||||
@if (! empty($module->is_discount))
|
||||
<del class="text-red">
|
||||
<del class="text-red mr-2">
|
||||
{!! $module->monthly_price !!}
|
||||
</del>
|
||||
|
||||
@ -36,11 +20,47 @@
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div x-show="price_type == 'yearly'">
|
||||
@if (! empty($module->is_discount))
|
||||
<del class="text-red mr-2">
|
||||
{!! $module->yearly_per_monthly_price !!}
|
||||
</del>
|
||||
|
||||
<span class="text-5xl font-bold text-purple">
|
||||
{!! $module->yearly_per_monthly_special_price !!}
|
||||
</span>
|
||||
@else
|
||||
<span class="text-5xl font-bold text-purple">
|
||||
{!! $module->yearly_per_monthly_price !!}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div x-show="price_type == 'lifetime'">
|
||||
@if (! empty($module->is_discount))
|
||||
<del class="text-red mr-2">
|
||||
{!! $module->lifetime_price !!}
|
||||
</del>
|
||||
|
||||
<span class="text-5xl font-bold text-purple">
|
||||
{!! $module->lifetime_special_price !!}
|
||||
</span>
|
||||
@else
|
||||
<span class="text-5xl font-bold text-purple">
|
||||
{!! $module->lifetime_price !!}
|
||||
</span>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
{!! $module->price_suffix !!}
|
||||
|
||||
<span class="font-thin">
|
||||
<span x-show="price_type != 'lifetime'" class="font-thin">
|
||||
{{ trans('modules.per_month') }}
|
||||
</span>
|
||||
|
||||
<span x-show="price_type == 'lifetime'" class="font-thin lowercase">
|
||||
{{ trans('modules.once') }}
|
||||
</span>
|
||||
</div>
|
||||
@else
|
||||
<span class="text-4xl font-bold text-purple">
|
||||
|
Reference in New Issue
Block a user