@extends('layouts.main') @section('content')
{{-- Page Title --}}

Product Sync Dashboard

{{-- Success/Flash Messages --}} @if (session('success'))
✅ {{ session('success') }}
@endif @if (session('error'))
❌ {{ session('error') }}
@endif {{-- Total Synced Products Box --}}

Total Synced Products

{{ $totalSynced }}

{{-- Table Heading --}}

Latest Synced Product Logs

{{-- Logs Table --}}
@forelse ($dashlogs as $log) @empty @endforelse
Product Shopify ID Status Error Created At
{{ $log->product->title ?? 'N/A' }}
SKU: {{ $log->product->sku ?? 'N/A' }}
{{ $log->shopify_id ?? '—' }} {{ ucfirst($log->status) }} {{ $log->error ?? '—' }} {{ $log->created_at->format('d M Y H:i') }}
No sync logs found.
@endsection