@extends('layouts.'.env('THEME')) @section('moreStyle') @endsection @section('content')

Review Voucher State Updates

Please review the proposed changes below before confirming. Only selected updates will be applied to the database.

{{ count($pending_updates) }}

Updates Ready

{{ $skipped_count }}

Rows Skipped

{{ $total_processed }}

Total Processed

0

Selected for Update
@if(count($pending_updates) > 0) {!! Form::open([ 'url' => 'voucher/voucher_state_csv_execute', 'id' => 'confirm_updates_form', 'method' => 'POST' ]) !!}
Cancel
Pending Updates
@foreach($pending_updates as $index => $update) @endforeach
Lead ID Customer Email Order # Match Method Changes Actions
{{ $update['lead_id'] }} {{ $update['customer_email'] }} {{ $update['order_number'] ?? 'N/A' }} {{ $update['match_method'] ?? 'N/A' }}
@foreach($update['changes'] as $field => $change)
{{ ucfirst(str_replace('_', ' ', $field)) }}: {{ $change['current'] ?? 'NULL' }} {{ $change['new'] }}
@endforeach
{!! Form::close() !!} @else

No Updates Required

No lead updates are needed based on the uploaded CSV file. All data is already up to date.

Return to Voucher Management
@endif @if($skipped_count > 0)
Skipped Rows ({{ $skipped_count }})
Detailed debugging information for troubleshooting CSV data issues
@endif
@endsection @section('script') @endsection