'Admin', 'email' => 'admin@truncgil.com', 'password' => bcrypt('password'), ]); } // 1. Anasayfa $home = Page::updateOrCreate( ['slug' => 'home'], [ 'author_id' => $author->id, 'title' => 'Anasayfa', 'excerpt' => 'Modern ve yenilikçi teknoloji çözümleri', 'content' => null, 'template' => 'home', 'status' => 'published', 'is_homepage' => true, 'show_in_menu' => false, 'sort_order' => 1, 'published_at' => now(), 'meta_title' => 'Truncgil Teknoloji - Kurumsal', 'meta_description' => 'Truncgil Teknoloji kurumsal web sitesi.', 'sections' => [], // Sections will be handled by the template view for now or can be added here ] ); // 2. Kurumsal (Parent) $corporate = Page::updateOrCreate( ['slug' => 'kurumsal'], [ 'author_id' => $author->id, 'title' => 'Kurumsal', 'excerpt' => 'Kurumsal bilgilerimiz', 'content' => null, 'template' => 'generic', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 1, 'published_at' => now(), ] ); // 2.1 Hakkımızda (Child of Kurumsal) Page::updateOrCreate( ['slug' => 'hakkimizda'], [ 'author_id' => $author->id, 'parent_id' => $corporate->id, 'title' => 'Hakkımızda', 'excerpt' => 'Biz kimiz?', 'content' => '
Hakkımızda içeriği...
', 'template' => 'generic', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 1, 'published_at' => now(), ] ); // 2.2 Vizyon & Misyon (Child of Kurumsal) Page::updateOrCreate( ['slug' => 'vizyon-misyon'], [ 'author_id' => $author->id, 'parent_id' => $corporate->id, 'title' => 'Vizyon & Misyon', 'excerpt' => 'Gelecek hedeflerimiz', 'content' => 'Vizyon ve Misyon içeriği...
', 'template' => 'generic', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 2, 'published_at' => now(), ] ); // 2.3 Kitaplarımız (Child of Kurumsal) Page::updateOrCreate( ['slug' => 'kitaplarimiz'], [ 'author_id' => $author->id, 'parent_id' => $corporate->id, 'title' => 'Kitaplarımız', 'excerpt' => 'Yayınladığımız kitaplar', 'content' => null, 'template' => 'books.books', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 3, 'published_at' => now(), ] ); // 2.4 Banka Bilgilerimiz (Child of Kurumsal) Page::updateOrCreate( ['slug' => 'banka-bilgilerimiz'], [ 'author_id' => $author->id, 'parent_id' => $corporate->id, 'title' => 'Banka Bilgilerimiz', 'excerpt' => 'Banka hesap bilgilerimiz', 'content' => 'Banka hesap bilgilerimiz burada yer alacaktır.
', 'template' => 'generic', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 4, 'published_at' => now(), ] ); // 2.5 Müşteri Görüşleri (Child of Kurumsal) Page::updateOrCreate( ['slug' => 'musteri-gorusleri'], [ 'author_id' => $author->id, 'parent_id' => $corporate->id, 'title' => 'Müşteri Görüşleri', 'excerpt' => 'Müşterilerimizin hakkımızdaki düşünceleri', 'content' => null, 'template' => 'corporate.testimonials', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 5, 'published_at' => now(), ] ); // 3. Ürünlerimiz (Mega Menu Target) Page::updateOrCreate( ['slug' => 'urunlerimiz'], [ 'author_id' => $author->id, 'title' => 'Ürünlerimiz', 'excerpt' => 'Ürün ve hizmetlerimiz', 'content' => null, 'template' => 'generic', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 2, 'published_at' => now(), ] ); // 4. Kariyer Page::updateOrCreate( ['slug' => 'kariyer'], [ 'author_id' => $author->id, 'title' => 'Kariyer', 'excerpt' => 'Kariyer fırsatları', 'content' => 'Kariyer içeriği...
', 'template' => 'generic', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 3, 'published_at' => now(), ] ); // 5. Neler Yaparız Page::updateOrCreate( ['slug' => 'neler-yapariz'], [ 'author_id' => $author->id, 'title' => 'Neler Yaparız', 'excerpt' => 'Hizmetlerimiz ve çözümlerimiz', 'content' => null, 'template' => 'neler-yapariz', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 4, 'published_at' => now(), ] ); // 6. Blog Page::updateOrCreate( ['slug' => 'blog'], [ 'author_id' => $author->id, 'title' => 'Blog', 'excerpt' => 'Güncel haberler ve makaleler', 'content' => null, 'template' => 'blog', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 5, 'published_at' => now(), ] ); // 7. İletişim Page::updateOrCreate( ['slug' => 'iletisim'], [ 'author_id' => $author->id, 'title' => 'İletişim', 'excerpt' => 'Bize ulaşın', 'content' => null, 'template' => 'contact', 'status' => 'published', 'is_homepage' => false, 'show_in_menu' => true, 'sort_order' => 6, 'published_at' => now(), ] ); $this->command->info('✅ Menu yapısı ve sayfalar başarıyla oluşturuldu!'); } }