<?php

namespace Database\Seeders;

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

class SignatureSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $signatures = [
            ['name' => 'John Smith - CEO', 'type' => 'text', 'content' => 'John Smith', 'notes' => 'Chief Executive Officer signature', 'is_default' => true],
            ['name' => 'Sarah Johnson - CFO', 'type' => 'text', 'content' => 'Sarah Johnson', 'notes' => 'Chief Financial Officer signature', 'is_default' => false],
            ['name' => 'Michael Chen - Sales Director', 'type' => 'text', 'content' => 'Michael Chen', 'notes' => 'Sales department authorization', 'is_default' => false],
            ['name' => 'Emily Davis - Finance Manager', 'type' => 'text', 'content' => 'Emily Davis', 'notes' => 'Finance department approvals', 'is_default' => false],
            ['name' => 'Robert Wilson - Operations', 'type' => 'text', 'content' => 'Robert Wilson', 'notes' => 'Operations team leader', 'is_default' => false],
            ['name' => 'Lisa Anderson - HR Director', 'type' => 'text', 'content' => 'Lisa Anderson', 'notes' => 'Human resources authorization', 'is_default' => false],
            ['name' => 'David Martinez - IT Director', 'type' => 'text', 'content' => 'David Martinez', 'notes' => 'IT department head', 'is_default' => false],
            ['name' => 'Jennifer Brown - Legal', 'type' => 'text', 'content' => 'Jennifer Brown, Esq.', 'notes' => 'Legal department authorization', 'is_default' => false],
            ['name' => 'James Taylor - Procurement', 'type' => 'text', 'content' => 'James Taylor', 'notes' => 'Procurement approvals', 'is_default' => false],
            ['name' => 'Amanda White - Customer Success', 'type' => 'text', 'content' => 'Amanda White', 'notes' => 'Customer success team', 'is_default' => false],
            ['name' => 'Christopher Lee - CTO', 'type' => 'text', 'content' => 'Christopher Lee', 'notes' => 'Technical authorization', 'is_default' => false],
            ['name' => 'Michelle Garcia - Marketing', 'type' => 'text', 'content' => 'Michelle Garcia', 'notes' => 'Marketing department head', 'is_default' => false],
            ['name' => 'Daniel Robinson - Warehouse', 'type' => 'text', 'content' => 'Daniel Robinson', 'notes' => 'Warehouse manager', 'is_default' => false],
            ['name' => 'Ashley Thompson - Quality', 'type' => 'text', 'content' => 'Ashley Thompson', 'notes' => 'Quality assurance approvals', 'is_default' => false],
            ['name' => 'Kevin Harris - Logistics', 'type' => 'text', 'content' => 'Kevin Harris', 'notes' => 'Logistics coordinator', 'is_default' => false],
            ['name' => 'Nicole Clark - Accounting', 'type' => 'text', 'content' => 'Nicole Clark, CPA', 'notes' => 'Accounting department', 'is_default' => false],
            ['name' => 'Brandon Lewis - Support', 'type' => 'text', 'content' => 'Brandon Lewis', 'notes' => 'Support team lead', 'is_default' => false],
            ['name' => 'Stephanie Walker - Admin', 'type' => 'text', 'content' => 'Stephanie Walker', 'notes' => 'Administrative authorization', 'is_default' => false],
            ['name' => 'Ryan Hall - Regional Manager', 'type' => 'text', 'content' => 'Ryan Hall', 'notes' => 'Regional operations', 'is_default' => false],
            ['name' => 'Megan Young - Executive', 'type' => 'text', 'content' => 'Megan Young', 'notes' => 'Executive assistant', 'is_default' => false],
        ];

        foreach ($signatures as $signature) {
            Signature::updateOrCreate(
                ['name' => $signature['name']],
                $signature
            );
        }
    }
}
