fixed check discount variable..

This commit is contained in:
Cüneyt Şentürk
2021-11-22 18:50:03 +03:00
parent dc6fa1bb0b
commit 4c0c1c2510
2 changed files with 18 additions and 6 deletions

View File

@@ -69,8 +69,8 @@
@if ($module->price == '0.0000')
{{ trans('modules.free') }}
@else
@if (isset($module->is_discount))
{!! trans('modules.monthly_price', ['price' => '<del class="text-danger">' . $module->yearly_per_monthly_price . '</del>' . $module->yearly_per_monthly_special_price]) !!}
@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]) !!}
@else
{!! trans('modules.monthly_price', ['price' => $module->yearly_per_monthly_price]) !!}
@endif