{{-- Coupon Summary Panel --}}
{{ $coupon->code }} @if($coupon->expires_at && \Carbon\Carbon::parse($coupon->expires_at)->isPast()) {{ __('Expired') }} @elseif($coupon->is_active) {{ __('Active') }} @else {{ __('Inactive') }} @endif
{{ __('Edit Coupon') }}
{{-- Coupon Details --}}
{{-- Discount Information --}}

{{ __('Discount Information') }}

{{ __('Type') }} @if($coupon->type === 'percent_off') {{ __('Percentage') }} @else {{ __('Fixed Amount') }} @endif
{{ __('Value') }} @if($coupon->type === 'percent_off') {{ $coupon->percent_off }}% {{ __('off') }} @else @currency($coupon->amount_off) {{ __('off') }} @endif
{{ __('Duration') }} {{ $coupon->duration }} @if($coupon->duration === 'repeating' && $coupon->duration_in_months) ({{ $coupon->duration_in_months }} {{ __('months') }}) @endif
{{ __('Status') }} @if($coupon->is_active) {{ __('Active') }} @else {{ __('Inactive') }} @endif
{{-- Usage & Dates --}}

{{ __('Usage & Dates') }}

{{ __('Redemptions') }}
{{ $coupon->times_redeemed ?? 0 }} @if($coupon->max_redemptions) / {{ $coupon->max_redemptions }}
@else / {{ __('unlimited') }} @endif
{{ __('Expires At') }} @if($coupon->expires_at) {{ \Carbon\Carbon::parse($coupon->expires_at)->format('M j, Y g:i A') }} @if(\Carbon\Carbon::parse($coupon->expires_at)->isPast()) {{ __('Already expired') }} @else {{ \Carbon\Carbon::parse($coupon->expires_at)->diffForHumans() }} @endif @else {{ __('No expiration') }} @endif
{{ __('Stripe Coupon ID') }} @if($coupon->stripe_coupon_id) {{ $coupon->stripe_coupon_id }} @else {{ __('Not linked') }} @endif
{{ __('Created At') }} {{ \Carbon\Carbon::parse($coupon->created_at)->format('M j, Y g:i A') }}
{{-- Actions --}}
{{ __('Back to Coupons') }}
{{ __('Edit Coupon') }}
@csrf @method('DELETE')