<?php

namespace Database\Seeders;

use App\Models\Feature;
use App\Models\FeatureGroup;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class FeatureGroupSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $organisation = FeatureGroup::create([
            'key' => 'organisation',
            'label' => 'Organisation',
            'sort' => 1,
        ]);

        $productivity = FeatureGroup::create([
            'key' => 'productivity',
            'label' => 'Produktivität',
            'sort' => 2,
        ]);

        $performance = FeatureGroup::create([
            'key' => 'performance',
            'label' => 'Performance',
            'sort' => 3,
        ]);


        Feature::create([
                'feature_group_id' => $organisation->id,
                'key' => 'calendar',
                'label' => 'Kalender & Termine',
                'icon' => 'heroicon-o-calendar',
                'sort' => 1,
                'active' => true,
            ]);

        Feature::create([
                'feature_group_id' => $organisation->id,
                'key' => 'reminders',
                'label' => 'Erinnerungen',
                'icon' => 'heroicon-o-bell',
                'sort' => 2,
                'active' => true,
        ]);
        Feature::create([
                'feature_group_id' => $productivity->id,
                'key' => 'notes',
                'label' => 'Notizen & Einkaufsliste',
                'icon' => 'heroicon-o-document-text',
                'sort' => 1,
                'active' => true,
        ]);
        Feature::create([
                'feature_group_id' => $performance->id,
                'key' => 'speed',
                'label' => 'Schnellere Verarbeitung',
                'icon' => 'heroicon-o-bolt',
                'sort' => 1,
                'active' => true,
        ]);
    }
}
