<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class DeliveryTypeSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $types = [
            [
                'name' => 'Standard Delivery',
                'description' => 'Delivery within 2-3 days',
                'cost' => 5.00,
                'estimated_time' => '2-3 Days',
                'is_active' => true,
            ],
            [
                'name' => 'Express Delivery',
                'description' => 'Delivery within 24 hours',
                'cost' => 15.00,
                'estimated_time' => '24 Hours',
                'is_active' => true,
            ],
            [
                'name' => 'Store Pickup',
                'description' => 'Pick up from nearest store',
                'cost' => 0.00,
                'estimated_time' => 'Ready in 1 Hour',
                'is_active' => true,
            ],
        ];

        foreach ($types as $type) {
            \App\Models\DeliveryType::create($type);
        }
    }
}
