<?php

namespace Database\Seeders;

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

class VideoSeeder extends Seeder
{
    public function run(): void
    {
        Video::truncate();

        $videos = [
            [
                'title'       => 'LED Channel Letter Installation',
                'subtitle'    => 'Time-lapse of a full fascia sign install',
                'youtube_url' => 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
                'duration'    => '2:34',
                'category'    => 'Installation',
                'is_featured' => true,
                'is_active'   => true,
                'sort_order'  => 1,
            ],
            [
                'title'       => 'Neon Sign Production Process',
                'subtitle'    => 'From design file to finished glow',
                'youtube_url' => 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
                'duration'    => '3:12',
                'category'    => 'Production',
                'is_featured' => false,
                'is_active'   => true,
                'sort_order'  => 2,
            ],
            [
                'title'       => 'Large Format Print in Action',
                'subtitle'    => 'Our UV flatbed printer at full speed',
                'youtube_url' => 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
                'duration'    => '1:48',
                'category'    => 'Production',
                'is_featured' => false,
                'is_active'   => true,
                'sort_order'  => 3,
            ],
        ];

        foreach ($videos as $data) {
            Video::create($data);
        }
    }
}
