@if(!$syncing && !$completed) {{-- Initial state - Show sync button --}} @endif @if($syncing) {{-- Syncing in progress --}}

Syncing Sellers...

{{-- Status Message --}}

{{ $currentStatus }}

{{-- Progress Bar --}} @if($totalAffiliates > 0)
Progress: {{ $processed }} / {{ $totalAffiliates }} {{ $totalAffiliates > 0 ? round(($processed / $totalAffiliates) * 100) : 0 }}%
{{-- Statistics --}}
{{ $created }}
Created
{{ $updated }}
Updated
{{ $skipped }}
Skipped
{{ $errors }}
Errors
@endif

Please wait, do not refresh or close this page...

@endif @if($completed) {{-- Sync completed --}}

Sync Completed!

{{ $currentStatus }}

{{-- Final Statistics --}}
{{ $created }}
Created
{{ $updated }}
Updated
{{ $skipped }}
Skipped
{{ $errors }}
Errors
@endif @if($errorMessage) {{-- Error state --}}

{{ $errorMessage }}

@endif {{-- Auto-refresh wire:poll every 1 second during sync --}} @if($syncing)
@endif