<?php

namespace Database\Seeders;

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

class ParentCategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {

        $parent_categories = [
            ['name' => 'AI Training', 'emoji' => '🤖', 'is_top' => false],
            ['name' => 'Art', 'emoji' => '🎨', 'is_top' => true],
            ['name' => 'Audio', 'emoji' => '🔊', 'is_top' => true],
            ['name' => 'Avatars', 'emoji' => '👤', 'is_top' => false],
            ['name' => 'Business', 'emoji' => '💼', 'is_top' => true],
            ['name' => 'Chatbots', 'emoji' => '💬', 'is_top' => true],
            ['name' => 'Coaching', 'emoji' => '🏋️‍♂️', 'is_top' => false],
            ['name' => 'Data', 'emoji' => '📊', 'is_top' => false],
            ['name' => 'Dating', 'emoji' => '💞', 'is_top' => true],
            ['name' => 'Design', 'emoji' => '🖌️', 'is_top' => true],
            ['name' => 'Education', 'emoji' => '📚', 'is_top' => false],
            ['name' => 'Emailing', 'emoji' => '📧', 'is_top' => false],
            ['name' => 'Finance', 'emoji' => '💰', 'is_top' => false],
            ['name' => 'Gaming', 'emoji' => '🎮', 'is_top' => false],
            ['name' => 'GPTs', 'emoji' => '🤖', 'is_top' => true],
            ['name' => 'Legal', 'emoji' => '⚖️', 'is_top' => false],
            ['name' => 'Marketing', 'emoji' => '📈', 'is_top' => true],
            ['name' => 'Music', 'emoji' => '🎵', 'is_top' => false],
            ['name' => 'Podcasting', 'emoji' => '🎙️', 'is_top' => false],
            ['name' => 'Productivity', 'emoji' => '⏱️', 'is_top' => false],
            ['name' => 'Prompting', 'emoji' => '💡', 'is_top' => true],
            ['name' => 'Research', 'emoji' => '🔍', 'is_top' => false],
            ['name' => 'SEO', 'emoji' => '🌐', 'is_top' => false],
            ['name' => 'Social', 'emoji' => '👥', 'is_top' => false],
            ['name' => 'Speech', 'emoji' => '🗣️', 'is_top' => true],
            ['name' => 'Translation', 'emoji' => '🌎', 'is_top' => false],
            ['name' => 'Video', 'emoji' => '📹', 'is_top' => true],
            ['name' => 'Writing', 'emoji' => '✍️', 'is_top' => true],
            ['name' => 'Content Generation', 'emoji' => '📝', 'is_top' => true],
            ['name' => 'Support', 'emoji' => '🛠️', 'is_top' => false],
            ['name' => 'Health', 'emoji' => '🍏', 'is_top' => false],
            ['name' => 'Networking', 'emoji' => '🤝', 'is_top' => false],
            ['name' => 'Personal Assistance', 'emoji' => '📱', 'is_top' => false],
            ['name' => 'Planning', 'emoji' => '📅', 'is_top' => false],
            ['name' => 'Project Management', 'emoji' => '📈', 'is_top' => false],
            ['name' => 'Reporting', 'emoji' => '📑', 'is_top' => false],
            ['name' => 'Sales', 'emoji' => '🏷️', 'is_top' => false],
            ['name' => 'Security', 'emoji' => '🔒', 'is_top' => false],
            ['name' => 'Shopping', 'emoji' => '🛍️', 'is_top' => false],
            ['name' => 'Simulation', 'emoji' => '🕹️', 'is_top' => false],
            ['name' => 'Task', 'emoji' => '✅', 'is_top' => true],
            ['name' => 'Dev', 'emoji' => '👨‍💻', 'is_top' => true],
            ['name' => 'Testing', 'emoji' => '🔬', 'is_top' => false],
            ['name' => 'Training', 'emoji' => '🏋️', 'is_top' => false],
            ['name' => 'UI/UX', 'emoji' => '🖌️', 'is_top' => false],
            ['name' => 'Workflow', 'emoji' => '🔄', 'is_top' => false],
        ];

        foreach ($parent_categories as $item) {
            $node = Category::create([
                'name' => $item['name'],
                'slug' => str_slug($item['name']),
                'emoji' => $item['emoji'],
                'is_top' => $item['is_top'],
            ]);
        }
    }
}
