<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\CupSize;

class CupSizeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $cupSizes = [
            [
                'name' => 'Single Scoop Cup',
                'code' => 'SINGLE',
                'scoop_count' => 1,
                'weight_grams' => 70.00,
                'price' => 150.00, // Rs 150
                'description' => 'Single scoop cup - 70 grams',
                'is_active' => true,
                'display_order' => 1,
            ],
            [
                'name' => 'Double Scoop Cup',
                'code' => 'DOUBLE',
                'scoop_count' => 2,
                'weight_grams' => 125.00,
                'price' => 250.00, // Rs 250
                'description' => 'Double scoop cup - 125 grams',
                'is_active' => true,
                'display_order' => 2,
            ],
            [
                'name' => 'Triple Scoop Cup',
                'code' => 'TRIPLE',
                'scoop_count' => 3,
                'weight_grams' => 170.00,
                'price' => 350.00, // Rs 350
                'description' => 'Triple scoop cup - 170 grams',
                'is_active' => true,
                'display_order' => 3,
            ],
            [
                'name' => '6 Scoop Cup',
                'code' => 'SIX',
                'scoop_count' => 6,
                'weight_grams' => 320.00,
                'price' => 650.00, // Rs 650
                'description' => '6 scoop family cup - 320 grams',
                'is_active' => true,
                'display_order' => 4,
            ],
        ];

        foreach ($cupSizes as $cupSize) {
            CupSize::create($cupSize);
        }
    }
}
