<?php $__env->startSection('title', $title); ?>
<?php $__env->startSection('content'); ?>

<div class="mkt-header">
    <div><h2 class="mkt-title">Seller Dashboard</h2><p class="mkt-sub">Manage your products, accounts, and earnings</p></div>
    <a href="<?php echo e(route('user.marketplace.seller.products.create')); ?>" class="btn btn-primary"><i class="ti ti-plus"></i> Add Product</a>
</div>

<div class="seller-stats">
    <div class="seller-stat-card" style="background:linear-gradient(135deg,#6366f1,#4f46e5)">
        <div class="seller-stat-icon"><i class="ti ti-wallet"></i></div>
        <div class="seller-stat-body">
            <div class="seller-stat-value"><?php echo e(optional(App\Models\Setting::first())->website_currency ?? ''); ?><?php echo e(number_format($user->seller_balance, 2)); ?></div>
            <div class="seller-stat-label">Available Balance</div>
        </div>
    </div>
    <div class="seller-stat-card" style="background:linear-gradient(135deg,#10b981,#059669)">
        <div class="seller-stat-icon"><i class="ti ti-cash"></i></div>
        <div class="seller-stat-body">
            <div class="seller-stat-value"><?php echo e(optional(App\Models\Setting::first())->website_currency ?? ''); ?><?php echo e(number_format($totalEarned, 2)); ?></div>
            <div class="seller-stat-label">Total Earned</div>
        </div>
    </div>
    <div class="seller-stat-card" style="background:linear-gradient(135deg,#f59e0b,#d97706)">
        <div class="seller-stat-icon"><i class="ti ti-package"></i></div>
        <div class="seller-stat-body">
            <div class="seller-stat-value"><?php echo e($totalProducts); ?></div>
            <div class="seller-stat-label">Total Products</div>
        </div>
    </div>
    <div class="seller-stat-card" style="background:linear-gradient(135deg,#ec4899,#db2777)">
        <div class="seller-stat-icon"><i class="ti ti-check"></i></div>
        <div class="seller-stat-body">
            <div class="seller-stat-value"><?php echo e($totalSold); ?></div>
            <div class="seller-stat-label">Accounts Sold</div>
        </div>
    </div>
</div>

<div class="seller-quick-links">
    <a href="<?php echo e(route('user.marketplace.seller.products')); ?>" class="seller-link-card">
        <i class="ti ti-package"></i><span>My Products</span>
    </a>
    <a href="<?php echo e(route('user.marketplace.seller.withdrawals')); ?>" class="seller-link-card">
        <i class="ti ti-cash"></i><span>Withdrawals</span>
    </a>
    <a href="<?php echo e(route('user.marketplace.index')); ?>" class="seller-link-card">
        <i class="ti ti-world"></i><span>View Marketplace</span>
    </a>
    <a href="<?php echo e(route('user.marketplace.my-purchases')); ?>" class="seller-link-card">
        <i class="ti ti-shopping-bag"></i><span>My Purchases</span>
    </a>
</div>

<?php $__env->stopSection(); ?>
<?php $__env->startPush('style'); ?>
<style>
.mkt-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:24px;}
.mkt-title{font-size:22px;font-weight:700;color:var(--text-primary);margin:0 0 4px;}
.mkt-sub{font-size:14px;color:var(--text-secondary);margin:0;}
.seller-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:24px;}
.seller-stat-card{border-radius:14px;padding:20px;display:flex;align-items:center;gap:14px;color:#fff;position:relative;overflow:hidden;}
.seller-stat-icon{width:44px;height:44px;border-radius:10px;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0;}
.seller-stat-value{font-size:20px;font-weight:800;}
.seller-stat-label{font-size:12px;opacity:.85;margin-top:2px;}
.seller-quick-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;}
.seller-link-card{background:var(--bg-primary);border:var(--border);border-radius:14px;padding:24px 16px;display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:var(--text-primary);font-size:14px;font-weight:600;transition:all .2s;}
.seller-link-card i{font-size:26px;color:var(--primary-color);}
.seller-link-card:hover{border-color:var(--primary-color);transform:translateY(-3px);}
</style>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('frontend.layout.dash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\jjd\socialnum\sstack\mine\core\resources\views/frontend/marketplace/seller/dashboard.blade.php ENDPATH**/ ?>