@extends('layouts.admin') @section('style') @endSection @section('script') @endSection @section('content') @php $page_title = __('heading.title_list_voucher_series'); @endphp @csrf {{--{{ __('heading.title_data_download') }}--}} Import Voucher Series Download Template {{----}} {{--@csrf--}} {{----}} Only CSV format is allowed Number column shall not have comma (,) Date format shall be (Y-m-d) DateTime format shall be (Y-m-d H:i:s) {{--Select pre data columns. --}} {{--Dynamic columns, choose from the dropdown. / custom --}} Redemption Method* @php $methods = [ 'none' => 'None', '6_digit' => '6 Digit Pin', //'point_redemption' => 'Point', ]; @endphp @foreach ($methods as $key => $method) {{ $method }} @endforeach @if ($errors->has('redemption_method')) {{ $errors->first('redemption_method') }} @endif {{-- Promotion Mechanic* 6 Digit Voucher Code 13 Digit code None @if ($errors->has('name')) {{ $errors->first('name') }} @endif --}} Import name * @if ($errors->has('name')) {{ $errors->first('name') }} @endif Select File to Upload* @if ($errors->has('file')) {{ $errors->first('file') }} @endif Business Account* @foreach( $business_accounts as $account) {{ $account['account_sn'] }} - {{$account['company_name']}} @endforeach @if ($errors->has('business_account_id')) {{ $errors->first('business_account_id') }} @endif Creative Template @foreach($creative_templates as $template) {{--Sample:--}} {{----}} {{ $template['name'] }} @endforeach {{----}} {{----}} {{----}} {{--Option one is this and that—be sure to include why it's great--}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--Option two can be something else and selecting it will deselect option one--}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--Option three is disabled--}} {{----}} {{----}} Default *Include the column in the CSV file to overwrite the default value Terms and conditions {!! old('terms_and_conditions') ?? $default['terms_and_conditions'] !!} @if ($errors->has('terms_and_conditions')) {{ $errors->first('terms_and_conditions') }} @endif SMS Template * {!! old('sms_template') ?? $default['sms_template'] !!} @foreach($sms_variables as $key => $variable) {{$variable}} @endforeach @if ($errors->has('sms_template')) {{ $errors->first('sms_template') }} @endif Number of Times Each Voucher Can Be Used * @if ($errors->has('max_use')) {{ $errors->first('max_use') }} @endif Privacy Policy URL @if ($errors->has('privacy_url')) {{ $errors->first('privacy_url') }} @endif Maximum Number of Vouchers to be Issued * {{-- {{ $available_number_redeem_code }} redeem codes available--}} {{----}} Select Contact Details to Collect * Name Email Mobile @if ($errors->has('contact_details')) {{ $errors->first('contact_details') }} @endif {{----}} {{----}} {{----}} {{----}} Submit @endsection
*Include the column in the CSV file to overwrite the default value