<?php

namespace Database\Seeders;

use App\Models\Key;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class KeysSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
         
        $keys = [
            [
                'key' => 'home_description',
                'value' => 'Home page description',
                'type' => 'home',
            ],
            // [
            //     'key' => 'home_main_image',
            //     'value' => '/',
            //     'type' => 'home',
            // ],
            [
                'key' => 'portfolio',
                'value' => '/',
                'type' => 'home',
            ],
            [
                'key' => 'about_us_title',
                'value' => 'About Us',
                'type' => 'about_us',
            ],
            [
                'key' => 'about_us_description',
                'value' => 'about_us_description',
                'type' => 'about_us',
            ],
            [
                'key' => 'contact_us_title',
                'value' => 'Contact Us',
                'type' => 'contact_us',
            ],
            [
                'key' => 'links',
                'value' => "links",
                'type' => 'setting',
            ],
            [
                'key' => 'links',
                'value' => "links",
                'type' => 'setting',
            ],
            [
                'key' => 'facebook',
                'value' => "facebook",
                'type' => 'setting',
            ],
            [
                'key' => 'linkedin',
                'value' => "linkedin",
                'type' => 'setting',
            ],
        ];

        foreach ($keys as $key) {
            Key::create($key);
        }

    }
}
