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

Marketplace Integration

{{ $website->name }} - Sync products to popular marketplaces

Back to Marketplace
Total Products

{{ number_format($totalProducts) }}

Active Integrations

{{ $integrations->where('is_enabled', true)->count() }}

Total Synced

{{ number_format($integrations->sum('total_products_synced')) }}

@foreach($integrations as $integration)
@if($integration->marketplace === 'tiktok_shop') @elseif($integration->marketplace === 'lazada') @elseif($integration->marketplace === 'shopee') @endif
{{ $integration->marketplace_name }}
{{ ucfirst($integration->marketplace) }}
is_enabled ? 'checked' : '' }} onchange="toggleIntegration('{{ $integration->marketplace }}', this.checked)">
Status {{ ucfirst($integration->sync_status) }}
@if($integration->last_sync_message) {{ $integration->last_sync_message }} @endif
Configuration @if($integration->isConfigured()) Configured @else Not Configured @endif
@if($integration->last_sync_at)
Last Sync: {{ $integration->last_sync_at->format('M d, Y H:i') }}
@endif @if($integration->total_products_synced > 0)
Products Synced {{ number_format($integration->total_products_synced) }}
@endif
@endforeach
Getting Started with Marketplace Integration
Enable Integration

Toggle the switch to enable the marketplace integration you want to use.

Configure Credentials

Click "Configure" to set up your marketplace API credentials and sync settings.

Sync Products

Once configured, use "Sync Products" to push your products to the marketplace.

@push('scripts') @endpush @endsection