'2023-2024', 'subtitle' => 'The Rise of Generative AI and Global AI Competition', 'sort' => 1, 'status' => 'publish', 'published_at' => now(), ]); // Year 2024 $year2024 = TimelineYear::create([ 'group_id' => $group1->id, 'year' => 2024, 'image' => null, // Will use fallback /images/img-timeline.png 'sort' => 1, 'status' => 'publish', 'published_at' => now(), ]); $items2024 = [ ['title' => 'Sheng-Wei Chen Memorial Lecture: Delivering Trust in the AI Era by Dr. Wei Chao Chen', 'type' => 'aia'], ['title' => 'Global AI Regulation: EU AI Act Enforcement & U.S. AI Safety Executive Order', 'type' => 'ai'], ['title' => 'U.S. Congressional Aides Visit: AI Development, Policy, and Industry-Academia Collaboration', 'type' => 'aia'], ['title' => 'AI in Education & Workforce Development: Personalized Learning and Corporate Upskilling', 'type' => 'ai'], ['title' => 'Train-the-Trainer Program: Upskilling ASEAN Educators in Semiconductor Technology', 'type' => 'aia'], ['title' => 'Malaysia Delegation Visit: Strengthening AI Industry Collaboration with MIDA', 'type' => 'aia'], ['title' => 'AI-Driven Industry Collaboration: Strengthening Global Supply Chains and Trade Agreements', 'type' => 'ai'], ['title' => 'AIATCLâ„¢ Launch: Taiwan\'s First AI Literacy Certification for Professionals', 'type' => 'aia'], ['title' => 'GenAI Pilot Workshop: AI Applications Across Industries and Workforce Readiness', 'type' => 'aia'], ]; foreach ($items2024 as $index => $item) { TimelineItem::create([ 'year_id' => $year2024->id, 'title' => $item['title'], 'type' => $item['type'], 'sort' => $index + 1, 'status' => 'publish', ]); } // Year 2023 $year2023 = TimelineYear::create([ 'group_id' => $group1->id, 'year' => 2023, 'image' => null, // Will use fallback /images/img-timeline.png 'sort' => 2, 'status' => 'publish', 'published_at' => now(), ]); $items2023 = [ ['title' => 'AIGC Impact Workshop Explores AI-Driven Innovation', 'type' => 'aia'], ['title' => 'ChatGPT Becomes Fastest-Growing AI App', 'type' => 'ai'], ['title' => 'AIGC Summer Camp Introduces High Schoolers to Generative AI', 'type' => 'aia'], ['title' => 'LLM Competition Heats Up: Bard, Claude & More', 'type' => 'ai'], ['title' => 'Annual Conference: Generative AI and Industry Innovation', 'type' => 'aia'], ]; foreach ($items2023 as $index => $item) { TimelineItem::create([ 'year_id' => $year2023->id, 'title' => $item['title'], 'type' => $item['type'], 'sort' => $index + 1, 'status' => 'publish', ]); } // Group 2: 2021-2022 $group2 = TimelineGroup::create([ 'title' => '2021-2022', 'subtitle' => 'The Rise of Generative AI and Global AI Competition', 'sort' => 2, 'status' => 'publish', 'published_at' => now(), ]); // Year 2022 $year2022 = TimelineYear::create([ 'group_id' => $group2->id, 'year' => 2022, 'image' => null, // Will use fallback /images/img-timeline.png 'sort' => 1, 'status' => 'publish', 'published_at' => now(), ]); $items2022 = [ ['title' => 'Sheng-Wei Chen Memorial Lecture: Delivering Trust in the AI Era by Dr. Wei Chao Chen', 'type' => 'aia'], ['title' => 'Global AI Regulation: EU AI Act Enforcement & U.S. AI Safety Executive Order', 'type' => 'ai'], ['title' => 'U.S. Congressional Aides Visit: AI Development, Policy, and Industry-Academia Collaboration', 'type' => 'aia'], ['title' => 'AI in Education & Workforce Development: Personalized Learning and Corporate Upskilling', 'type' => 'ai'], ['title' => 'Train-the-Trainer Program: Upskilling ASEAN Educators in Semiconductor Technology', 'type' => 'aia'], ['title' => 'Malaysia Delegation Visit: Strengthening AI Industry Collaboration with MIDA', 'type' => 'aia'], ['title' => 'AI-Driven Industry Collaboration: Strengthening Global Supply Chains and Trade Agreements', 'type' => 'ai'], ['title' => 'AIATCLâ„¢ Launch: Taiwan\'s First AI Literacy Certification for Professionals', 'type' => 'aia'], ['title' => 'GenAI Pilot Workshop: AI Applications Across Industries and Workforce Readiness', 'type' => 'aia'], ]; foreach ($items2022 as $index => $item) { TimelineItem::create([ 'year_id' => $year2022->id, 'title' => $item['title'], 'type' => $item['type'], 'sort' => $index + 1, 'status' => 'publish', ]); } // Year 2021 $year2021 = TimelineYear::create([ 'group_id' => $group2->id, 'year' => 2021, 'image' => null, // Will use fallback /images/img-timeline.png 'sort' => 2, 'status' => 'publish', 'published_at' => now(), ]); $items2021 = [ ['title' => 'AIGC Impact Workshop Explores AI-Driven Innovation', 'type' => 'aia'], ['title' => 'ChatGPT Becomes Fastest-Growing AI App', 'type' => 'ai'], ['title' => 'AIGC Summer Camp Introduces High Schoolers to Generative AI', 'type' => 'aia'], ['title' => 'LLM Competition Heats Up: Bard, Claude & More', 'type' => 'ai'], ['title' => 'Annual Conference: Generative AI and Industry Innovation', 'type' => 'aia'], ]; foreach ($items2021 as $index => $item) { TimelineItem::create([ 'year_id' => $year2021->id, 'title' => $item['title'], 'type' => $item['type'], 'sort' => $index + 1, 'status' => 'publish', ]); } $this->command->info('Timeline data seeded successfully!'); } }