<?php
namespace Database\Seeders;

use Illuminate\Database\Seeder;
use App\Models\BroadcastTemplate;
use App\Enums\TextAdColors;

class BroadcastTemplateSeeder extends Seeder
{
    public function run(): void
    {
        $txs = [
            [
                'content' => '親愛的 **name**，祝你生日快樂！',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**room_name** 歡迎您蒞臨本店，祝您有美好的一天！',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**name** 拾獲您的證件，請至櫃台領取',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**name** 請移動你的愛車，謝謝!!',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**name** 祝你生日快樂!!',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**name** 櫃台有您訪客!!',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**room_name** 警察臨檢不便之處敬請原諒!!',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**name** 您的愛車被拖吊了!!',
                'color' => TextAdColors::White,
            ],
            [
                'content' => '**name** 請移動您的愛車，謝謝',
                'color' => TextAdColors::White,
            ],
        ];
        foreach ($txs as $tx) {
            BroadcastTemplate::create([
                'content' => $tx['content'],
                'color' => $tx['color'],
                'is_active' => true,
            ]);
        }
    }
}
