<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class SettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $settings = [
            ['key' => 'system_name', 'value' => 'Ventas POS'],
            ['key' => 'igv_percentage', 'value' => '18'],
            ['key' => 'receipt_model', 'value' => 'ticket'],
            ['key' => 'company_logo', 'value' => 'default.png'],
        ];

        foreach ($settings as $setting) {
            \App\Models\Setting::firstOrCreate(['key' => $setting['key']], ['value' => $setting['value']]);
        }
    }
}
