'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', ], [ '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 ], [ 'name' => 'Camicleta SLP varon', 'sku' => 'BIC-009', 'price' => 139000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Camicleta SLP ruedas macizas', 'sku' => 'BIC-010', 'price' => 138000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Camicleta SLP rayos', 'sku' => 'BIC-011', 'price' => 185000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Camicleta Economica ruedas macizas rosa', 'sku' => 'BIC-012', 'price' => 100000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R14 Cross varon', 'sku' => 'BIC-013', 'price' => 228000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R14 Full nena', 'sku' => 'BIC-014', 'price' => 228000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R16 Peretti nena canasto', 'sku' => 'BIC-015', 'price' => 239000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R16 Firebird', 'sku' => 'BIC-016', 'price' => 269000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R16 Full nena', 'sku' => 'BIC-017', 'price' => 239000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', // bike, accessory, clothing, spare ], [ 'name' => 'Bicicleta R16 dolphin/zest nena', 'sku' => 'BIC-018', 'price' => 269000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R16 Cross estabilizadores', 'sku' => 'BIC-019', 'price' => 230000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R16 Peretti Cross', 'sku' => 'BIC-020', 'price' => 235000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R16 Max SLP', 'sku' => 'BIC-021', 'price' => 268000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R16 Cross Peretti cromada', 'sku' => 'BIC-022', 'price' => 240000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R16 Cross Topmega', 'sku' => 'BIC-023', 'price' => 240000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R20 Cross', 'sku' => 'BIC-024', 'price' => 245000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R20 Peretti Cross varon', 'sku' => 'BIC-025', 'price' => 245000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R20 Max SLP varon', 'sku' => 'BIC-026', 'price' => 298000, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], [ 'name' => 'Bicicleta R20 Firebird', 'sku' => 'BIC-027', 'price' => 1, 'cost' => 100000, 'stock_quantity' => 5, 'min_stock_alert' => 2, 'type' => 'bike', ], // 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' => 'clothing', ], ]; // 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, ] ); } } }