<?php

namespace Database\Seeders;

use App\Models\Claim\Status;
use Illuminate\Database\Seeder;

class WillsStatusSeeder extends Seeder {
    public function run(): void {
        $statuses = [
            ['name' => 'Paused',                                   'colour' => '#6c757d'],
            ['name' => 'Awaiting Aiker Documentation',             'colour' => '#fd7e14'],
            ['name' => 'Awaiting payment',                         'colour' => '#ffc107'],
            ['name' => 'Paid and drafting underway',               'colour' => '#0dcaf0'],
            ['name' => 'Awaiting client approval of drafts',       'colour' => '#0d6efd'],
            ['name' => 'Awaiting signing',                         'colour' => '#6610f2'],
            ['name' => 'Signed but not sent for registration',     'colour' => '#d63384'],
            ['name' => 'Sent for registration',                    'colour' => '#20c997'],
            ['name' => 'Registered',                               'colour' => '#198754'],
        ];

        foreach ($statuses as $index => $status) {
            Status::firstOrCreate(
                ['display_name' => $status['name'], 'type' => 'wills'],
                [
                    'description' => $status['name'],
                    'colour'      => $status['colour'],
                    'sort_order'  => $index,
                    'type'        => 'wills',
                ]
            );
        }
    }
}
