<?php

namespace Database\Seeders;

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

class SkillSeeder extends Seeder
{
    public function run(): void
    {
        $skills = [
            // Frontend
            ['slug' => 'vuejs', 'name_key' => 'skill.vuejs.name', 'description_key' => 'skill.vuejs.description', 'icon' => 'vuejs', 'category' => 'Frontend', 'max_level' => 5, 'display_order' => 1],
            ['slug' => 'nuxt', 'name_key' => 'skill.nuxt.name', 'description_key' => 'skill.nuxt.description', 'icon' => 'nuxt', 'category' => 'Frontend', 'max_level' => 5, 'display_order' => 2],
            ['slug' => 'typescript', 'name_key' => 'skill.typescript.name', 'description_key' => 'skill.typescript.description', 'icon' => 'typescript', 'category' => 'Frontend', 'max_level' => 5, 'display_order' => 3],
            ['slug' => 'tailwindcss', 'name_key' => 'skill.tailwindcss.name', 'description_key' => 'skill.tailwindcss.description', 'icon' => 'tailwindcss', 'category' => 'Frontend', 'max_level' => 5, 'display_order' => 4],

            // Backend
            ['slug' => 'laravel', 'name_key' => 'skill.laravel.name', 'description_key' => 'skill.laravel.description', 'icon' => 'laravel', 'category' => 'Backend', 'max_level' => 5, 'display_order' => 5],
            ['slug' => 'php', 'name_key' => 'skill.php.name', 'description_key' => 'skill.php.description', 'icon' => 'php', 'category' => 'Backend', 'max_level' => 5, 'display_order' => 6],
            ['slug' => 'nodejs', 'name_key' => 'skill.nodejs.name', 'description_key' => 'skill.nodejs.description', 'icon' => 'nodejs', 'category' => 'Backend', 'max_level' => 5, 'display_order' => 7],

            // Tools
            ['slug' => 'git', 'name_key' => 'skill.git.name', 'description_key' => 'skill.git.description', 'icon' => 'git', 'category' => 'Tools', 'max_level' => 5, 'display_order' => 8],
            ['slug' => 'docker', 'name_key' => 'skill.docker.name', 'description_key' => 'skill.docker.description', 'icon' => 'docker', 'category' => 'Tools', 'max_level' => 5, 'display_order' => 9],

            // Soft skills
            ['slug' => 'communication', 'name_key' => 'skill.communication.name', 'description_key' => 'skill.communication.description', 'icon' => 'communication', 'category' => 'Soft skills', 'max_level' => 5, 'display_order' => 10],
        ];

        foreach ($skills as $skill) {
            Skill::create($skill);
        }
    }
}
