@extends('layouts.admin') @section('style') @endSection @section('content') @csrf Create New Promo Code Code * @if ($errors->has('code')) {{ $errors->first('code') }} @endif Enter a unique promo code (e.g., SAVE20, WELCOME2024) Max Use * @if ($errors->has('max_use')) {{ $errors->first('max_use') }} @endif Maximum number of times this code can be used (0 = unlimited) Max Use Per User * @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 Reward Type * Points Voucher Chance @if ($errors->has('reward_type')) {{ $errors->first('reward_type') }} @endif Type of reward to give when code is used Reward Value * Select a voucher @foreach($vouchers as $voucher) series_id ? 'selected' : '' }}> {{ $voucher->title }} (ID: {{ $voucher->series_id }}) @endforeach @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 Status * @foreach($statuses as $key => $label) {{ $label }} @endforeach @if ($errors->has('status')) {{ $errors->first('status') }} @endif Description {{ old('description') }} @if ($errors->has('description')) {{ $errors->first('description') }} @endif @endsection @section('script') @endsection