<?php

namespace Database\Seeders;

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

class SiteSettingSeeder extends Seeder
{
    public function run(): void
    {
        $defaults = [
            'site_name' => 'Home Heaven Decors PK',
            'site_tagline' => 'Pakistan first! Elegant & beautiful home & office decors at reasonable prices.',
            'contact_email' => 'hello@homeheavendecors.pk',
            'contact_phone' => '+92 300 1234567',
            'address' => 'Lahore, Pakistan',
            'facebook_url' => 'https://www.facebook.com/profile.php?id=61576311315866',
            'instagram_url' => 'https://www.instagram.com/homeheavendecorspk',
            'shipping_fee' => '250',
            'free_shipping_threshold' => '5000',
        ];

        foreach ($defaults as $key => $value) {
            SiteSetting::firstOrCreate(['key' => $key], ['value' => $value]);
        }
    }
}
