<?php

namespace Database\Seeders;

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

class SettingsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $settings = [
            'app.name' => 'ChargePanda',
            'app.description' => 'Your trusted marketplace for premium digital products, software solutions, and online courses. Empowering creators and businesses worldwide.',
            'mail.from.address' => config('mail.from.address'),
            'currency' => 'USD',
            'currency_position' => 'left',
            'services.per_page' => '8',
            'email_verification' => 'off',
            'make_site_private' => 'off',
            'recaptcha.enabled' => 'off',
            'paypal.enabled' => 'no',
            'stripe.enabled' => 'no',
            'offline_payments.enabled' => 'yes',
            'offline_payments.order_status' => getConstant('ORDER_STATUS_COMPLETED'),
            'offline_payments.title' => 'Check Payments',
            'offline_payments.description' => 'Check Payments',
            'social_login.enabled' => 'no',
            'services.facebook.enabled' => 'no',
            'services.twitter.enabled' => 'no',
            'settings.taxes.enabled' => 'no',
            'cart.tax' => 0.00,
            'contact.address' => '123 Digital Street, Tech City, TX 12345',
            'contact.phone' => '+1 (123) 456-7890',
            'contact.email' => 'contact@yourcompany.com',
            'contact.working_hours' => 'Mon - Fri: 9:00 AM - 6:00 PM',
            'social.facebook' => 'https://www.facebook.com/yourcompany',
            'social.twitter' => 'https://www.twitter.com/yourcompany',
            'social.instagram' => 'https://www.instagram.com/yourcompany',
            'social.linkedin' => 'https://www.linkedin.com/company/yourcompany',
            'site_theme' => 'tailwind',
        ];

        Setting::updateSettings($settings);
    }
}
