fixed check discount variable..
This commit is contained in:
parent
dc6fa1bb0b
commit
4c0c1c2510
@ -69,8 +69,8 @@
|
|||||||
@if ($module->price == '0.0000')
|
@if ($module->price == '0.0000')
|
||||||
{{ trans('modules.free') }}
|
{{ trans('modules.free') }}
|
||||||
@else
|
@else
|
||||||
@if (isset($module->is_discount))
|
@if (!empty($module->is_discount))
|
||||||
{!! trans('modules.monthly_price', ['price' => '<del class="text-danger">' . $module->yearly_per_monthly_price . '</del>' . $module->yearly_per_monthly_special_price]) !!}
|
{!! trans('modules.monthly_price', ['price' => '<del class="text-danger">' . $module->yearly_per_monthly_price . '</del> ' . $module->yearly_per_monthly_special_price]) !!}
|
||||||
@else
|
@else
|
||||||
{!! trans('modules.monthly_price', ['price' => $module->yearly_per_monthly_price]) !!}
|
{!! trans('modules.monthly_price', ['price' => $module->yearly_per_monthly_price]) !!}
|
||||||
@endif
|
@endif
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
@if ($module->price == '0.0000')
|
@if ($module->price == '0.0000')
|
||||||
{{ trans('modules.free') }}
|
{{ trans('modules.free') }}
|
||||||
@else
|
@else
|
||||||
@if (isset($module->is_discount))
|
@if (!empty($module->is_discount))
|
||||||
<del class="text-danger">{!! $module->yearly_per_monthly_price !!}</del>
|
<del class="text-danger">{!! $module->yearly_per_monthly_price !!}</del>
|
||||||
{!! $module->yearly_per_monthly_special_price !!} <span class="small">{{ trans('modules.per_month') }}</span>
|
{!! $module->yearly_per_monthly_special_price !!} <span class="small">{{ trans('modules.per_month') }}</span>
|
||||||
@else
|
@else
|
||||||
@ -26,7 +26,15 @@
|
|||||||
|
|
||||||
<div class="text-center text-sm mt-3 mb--2">
|
<div class="text-center text-sm mt-3 mb--2">
|
||||||
<span style="font-size: 12px;">
|
<span style="font-size: 12px;">
|
||||||
{!! trans('modules.save_year', ['price' => '$' . $module->raw_monthly_price * 4]) !!}
|
@if (!empty($module->is_discount))
|
||||||
|
@php
|
||||||
|
$price = '<del class="text-danger">' . '$' . $module->raw_monthly_price * 4 . '</del> ' . '$' . $module->raw_monthly_special_price * 4;
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
{!! trans('modules.save_year', ['price' => $price]) !!}
|
||||||
|
@else
|
||||||
|
{!! trans('modules.save_year', ['price' => '$' . $module->raw_monthly_price * 4]) !!}
|
||||||
|
@endif
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -42,7 +50,7 @@
|
|||||||
@if ($module->price == '0.0000')
|
@if ($module->price == '0.0000')
|
||||||
{{ trans('modules.free') }}
|
{{ trans('modules.free') }}
|
||||||
@else
|
@else
|
||||||
@if (isset($module->is_discount))
|
@if (!empty($module->is_discount))
|
||||||
<del class="text-danger">{!! $module->monthly_price !!}</del>
|
<del class="text-danger">{!! $module->monthly_price !!}</del>
|
||||||
{!! $module->monthly_special_price !!} <span class="small">{{ trans('modules.per_month') }}</span>
|
{!! $module->monthly_special_price !!} <span class="small">{{ trans('modules.per_month') }}</span>
|
||||||
@else
|
@else
|
||||||
@ -61,7 +69,11 @@
|
|||||||
|
|
||||||
<div class="text-center text-sm mt-3 mb--2">
|
<div class="text-center text-sm mt-3 mb--2">
|
||||||
<span style="font-size: 12px;">
|
<span style="font-size: 12px;">
|
||||||
{!! trans('modules.if_paid_year', ['price' => $module->yearly_per_monthly_price]) !!}
|
@if (!empty($module->is_discount))
|
||||||
|
{!! trans('modules.if_paid_year', ['price' => '<del class="text-danger">' . $module->yearly_per_monthly_price . '</del> ' . $module->yearly_per_monthly_special_price]) !!}
|
||||||
|
@else
|
||||||
|
{!! trans('modules.if_paid_year', ['price' => $module->yearly_per_monthly_price]) !!}
|
||||||
|
@endif
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user