@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.
@if ($errors->has('group_name')) {{ $errors->first('group_name') }} @endif Renaming moves every code in this group to the new name
@if ($errors->has('max_use')) {{ $errors->first('max_use') }} @endif Maximum number of times each 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 each code
@php $reward_type = old('reward_type', $promo_code->reward_type); @endphp @if ($errors->has('reward_type')) {{ $errors->first('reward_type') }} @endif Type of reward to give when a code is used
@php $reward_value = old('reward_value', $promo_code->reward_value); @endphp @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
@if ($errors->has('status')) {{ $errors->first('status') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@foreach($promo_codes as $code_row) @endforeach
Code Used Created
{{ $code_row->code }} {{ $code_row->used_count }} {{ $code_row->created_at->format('d/m/Y H:i') }}
@endsection @section('script') @endsection