@php $reward_qty_id = $reward_qty_id ?? null; $is_half = $is_half ?? false; $data_category = $data_category ?? null; @endphp @if ($reward_qty_id !== false) @php $id = $reward_qty_id ?? 'qty'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field', [ 'class' => 'col-12 col-sm-12 col-md-3 col-lg-2', 'label' => $form[$id]['label'], 'required' => $form[$id]['req'], 'description' => $form[$id]['descr'], 'hasError' => $hasError, ]) @endcomponent @endif @php $challenge_id = blank($challenge_id ?? null) ? '' : "{$challenge_id}_"; $id = $reward_type_id ?? 'type'; $hasError = $errors->has($id); $classes = ['col-sm-12',]; if (!$is_half) { $classes = array_merge($classes, [ // 'col-md-8', 'col-lg-8', 'col-xl-7', 'col-md-9', 'col-lg-10', 'col-xl-10', ]); } @endphp @component('admin.components.form_field', [ 'class' => implode(' ', $classes), 'label' => '', 'required' => $form[$id]['req'], 'description' => $form[$id]['descr'], 'hasError' => $hasError, ])
@foreach ($form[$id]['input'] as $gid => $name) @php $_tmp = "{$challenge_id}{$id}_{$gid}"; // dump($challenge_id); @endphp
@endforeach @foreach ($form[$id]['select'] as $gid => $name) @php $_tmp = "{$challenge_id}{$id}_{$gid}"; @endphp
Only provisioned while stocks last
@if($challenge_id === 'upload_receipt_')
{{-- stacking --}} {{-- tiering --}} {{-- bonus reward by sku --}}

Set the mechanics, pick the SKUs that earn it, then add the rule. Add as many rules as the challenge needs.

Any of: one product is enough. All of: the receipt needs every one.
How often it counts: per receipt, per different product, or per item bought.
Tick this same reward on the challenge above, or the bonus never pays.
What one award is worth. Per matching unit multiplies it by the items bought.
A SKU is listed once. Picking it covers every retail partner stocking it.
Leave empty if the challenge has no SKU bonus.
@endif @endforeach
@component('admin.components.form_error_msg', ['hasError' => $hasError]) {{ $errors->first($id) }} @endcomponent @endcomponent @once('script_gamification_reward') @push('script') @endpush @endonce()