@extends('layouts.user') @section('title') Sell Off Marketplace @endsection @section('content') @php // Brand-color mapping for market logo backgrounds $brandColors = [ 'alibaba' => 'linear-gradient(150deg,#fff7ed 0%,#ffedd5 100%)', 'ebay' => 'linear-gradient(150deg,#f5f5f4 0%,#e7e5e4 100%)', 'amazon' => 'linear-gradient(150deg,#fff7ed 0%,#ffedd5 100%)', 'shopify' => 'linear-gradient(150deg,#ecfdf5 0%,#d1fae5 100%)', 'walmart' => 'linear-gradient(150deg,#dbeafe 0%,#eff6ff 100%)', 'slick deals' => 'linear-gradient(150deg,#e8f4fd 0%,#dbeafe 100%)', 'brickseek' => 'linear-gradient(150deg,#dbeafe 0%,#e0e7ff 100%)', 'hotukdeals' => 'linear-gradient(150deg,#fef9c3 0%,#fef3c7 100%)', 'latestdeals' => 'linear-gradient(150deg,#1e293b 0%,#0f172a 100%)', ]; $defaultBg = 'linear-gradient(150deg,#f5f5f4 0%,#e7e5e4 100%)'; $marketCategories = [ 'alibaba' => 'Wholesale', 'ebay' => 'Auction', 'amazon' => 'Global', 'shopify' => 'Direct', 'walmart' => 'Retail', 'slick deals' => 'Deals', 'brickseek' => 'Retail', 'hotukdeals' => 'UK Deals', 'latestdeals' => 'Bargains', ]; $isIctp = ($ownership->wallet_source ?? 'main') === 'ictp'; @endphp {{-- Hero header --}} Dashboard › Sell Off Marketplace Sell Off Marketplace Select a market to list your item for sale {{-- Ownership chip --}} {{ mb_strimwidth($ownership->product?->name, 0, 28, '...') }} Qty: {{ $ownership->quantity }} Value: ${{ number_format($ownership->value, 2) }} @if($isIctp) ICTP @else Main @endif {{-- 24hr evaluation notice --}} 24-hour evaluation window Once you place a sell order, your product enters a 24-hour evaluation period. The outcome depends on market activity and your pricing. You will be notified of the result. 1 Select Market 2 Set Price 3 24hr Evaluation {{-- Back link --}} Back To My Store {{-- Markets --}} Choose a Market @foreach($markets as $market) @php $nameKey = strtolower(trim($market->name)); $bg = $brandColors[$nameKey] ?? $defaultBg; $category = $marketCategories[$nameKey] ?? ''; @endphp {{ $market->name }} @if($market->sell_margin) Sell margin {{ number_format($market->sell_margin, 1) }}% @if($category) {{ $category }} @endif @elseif($category) {{ $category }} @endif @endforeach @endsection