@extends('layouts.admin') @section('style') @endSection @section('content') @csrf @method('PUT') Edit Group: {{ $group }} Saving applies these settings to all {{ $promo_codes->count() }} promo code(s) in this group. The codes themselves and their usage counts are not changed. Group Name * @if ($errors->has('group_name')) {{ $errors->first('group_name') }} @endif Renaming moves every code in this group to the new name Max Use * @if ($errors->has('max_use')) {{ $errors->first('max_use') }} @endif Maximum number of times each 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 each code Reward Type * @php $reward_type = old('reward_type', $promo_code->reward_type); @endphp Points Voucher Chance @if ($errors->has('reward_type')) {{ $errors->first('reward_type') }} @endif Type of reward to give when a code is used Reward Value * @php $reward_value = old('reward_value', $promo_code->reward_value); @endphp 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 a code is used 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 Codes Code Used Created @foreach($promo_codes as $code_row) {{ $code_row->code }} {{ $code_row->used_count }} {{ $code_row->created_at->format('d/m/Y H:i') }} @endforeach @endsection @section('script') @endsection