<?php

namespace Database\Seeders;

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

class ProductSeeder extends Seeder
{
    public function run()
    {
        $products = [
            [
                'name' => 'Paket Konstruksi Rumah',
                'description' => 'Paket pembangunan rumah lengkap dengan material berkualitas',
                'category' => 'Konstruksi',
                'price' => 150000000,
                'status' => 'active',
                'rating' => 4.5,
                'reviews_count' => 12,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Jasa Konsultasi IT',
                'description' => 'Konsultasi pengembangan sistem dan infrastruktur IT',
                'category' => 'IT',
                'price' => 25000000,
                'status' => 'active',
                'rating' => 4.8,
                'reviews_count' => 8,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Paket Logistik Pengiriman',
                'description' => 'Layanan pengiriman barang dengan jaminan keamanan',
                'category' => 'Logistik',
                'price' => 5000000,
                'status' => 'active',
                'rating' => 4.2,
                'reviews_count' => 20,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Konsultasi Bisnis',
                'description' => 'Konsultasi strategi pengembangan bisnis dan manajemen',
                'category' => 'Konsultasi',
                'price' => 10000000,
                'status' => 'active',
                'rating' => 4.6,
                'reviews_count' => 15,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Pengembangan Aplikasi Mobile',
                'description' => 'Jasa pengembangan aplikasi mobile untuk iOS dan Android',
                'category' => 'IT',
                'price' => 75000000,
                'status' => 'active',
                'rating' => 4.9,
                'reviews_count' => 25,
                'created_at' => now(),
                'updated_at' => now(),
            ],
            [
                'name' => 'Jasa Arsitektur & Desain',
                'description' => 'Konsultasi arsitektur dan desain interior untuk bangunan',
                'category' => 'Konstruksi',
                'price' => 35000000,
                'status' => 'active',
                'rating' => 4.7,
                'reviews_count' => 18,
                'created_at' => now(),
                'updated_at' => now(),
            ],
        ];

        foreach ($products as $product) {
            Product::create($product);
        }
    }
}