@extends('layouts.admin') @section('style') @endSection @section('content')
@csrf

Create New Promo Code

@if ($errors->has('code')) {{ $errors->first('code') }} @endif Enter a unique promo code (e.g., SAVE20, WELCOME2024). With a quantity above 1 this becomes a prefix and each code gets a random suffix.
@if ($errors->has('group_name')) {{ $errors->first('group_name') }} @endif Settings are edited per group, not per code. Leave blank to name the group after the code/prefix above. Group names must be unique.
@if ($errors->has('quantity')) {{ $errors->first('quantity') }} @endif How many codes to create (max 500). All of them share the settings below.
@if ($errors->has('max_use')) {{ $errors->first('max_use') }} @endif Maximum number of times this code can be used (0 = unlimited)
@if ($errors->has('max_use_per_user')) {{ $errors->first('max_use_per_user') }} @endif Maximum number of times a single user can use this code
@if ($errors->has('reward_type')) {{ $errors->first('reward_type') }} @endif Type of reward to give when code is used
@if ($errors->has('reward_value')) {{ $errors->first('reward_value') }} @endif Amount/quantity of reward (number of points or chance amount) Select the voucher to be awarded when this code is used
@if ($errors->has('status')) {{ $errors->first('status') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@endsection @section('script') @endsection