2022-06-13 16:00:25 +03:00

50 lines
1.5 KiB
PHP

@props(['module'])
@if ($module->price != '0.0000')
<div class="flex gap-2 items-baseline">
{!! $module->price_prefix !!}
<div x-show="price_type == true">
@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">
{!! $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>
{!! $module->price_suffix !!}
<span class="font-thin">
{{ trans('modules.per_month') }}
</span>
</div>
@else
<span class="text-4xl font-bold text-purple">
{{ trans('modules.free') }}
</span>
@endif