<?php

namespace Database\Seeders;

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

class VipPackageSeeder extends Seeder
{
    public function run(): void
    {
        $packages = [
            [
                'title'         => 'Bet of the Day',
                'price'         => '$50',
                'subtitle'      => 'Exclusive membership',
                'duration_days' => 28,
                'layout_name'   => 'grid',
                'start_color'   => '#F59E0B',
                'end_color'     => '#B45309',
                'button_text'   => 'Unlock VIP Access',
                'is_locked'     => true,
            ],
            [
                'title'         => 'Super Single',
                'price'         => '$60',
                'subtitle'      => 'Exclusive membership',
                'duration_days' => 28,
                'layout_name'   => 'grid',
                'start_color'   => '#2563EB',
                'end_color'     => '#1E3A8A',
                'button_text'   => 'Unlock VIP Access',
                'is_locked'     => true,
            ],
            [
                'title'         => 'Daily Odd 10',
                'price'         => '$50',
                'subtitle'      => '',
                'duration_days' => 28,
                'layout_name'   => 'row',
                'start_color'   => '#1F2937',
                'end_color'     => '#111827',
                'button_text'   => 'Unlock VIP Access',
                'is_locked'     => true,
            ],
            [
                'title'         => '1.4 Rollover',
                'price'         => null,
                'subtitle'      => 'Disciplined strategy',
                'duration_days' => 28,
                'layout_name'   => 'square',
                'start_color'   => '#1F2937',
                'end_color'     => '#111827',
                'button_text'   => 'Unlock VIP Access',
                'is_locked'     => true,
            ],
            [
                'title'         => 'Half Time Draw',
                'price'         => '$80',
                'subtitle'      => 'Highest tier placement, HT Draw Expert Prediction',
                'duration_days' => 28,
                'layout_name'   => 'tall',
                'start_color'   => '#F97316',
                'end_color'     => '#C2410C',
                'button_text'   => 'Unlock VIP Access',
                'is_locked'     => true,
            ],
            [
                'title'         => 'Free',
                'price'         => '$0',
                'subtitle'      => 'Daily free football predictions',
                'duration_days' => 28,
                'layout_name'   => 'free',
                'start_color'   => '#4ADE80',
                'end_color'     => '#10B981',
                'button_text'   => 'Access Free Tips',
                'is_locked'     => false,
            ],
        ];

        foreach ($packages as $pkg) {
            VipPackage::updateOrCreate(['title' => $pkg['title']], $pkg);
        }
    }
}
