<?php

namespace Database\Seeders;

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

class CategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            ['name' => 'Food', 'icon' => '🍔', 'color' => '#EF4444'],
            ['name' => 'Electricity', 'icon' => '💡', 'color' => '#F59E0B'],
            ['name' => 'Water', 'icon' => '💧', 'color' => '#3B82F6'],
            ['name' => 'Gas', 'icon' => '🔥', 'color' => '#F97316'],
            ['name' => 'Education', 'icon' => '📚', 'color' => '#8B5CF6'],
            ['name' => 'Medical', 'icon' => '🏥', 'color' => '#10B981'],
            ['name' => 'Entertainment', 'icon' => '🎬', 'color' => '#EC4899'],
            ['name' => 'Transport', 'icon' => '🚗', 'color' => '#14B8A6'],
            ['name' => 'Installments', 'icon' => '💳', 'color' => '#6366F1'],
            ['name' => 'Shopping', 'icon' => '🛒', 'color' => '#F43F5E'],
            ['name' => 'Grocery', 'icon' => '🛍️', 'color' => '#84CC16'],
            ['name' => 'Other', 'icon' => '📦', 'color' => '#6B7280'],
        ];

        foreach ($categories as $cat) {
            Category::create(array_merge($cat, ['user_id' => null]));
        }
    }
}
