@if ($coupons->count() > 0)
| {{ trans('theme.value') }} | {{ trans('theme.store') }} | {{ trans('theme.coupon_code') }} | {{ trans('theme.validity') }} |
|---|---|---|---|
|
@php
$value = $coupon->type == 'amount' ? get_formated_currency($coupon->value, true, 2) : get_formated_decimal($coupon->value) . '%';
@endphp
@if ($coupon->min_order_amount)
{{ trans('theme.when_min_order_value', ['value' => get_formated_currency($coupon->min_order_amount, true, 2)]) }}
@endif
{{ trans('theme.coupon_off', ['value' => $value]) }}
|
{{ $coupon->shop->name }} | {{ $coupon->code }} | {!! $coupon->validityText() !!} |
@lang('theme.nothing_found')
@endif