'Bicicleta R12 nena-varon rueda maciza', 'sku' => 'BIC-001', 'price' => 148000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R12 con rayos varon', 'sku' => 'BIC-002', 'price' => 175000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R12 reina flecos canasto', 'sku' => 'BIC-003', 'price' => 999, 'cost' => 111, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R12 topmega nena', 'sku' => 'BIC-004', 'price' => 250000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R12 topmega varon', 'sku' => 'BIC-005', 'price' => 250000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R12 Max SLP', 'sku' => 'BIC-006', 'price' => 250000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R12 Max SLP rueda megnesio', 'sku' => 'BIC-007', 'price' => 268000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R12 SLP dolphin', 'sku' => 'BIC-008', 'price' => 250000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], // 2. ACCESORIOS [ 'name' => 'Cámara 29 Valvula Auto', 'sku' => 'CAM-29-A', 'price' => 5000, 'cost' => 2500, 'stock_quantity' => 50, 'min_stock_alert' => 10, 'type' => 'accessory', ], [ 'name' => 'Servicio de Lavado', 'sku' => 'SRV-LAV', 'price' => 3000, 'cost' => 0, 'stock_quantity' => 999, 'min_stock_alert' => 0, 'type' => 'service', ], ]; // BUCLE DE CARGA foreach ($products as $item) { Product::updateOrCreate( ['sku' => $item['sku']], [ 'name' => $item['name'], 'price' => $item['price'], 'cost' => $item['cost'] ?? 0, 'stock_quantity' => $item['stock_quantity'] ?? 0, 'min_stock_alert' => $item['min_stock_alert'] ?? 5, 'type' => $item['type'] ?? 'accessory', 'description' => $item['description'] ?? null, ] ); } } }