<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class ItemCategorySeeder extends Seeder
{
    public function run(): void
    {
        $categories = [
            ['name' => 'Gas',        'icon' => 'bi-fire'],
            ['name' => 'Oil',        'icon' => 'bi-droplet-fill'],
            ['name' => 'Milk',       'icon' => 'bi-cup-straw'],
            ['name' => 'Water',      'icon' => 'bi-water'],
            ['name' => 'Food',       'icon' => 'bi-egg-fried'],
            ['name' => 'Beverage',   'icon' => 'bi-cup-hot'],
            ['name' => 'Cleaning',   'icon' => 'bi-brush'],
            ['name' => 'Stationery', 'icon' => 'bi-pencil'],
            ['name' => 'Equipment',  'icon' => 'bi-tools'],
            ['name' => 'General',    'icon' => 'bi-box-seam'],
        ];

        foreach ($categories as $cat) {
            DB::table('item_categories')->insertOrIgnore([
                'name'       => $cat['name'],
                'icon'       => $cat['icon'],
                'created_at' => now(),
                'updated_at' => now(),
            ]);
        }
    }
}
