@component('admin.components.card', [ 'header' => 'Outlets', 'collapse' => 1, 'class' => 'w-100 mb-0', 'withShadowClass' => 0, 'table' => 1, 'body_class' => 'overflow-hidden', ])
# Outlet Category Chance Limit Chance Points Voucher Series
@endcomponent {{-- add --}} @php $form_prefix = 'modal_add_outlet_'; @endphp @component('components.utility.template_popup', [ 'id' => $form_prefix . $challenge_id, 'custom_dialog_class' => 'modal-md', 'body_class' => '', ]) @slot('slot_header') @endslot @slot('slot') @php $id = "{$form_prefix}outlets"; @endphp @component('admin.components.form_field', [ 'class' => 'col-sm-12', 'label' => 'Select Outlet Name', 'required' => false, 'description' => '', 'hasError' => false, ]) @endcomponent @endslot @slot('slot_footer')
@endslot @endcomponent {{-- config --}} @php $form_prefix = 'modal_config_reward_'; @endphp @component('components.utility.template_popup', [ 'id' => 'modal_config_reward_' . $challenge_id, 'custom_dialog_class' => '', 'custom_dialog_style' => 'max-width: 550px;', 'body_class' => '', ]) @php $class_left = 'col-12 col-sm-12 col-md-4'; $class_right = 'col-12 col-sm-12 col-md-8 mx-0 px-0'; @endphp @slot('slot_header') @endslot @slot('slot')
@component('admin.components.form_field', [ 'class' => 'col-10 col-sm-4 col-md-4', 'label' => 'Use Default Settings', 'required' => false, 'description' => '', 'hasError' => false, ]) @endcomponent @php $id = "{$form_prefix}use_default_act"; @endphp @component('admin.components.form_field', [ 'class' => 'col-2 col-sm-8 col-md-8 mx-0 px-0', 'label' => '', 'required' => false, 'description' => '', 'hasError' => false, ])
@endcomponent

@component('admin.components.form_field', [ 'class' => $class_left, 'label' => 'Chance Limit', 'required' => false, 'description' => '', 'hasError' => false, ]) @endcomponent @component('admin.components.form_field', [ 'class' => $class_right, 'label' => '', 'required' => false, 'description' => '', 'hasError' => false, ])
@php $id = "{$form_prefix}mechanism"; @endphp
@foreach (['daily_limit' => 'Daily', 'lifetime_limit' => 'Lifetime'] as $val => $txt)
@endforeach
@php $id = "{$form_prefix}mechanism_qty"; @endphp
@component('admin.components.form_field', [ 'label' => '', 'required' => false, 'description' => '', 'hasError' => $hasError, ]) New chances will only be reflected on the next day 12AM @endcomponent
@endcomponent

@component('admin.setting.components.gamification_reward', [ 'form' => $form, 'errors' => $errors, 'reward_qty_id' => $reward_qty_id, 'reward_type_id' => $reward_type_id, 'challenge_id' => rtrim($form_prefix, '_'), 'data_category' => $data_category, 'data_ignore_group_listen' => 1, ]) @endcomponent

@component('admin.components.form_field', [ 'class' => $class_left, 'label' => 'Reward Title', 'required' => false, 'description' => '', 'hasError' => false, ]) @endcomponent @php $id = "{$form_prefix}title"; @endphp @component('admin.components.form_field', [ 'class' => $class_right, 'label' => '', 'required' => false, 'description' => '', 'hasError' => false, ]) @endcomponent @component('admin.components.form_field', [ 'class' => $class_left, 'label' => 'Reward Subtitle', 'required' => false, 'description' => '', 'hasError' => false, ]) @endcomponent @php $id = "{$form_prefix}subtitle"; @endphp @component('admin.components.form_field', [ 'class' => $class_right, 'label' => '', 'required' => false, 'description' => '', 'hasError' => false, ]) @endcomponent
@endslot @slot('slot_footer')
@endslot @endcomponent @component('components.utility.modal_confirmation_delete') @endcomponent @once @push('style') @endpush @endonce @once @push('script') @endpush @endonce