@lang('Execute Migration')

@if (! $executed) @lang('Review the migration details below and click Execute when ready. This action can be rolled back.') @else @lang('Migration has been executed successfully. Review the results below.') @endif

@error('migration') {{ $message }} @enderror @error('rollback') {{ $message }} @enderror @if (! $executed)

@lang('Pre-execution Preview')

@foreach ($this->selectedPlans as $plan) @php $config = $planConfigs[$plan['id']] ?? null; @endphp @endforeach
@lang('Plan') @lang('Shared Credits') @lang('Active Users') @lang('Strategy')
{{ $plan['name'] }} {{ number_format($config['shared_credits_amount'] ?? 0, 2) }} {{ $plan['user_count'] }} {{ str_replace('_', ' ', $migrationStrategy) }}
@lang('Execute Migration') @lang('Executing...')
@else @lang('Migration completed successfully!')

@lang('Results')

@lang('Plans migrated') {{ $results['plans_migrated'] ?? 0 }}
@lang('Users migrated') {{ $results['users_migrated'] ?? 0 }}
@if (! empty($results['plan_details']))
@foreach ($results['plan_details'] as $detail) @endforeach
@lang('Plan') @lang('Shared Credits') @lang('Users Affected')
{{ $detail['name'] }} {{ number_format($detail['shared_credits'], 2) }} {{ $detail['users_affected'] }}
@endif @if (! empty($results['errors']))
    @foreach ($results['errors'] as $error)
  • {{ $error }}
  • @endforeach
@endif
@lang('Rollback Migration') @lang('Rolling back...')
@endif