@extends('layouts.admin') @section('style') @parent @include('admin.components.create_voucher_series_style') @endsection @section('script') @include('admin.components.create_voucher_series_script', ['voucher_series',$voucher_series]) @endsection @section('content') @php $step = '3' @endphp @component('admin.components.step_form_pages', ['post_url'=>$post_url, 'type'=>'voucher', 'voucher_series'=>$voucher_series, 'title'=> config('admin.create_voucher')['step_3']['title'] , 'step'=>'3' ]) @php $form = config('admin.new_voucher')@endphp @php $id = 'business_asset_ids'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'redemption_method' @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'help'=>'redeem_guide', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @php $redemption_method = $voucher_series['redemption_method'] ?? old('redemption_method') ?? 'none'; $methods = [ '6_digit' => '6 Digit Pin', 'none' => 'None', //'point_redemption' => 'Point', ]; @endphp
@foreach ($methods as $key => $method)
@endforeach
Get the 6 digits pins for each outlet here @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent {{-- @php $id = 'promotion_mechanic' @endphp--}} {{-- @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])--}} {{-- @php--}} {{-- $promotion_mechanic = old('promotion_mechanic') ?? $voucher_series['promotion_mechanic'] ?? 'none_mechanic';--}} {{-- $mechanics = [--}} {{-- 'qr_code' => 'QR Code',--}} {{-- 'bar_code' => 'Barcode',--}} {{-- 'plain_text' => 'Plain Text',--}} {{-- 'unique_promo_code' => 'Unique Promo Code',--}} {{-- 'none_mechanic' => 'None',--}} {{-- ];--}} {{-- @endphp--}} {{--
--}} {{--
--}} {{-- @foreach ($mechanics as $key => $mechanic)--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{-- @endforeach--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent--}} {{-- @endcomponent--}} @php $id = 'promotion_mechanic' @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
{{-- --}}
Outlet Store Promo Mech ValueEdit
Loading...
@endcomponent @slot('footer_back') url(), 0, -1).((int)$step-1) }} class="btn btn-default">Back @endslot @slot('footer_next') @if($voucher_series['series_id']) @else @endif @endslot @endcomponent {{-- --}} @endsection