70 lines
2.2 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
@props(['module'])
@if ($module->price != '0.0000')
2022-11-28 17:30:25 +03:00
<div class="flex flex-col 2xl:flex-row gap-2 items-baseline cursor-default">
2022-06-01 10:15:55 +03:00
{!! $module->price_prefix !!}
2022-11-28 13:17:36 +03:00
<div x-show="price_type == 'monthly'">
2022-06-01 10:15:55 +03:00
@if (! empty($module->is_discount))
2022-11-28 13:17:36 +03:00
<del class="text-red mr-2">
{!! $module->monthly_price !!}
</del>
<span class="text-5xl font-bold text-purple">
{!! $module->monthly_special_price !!}
</span>
@else
<span class="text-5xl font-bold text-purple">
{!! $module->monthly_price !!}
</span>
@endif
</div>
<div x-show="price_type == 'yearly'">
@if (! empty($module->is_discount))
<del class="text-red mr-2">
2022-06-01 10:15:55 +03:00
{!! $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>
2022-11-28 13:17:36 +03:00
<div x-show="price_type == 'lifetime'">
2022-06-01 10:15:55 +03:00
@if (! empty($module->is_discount))
2022-11-28 13:17:36 +03:00
<del class="text-red mr-2">
{!! $module->lifetime_price !!}
2022-06-01 10:15:55 +03:00
</del>
<span class="text-5xl font-bold text-purple">
2022-11-28 13:17:36 +03:00
{!! $module->lifetime_special_price !!}
2022-06-01 10:15:55 +03:00
</span>
@else
<span class="text-5xl font-bold text-purple">
2022-11-28 13:17:36 +03:00
{!! $module->lifetime_price !!}
2022-06-01 10:15:55 +03:00
</span>
@endif
</div>
{!! $module->price_suffix !!}
2022-11-28 13:17:36 +03:00
<span x-show="price_type != 'lifetime'" class="font-thin">
2022-06-01 10:15:55 +03:00
{{ trans('modules.per_month') }}
</span>
2022-11-28 13:17:36 +03:00
<span x-show="price_type == 'lifetime'" class="font-thin lowercase">
{{ trans('modules.once') }}
</span>
2022-06-01 10:15:55 +03:00
</div>
@else
<span class="text-4xl font-bold text-purple">
{{ trans('modules.free') }}
</span>
@endif