<?php

namespace Database\Seeders;

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

class ExpenseCategorySeeder extends Seeder
{
    public function run()
    {
        $categories = [
            ['name' => 'Rent', 'slug' => 'rent'],
            ['name' => 'Utilities', 'slug' => 'utilities'],
            ['name' => 'Salaries', 'slug' => 'salaries'],
            ['name' => 'Marketing', 'slug' => 'marketing'],
            ['name' => 'Maintenance', 'slug' => 'maintenance'],
            ['name' => 'Transportation', 'slug' => 'transportation'],
            ['name' => 'Office Supplies', 'slug' => 'office-supplies'],
            ['name' => 'Other', 'slug' => 'other'],
        ];
        
        foreach ($categories as $category) {
            ExpenseCategory::create($category);
        }
    }
}