Sync customer voucher state from BDUK .csv

Download the voucher report spreadsheet from BDUK 'View report' page then convert is to a .csv file before uploading here.
Expects first row to contain title ‘email’ and this will be used to find the customer. Will set the customer voucher_consent state based on ‘voucher status’ column.
@if(!empty($report_vs))
    @foreach($report_vs as $key => $val) @if(!empty($val['error']))
  • Row {{ $key }}: {!! $val['info'] !!}

    @if(is_array($val['error']) || is_object($val['error'])) @foreach($val['error'] as $col => $issues) @foreach($issues as $k => $description) {!! $description !!}. @endforeach @endforeach @elseif(is_string($val['error'])) {!! $val['error'] !!} @endif

  • @endif @endforeach
@endif
{!! Form::open([ 'url' => 'voucher/voucher_state_csv', 'id' => 'voucher_state_form', 'enctype' => 'multipart/form-data']) !!}
{!! Form::close() !!}