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

Configure {{ $integration->marketplace_name }}

{{ $website->name }} - Setup marketplace integration

Back to Marketplace
@csrf
Integration Settings
is_enabled ? 'checked' : '' }}>
Toggle this to activate/deactivate the integration
API Credentials
@foreach($integration->required_credentials as $field => $label)
@if($field === 'app_key' && $integration->marketplace === 'tiktok_shop')
Developer Setup: Get your App Key from TikTok Shop Partner Center
💡 You need a Developer Account to create an app and get API credentials
@elseif($field === 'app_secret' && $integration->marketplace === 'tiktok_shop')
From Partner Center: App Secret is generated with your App Key
💡 Keep this secret secure - never expose it publicly
@elseif($field === 'access_token' && $integration->marketplace === 'tiktok_shop')
Merchant Authorization: Generated when seller authorizes your app
🔄 Merchant goes to Seller Center → Third-party Apps → Authorize
Leave empty initially - will be populated after authorization
@elseif($field === 'app_key' && $integration->marketplace === 'lazada')
Get your App Key from Lazada Open Platform
@elseif($field === 'partner_id' && $integration->marketplace === 'shopee')
Get your Partner ID from Shopee Open Platform
@endif
@endforeach
Sync Settings
Automatically sync products at specified intervals
Adjust prices when syncing to marketplace
Integration Status
@if($integration->marketplace === 'tiktok_shop') @elseif($integration->marketplace === 'lazada') @elseif($integration->marketplace === 'shopee') @endif
{{ $integration->marketplace_name }}
Status: {{ ucfirst($integration->sync_status) }}
Configuration: @if($integration->isConfigured()) Configured @else Incomplete @endif
@if($integration->last_sync_at)
Last Sync: {{ $integration->last_sync_at->format('M d, Y') }}
@endif @if($integration->total_products_synced > 0)
Products Synced: {{ number_format($integration->total_products_synced) }}
@endif
Documentation
@if($integration->marketplace === 'tiktok_shop')

To get started with TikTok Shop:

@elseif($integration->marketplace === 'lazada')

To get started with Lazada:

@elseif($integration->marketplace === 'shopee')

To get started with Shopee:

@endif

Need Help?

Contact our support team for assistance with marketplace integrations.

Cancel
@if($integration->isConfigured()) @endif
@if($integration->isConfigured())
Products to Sync
{{ $products->total() }} total products
@if($products->count() > 0)
@foreach($products as $product) @endforeach
Product Price Stock Status
{{ $product->name }} RM {{ number_format($product->price, 2) }} {{ $product->stock_quantity ?? 'N/A' }} {{ $product->is_active ? 'Active' : 'Inactive' }}
{{ $products->links() }} @else
No products found

Add some products to your website first.

@endif
@endif
@push('scripts') @endpush @endsection