@extends('layouts.admin') @section('style') @endSection @section('content') @csrf @method('PUT') Edit Promo Code: {{ $promo_code->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 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 * reward_type) == 'POINTS' ? 'selected' : '' }}>Points reward_type) == 'VOUCHER' ? 'selected' : '' }}>Voucher reward_type) == 'CHANCE' ? 'selected' : '' }}>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) reward_value) == $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 Used Count Number of times this code has been used (from usage logs) Status * @foreach($statuses as $key => $label) status) == $key ? 'selected' : '' }}> {{ $label }} @endforeach @if ($errors->has('status')) {{ $errors->first('status') }} @endif Description {{ old('description', $promo_code->description) }} @if ($errors->has('description')) {{ $errors->first('description') }} @endif @endsection @section('script') @endsection