<?php

namespace Database\Seeders;

use App\Models\Settings;
use Illuminate\Database\Seeder;
use App\Models\Clinic;

class SettingsSeeder extends Seeder
{
    public function run(): void
    {
        $clinic = Clinic::first();

        Settings::insert([
            [
                'clinic_id' => $clinic->id,
                'key'       => 'invoice_footer_text',
                'value'     => 'Thank you for visiting Dental Care Clinic.',
            ],
            [
                'clinic_id' => $clinic->id,
                'key'       => 'tax_percent',
                'value'     => '0',
            ],
            [
                'clinic_id' => $clinic->id,
                'key'       => 'whatsapp_number',
                'value'     => '+201111122233',
            ],
        ]);
    }
}
