<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class SiteSettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $settings = [
            ['key' => 'site_name', 'value' => 'Dr. Rajan Shah'],
            ['key' => 'email', 'value' => 'contact@drrajanshah.com'],
            ['key' => 'phone', 'value' => '+977 1234567890'],
            ['key' => 'address', 'value' => 'Kathmandu, Nepal'],
            ['key' => 'facebook_url', 'value' => '#'],
            ['key' => 'instagram_url', 'value' => '#'],
            ['key' => 'twitter_url', 'value' => '#'],
        ];

        foreach ($settings as $setting) {
            \App\Models\SiteSetting::firstOrCreate(['key' => $setting['key']], $setting);
        }
    }
}
