@php $c = $coupon ?? null; $action = $c ? route('admin.coupons.update', $c->id) : route('admin.coupons.store'); $selectedPkg = old('applicable_package_ids', $c?->applicable_package_ids ?? []); $currencies = $currencies ?? ['' => 'Any currency']; @endphp
@csrf @if ($c) @method('PATCH') @endif {{-- ── Section 1: Identity ── --}}
01 {{ __('Identity') }}
{{ __('Uppercased on save. This is what customers type at checkout.') }}
{{-- ── Section 2: Discount ── --}}
02 {{ __('Discount') }}
{{ __('% type: 10 = 10%. Fixed: 10 = 10 currency units.') }}
{{ __('e.g. 20% off, but never more than $50.') }}
{{ __('Restrict redemption to one currency (fixed-amount coupons).') }}
{{-- ── Section 3: Eligibility ── --}}
03 {{ __('Eligibility') }}
{{ __('Type to filter. Click to add. Click chip × to remove.') }}
{{ __('Blank = available now.') }}
{{ __('Blank = never expires.') }}
{{-- ── Section 4: Limits & behavior ── --}}
04 {{ __('Limits & behavior') }}
{{ __('Across all customers.') }}
{{ __('How many times one customer can redeem.') }}
{{-- Footer actions span all columns. --}}
{{ __('Cancel') }}