@if ($coupon->shop_id) @endif
{{ trans('app.name') }}: {{ $coupon->name }}
{{ trans('app.merchant') }}: {{ $coupon->shop->name }}
{{ trans('app.coupon_value') }}: {{ $coupon->type == 'amount' ? get_formated_currency($coupon->value, 2, config('system_settings.currency.id')) : get_formated_decimal($coupon->value) . ' ' . trans('app.percent') }}
{{ trans('app.status') }}: @if ($coupon->ending_time < \Carbon\Carbon::now()) {{ trans('app.expired') }} @else {{ $coupon->active ? trans('app.active') : trans('app.inactive') }} @endif
{{ trans('app.created_at') }}: {{ $coupon->created_at->toDayDateTimeString() }}
{{ trans('app.updated_at') }}: {{ $coupon->updated_at->toDayDateTimeString() }}
  • {{ trans('app.basic_info') }}
  • {{ trans('app.description') }}
  • {{ trans('app.accessibility') }}
@if ($coupon->quantity_per_customer && $coupon->quantity_per_customer != 0) @endif @if ($coupon->min_order_amount && $coupon->min_order_amount != 0) @endif
{{ trans('app.code') }}: {{ $coupon->code }}
{{ trans('app.coupon_quantity_per_customer') }}: {{ $coupon->quantity_per_customer }}
{{ trans('app.active_from') }}: {{ $coupon->starting_time ? $coupon->starting_time->toDayDateTimeString() : '' }}
{{ trans('app.active_till') }}: {{ $coupon->ending_time ? $coupon->ending_time->toDayDateTimeString() : '' }}
{{ trans('app.min_order_amount') }}: {{ get_formated_currency($coupon->min_order_amount, 2, config('system_settings.currency.id')) }}
{{ trans('app.restriction') }}: {{ $coupon->limited ? trans('app.limited_coupon') : trans('app.public_coupon') }}
@if ($coupon->description) {!! htmlspecialchars_decode($coupon->description) !!} @else

{{ trans('app.description_not_available') }}

@endif
@if ($coupon->limited) @foreach ($coupon->customers as $customer) @endforeach
{{ trans('app.avatar') }} {{ trans('app.nice_name') }} {{ trans('app.full_name') }} {{ trans('app.email') }} {{ trans('app.status') }}
{{ trans('app.avatar') }} {{ $customer->nice_name }} {{ $customer->name }} {{ $customer->email }} {{ $customer->active ? trans('app.active') : trans('app.inactive') }}
@else

{{ trans('app.public_coupon') }}

@endif