@extends('layouts.main') @section('content')

Sync Results

{{-- Display flash message if exists --}} @if(session('error')) @endif @if(session('sync_results')) @php $results = session('sync_results.results', []); $summary = session('sync_results.summary', [ 'total' => 0, 'success' => 0, 'skipped' => 0, 'errors' => 0 ]); @endphp
{{-- ... existing summary cards ... --}}
@foreach($results as $result) @endforeach
Product ID Status Shopify ID Message
{{ $result['product_id'] ?? 'N/A' }} {{ $result['status'] }} {{ $result['shopify_id'] ?? 'N/A' }} {{ $result['message'] }} @if(!empty($result['error_details']))
@endif
Back to Products @if($summary['errors'] > 0)
@csrf
@endif
@else

No sync results found. Please sync some products first.

Go to Products
@endif
@endsection @push('scripts') @endpush