<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\Setting;

class HelpSettingsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $settings = [
            // Guides Content
            [
                'key' => 'help_buyers_guide',
                'value' => '<div class="buyers-guide">
    <h4><i class="bi bi-cart4 text-primary"></i> Getting Started as a Buyer</h4>
    <p>Welcome to The Mini Port! Follow these steps to source products efficiently:</p>
    <ul>
        <li><strong>Browse & Search:</strong> Use our advanced search filters to find products by category, price range, or supplier location.</li>
        <li><strong>Post RFQs:</strong> Can\'t find what you need? Post a Request for Quotation (RFQ) to get custom offers from multiple verified suppliers.</li>
        <li><strong>Compare Quotes:</strong> Review quotes in your dashboard, comparing price, delivery time, and supplier ratings.</li>
        <li><strong>Direct Communication:</strong> Chat directly with sellers to negotiate terms or ask specific product questions.</li>
    </ul>
    <div class="alert alert-info border-0 bg-light mt-3">
        <i class="bi bi-info-circle-fill me-2"></i> <strong>Tip:</strong> Look for the <span class="badge bg-success">Verified</span> badge on seller profiles for added trust.
    </div>
</div>',
                'group' => 'help',
                'type' => 'textarea',
                'label' => 'Buyers Guide Content',
            ],
            [
                'key' => 'help_sellers_guide',
                'value' => '<div class="sellers-guide">
    <h4><i class="bi bi-shop text-success"></i> Grow Your Business</h4>
    <p>Maximize your visibility and sales on The Mini Port:</p>
    <ol>
        <li><strong>Create Your Store:</strong> Complete your profile with a logo, description, and contact details to build brand identity.</li>
        <li><strong>List Products:</strong> Add high-quality images and detailed descriptions. Ensure you specify accurate MOQs and pricing.</li>
        <li><strong>Get Verified (KYC):</strong> Submit your business documents to earn the "Verified Seller" badge and boost buyer confidence.</li>
        <li><strong>Respond Fast:</strong> Reply to inquiries and RFQs promptly to improve your response rate score.</li>
    </ol>
</div>',
                'group' => 'help',
                'type' => 'textarea',
                'label' => 'Sellers Guide Content',
            ],
            [
                'key' => 'help_plans_guide',
                'value' => '<div class="plans-guide">
    <h4><i class="bi bi-credit-card text-warning"></i> Choose Your Growth Path</h4>
    <p>We offer flexible plans tailored to your business stage:</p>
    <table class="table table-bordered table-sm mt-3">
        <thead class="table-light">
            <tr>
                <th>Feature</th>
                <th>Free Plan</th>
                <th>Premium Plan</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>Product Listings</td>
                <td>Up to 3</td>
                <td>10 to 100</td>
            </tr>
            <tr>
                <td>Contact Visibility</td>
                <td>Hidden</td>
                <td>Visible to All</td>
            </tr>
            <tr>
                <td>Search Ranking</td>
                <td>Standard</td>
                <td>Priority</td>
            </tr>
            <tr>
                <td>Inquiry Access</td>
                <td>Limited</td>
                <td>Full Access</td>
            </tr>
        </tbody>
    </table>
</div>',
                'group' => 'help',
                'type' => 'textarea',
                'label' => 'Plans Guide Content',
            ],

            // Platform Notes
            [
                'key' => 'help_notes_free',
                'value' => '<p class="mb-2"><strong>Free Plan Limitations:</strong></p>
<ul class="mb-0 ps-3">
    <li>Maximum <strong>3 active product listings</strong>.</li>
    <li>Upload limit of <strong>4 images</strong> per product.</li>
    <li><strong>Hidden Contact Details:</strong> Buyers cannot see your phone/email directly; they must send an inquiry.</li>
    <li>Standard support via email only.</li>
</ul>
<p class="mt-2 text-muted small">Upgrade anytime to remove these limits!</p>',
                'group' => 'help',
                'type' => 'textarea',
                'label' => 'Free Sellers Note',
            ],
            [
                'key' => 'help_notes_moq',
                'value' => '<p class="mb-2"><strong>Minimum Order Quantity (MOQ):</strong></p>
<ul class="mb-0 ps-3">
    <li><strong>Platform Range:</strong> Sellers can set MOQs between <strong>10 and 150 units</strong> unless otherwise negotiated.</li>
    <li><strong>Bulk Discounts:</strong> Many sellers offer tiered pricing for larger orders.</li>
    <li><strong>Filter:</strong> Use the "Low MOQ" filter to find suppliers willing to accept smaller orders.</li>
</ul>',
                'group' => 'help',
                'type' => 'textarea',
                'label' => 'MOQ Note',
            ],
            [
                'key' => 'help_notes_kyc',
                'value' => '<p class="mb-2"><strong>KYC Verification Process:</strong></p>
<ul class="mb-0 ps-3">
    <li><strong>Why Verify?</strong> Earn the <span class="badge bg-success">Verified</span> badge, unlock higher transaction limits, and gain 3x more visibility.</li>
    <li><strong>Documents Needed:</strong> GST Certificate (for India), Business Registration, or PAN Card.</li>
    <li><strong>Approval Time:</strong> Usually processed within 24-48 business hours.</li>
</ul>',
                'group' => 'help',
                'type' => 'textarea',
                'label' => 'KYC Note',
            ],
            [
                'key' => 'help_notes_payment',
                'value' => '<p class="mb-2"><strong>Secure Payments:</strong></p>
<ul class="mb-0 ps-3">
    <li><strong>Gateways:</strong> We securely process payments via <strong>Razorpay</strong> (INR) and <strong>PayPal</strong> (International).</li>
    <li><strong>Taxes:</strong> All INR transactions are subject to <strong>18% GST</strong>. Invoices are automatically generated.</li>
    <li><strong>Refunds:</strong> Subscription fees are non-refundable after the 7-day trial period.</li>
</ul>',
                'group' => 'help',
                'type' => 'textarea',
                'label' => 'Payment Policy Note',
            ]
        ];

        foreach ($settings as $setting) {
            Setting::updateOrCreate(
                ['key' => $setting['key']],
                $setting
            );
        }
    }
}
