@php use Carbon\Carbon; @endphp
{{ $coupon->title }}
{{translate('code')}} : {{ $coupon->code }}
{{translate(str_replace('_',' ',$coupon->coupon_type))}}
{{translate('minimum_purchase')}} : {{setCurrencySymbol(amount: usdToDefaultCurrency(amount: $coupon->min_purchase), currencyCode: getCurrencyCode(type: 'default'))}}
@if($coupon->coupon_type != 'free_delivery' && $coupon->discount_type == 'percentage')
{{translate('maximum_discount')}} : {{setCurrencySymbol(amount: usdToDefaultCurrency(amount:$coupon->max_discount), currencyCode: getCurrencyCode(type: 'default'))}}
@endif
{{translate('start_date')}} : {{ Carbon::parse($coupon->start_date)->format('dS M Y') }}
{{translate('expire_date')}} : {{ Carbon::parse($coupon->expire_date)->format('dS M Y') }}
{{translate('discount_bearer')}} : @if($coupon->coupon_bearer == 'inhouse') {{ translate('admin') }} @elseif($coupon->coupon_bearer == 'seller') {{ translate('vendor') }} @endif
@if($coupon->coupon_type == 'free_delivery') {{translate('free_delivery')}} @else

{{$coupon->discount_type=='amount'?setCurrencySymbol(amount: usdToDefaultCurrency(amount:$coupon->discount), currencyCode: getCurrencyCode(type: 'default')):$coupon->discount.'%'}}

{{translate('off')}} @endif