@extends('admin.layouts.master-soyuz') @section('title', __('Add New Coupon')) @section('body') @component('admin.component.breadcumb',['thirdactive' => 'active']) @slot('heading'){{ __('Home') }}@endslot @slot('menu1'){{ __('Coupon') }}@endslot @slot('menu2'){{ __('Add Coupon') }}@endslot @slot('button')
{{ __('Back') }}
@endslot @endcomponent
{{-- Hero --}}

{{ __('Create a new coupon') }}

{{ __('Drive sales by giving customers a discount on a cart, product, or category.') }}

@if($errors->any()) @endif
@csrf
{{-- LEFT: main fields --}}
{{-- Section: Code & Discount --}}
{{ __('Code & Discount') }}
{{ __('Customers will type this exact code at checkout.') }}
{{-- Section: Apply To --}}
{{ __('What does it apply to?') }}
@php $opts = [ 'cart' => ['label' => __('Whole Cart'), 'icon' => 'shopping-cart', 'desc' => __('Discount the entire order')], 'product' => ['label' => __('Variant Product'), 'icon' => 'box', 'desc' => __('Single variant product')], 'simple_product' => ['label' => __('Simple Product'), 'icon' => 'package', 'desc' => __('Single simple product')], 'category' => ['label' => __('Category'), 'icon' => 'grid', 'desc' => __('All products in a category')], ]; @endphp @foreach($opts as $val => $opt)
@endforeach
{{-- Variant product --}} {{-- Simple product --}} {{-- Category --}}
{{-- RIGHT: rules & limits --}}
{{ __('Rules & Limits') }}
{{ __('How many times this coupon can be used in total.') }}
{{ __('Coupon only applies if cart total exceeds this amount.') }}
{{ __('Leave empty for no expiry.') }}
{{ __('Logged-in users only') }}
{{ __('Block guests from using this coupon') }}
{{-- Live preview --}}
{{ __('Preview') }}
{{ __('YOUR-CODE') }}
{{ __('Discount: $0') }}
@endsection @section('custom-script') @endsection