@props(['context' => 'cart', 'appliedCode' => null, 'token' => null, 'tone' => 'light']) @php if ($context === 'checkout' && $token) { $applyRoute = route('checkout.discount.apply', $token); $removeRoute = route('checkout.discount.apply', $token); } else { $applyRoute = route('cart.discount.apply'); $removeRoute = route('cart.discount.remove'); } $dark = $tone === 'dark'; @endphp
{{ $message }}
@enderror @if($appliedCode)Applied: {{ $appliedCode }}
@if($context === 'checkout') @else @endif @else @endif