From 4a98a6d8f0458c0af3ae263ccfc73f0f5be94b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Thu, 30 Oct 2025 15:55:32 -0300 Subject: [PATCH] Add sections and data fields to Page model, create migration for sections column, and implement PageSeeder for initial page data: Enhanced the Page model with new fields for sections and data, added a migration to include a JSON column for sections in the pages table, and created a PageSeeder to populate the database with example pages including structured sections for content management. --- app/Models/Page.php | 4 + ..._30_184739_add_sections_to_pages_table.php | 29 ++ database/seeders/DatabaseSeeder.php | 3 +- database/seeders/PageSeeder.php | 316 ++++++++++++++++++ database/seeders/SettingSeeder.php | 62 +++- docs/SEEDER_USAGE.md | 255 ++++++++++++++ resources/views/home.blade.php | 155 --------- resources/views/page.blade.php | 103 ------ 8 files changed, 664 insertions(+), 263 deletions(-) create mode 100644 database/migrations/2025_10_30_184739_add_sections_to_pages_table.php create mode 100644 database/seeders/PageSeeder.php create mode 100644 docs/SEEDER_USAGE.md delete mode 100644 resources/views/home.blade.php delete mode 100644 resources/views/page.blade.php diff --git a/app/Models/Page.php b/app/Models/Page.php index e039d07..e560ac8 100644 --- a/app/Models/Page.php +++ b/app/Models/Page.php @@ -27,6 +27,8 @@ class Page extends Model 'template', 'is_homepage', 'show_in_menu', + 'sections', + 'data', ]; /** @@ -45,6 +47,8 @@ class Page extends Model 'is_homepage' => 'boolean', 'show_in_menu' => 'boolean', 'sort_order' => 'integer', + 'sections' => 'array', + 'data' => 'array', ]; public function author() diff --git a/database/migrations/2025_10_30_184739_add_sections_to_pages_table.php b/database/migrations/2025_10_30_184739_add_sections_to_pages_table.php new file mode 100644 index 0000000..07ee766 --- /dev/null +++ b/database/migrations/2025_10_30_184739_add_sections_to_pages_table.php @@ -0,0 +1,29 @@ +json('sections')->nullable()->after('content'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('pages', function (Blueprint $table) { + $table->dropColumn('sections'); + }); + } +}; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php index 6f892db..30ae10e 100644 --- a/database/seeders/DatabaseSeeder.php +++ b/database/seeders/DatabaseSeeder.php @@ -13,9 +13,10 @@ class DatabaseSeeder extends Seeder */ public function run(): void { - // Settings seed + // Settings & Pages seed $this->call([ SettingSeeder::class, + PageSeeder::class, ]); // User::factory(10)->create(); diff --git a/database/seeders/PageSeeder.php b/database/seeders/PageSeeder.php new file mode 100644 index 0000000..ab5e546 --- /dev/null +++ b/database/seeders/PageSeeder.php @@ -0,0 +1,316 @@ + 'Admin', + 'email' => 'admin@truncgil.com', + 'password' => bcrypt('password'), + ]); + } + + $pages = [ + // Home Page + [ + 'author_id' => $author->id, + 'title' => 'Anasayfa', + 'slug' => 'home', + 'excerpt' => 'Modern ve yenilikçi teknoloji çözümleri', + 'content' => null, + 'template' => 'home', + 'status' => 'published', + 'is_homepage' => true, + 'show_in_menu' => true, + 'sort_order' => 1, + 'published_at' => now(), + 'meta_title' => 'Truncgil Citrus - Modern Web Çözümleri', + 'meta_description' => 'Yenilikçi teknoloji çözümleri ile geleceği şekillendiriyoruz. Modern web uygulamaları ve dijital dönüşüm hizmetleri.', + 'sections' => [ + [ + 'type' => 'hero', + 'data' => [ + 'background_image' => 'assets/img/photos/blurry.png', + 'badge' => 'YENİ PLATFORM', + 'title' => 'Modern ve Çok Amaçlı Web Çözümleri', + 'subtitle' => 'Yenilikçi teknoloji çözümleri ile geleceği şekillendiriyoruz. Projelerinizi en son teknolojilerle hayata geçiriyoruz.', + 'primary_button_text' => 'Hemen Başla', + 'primary_button_url' => '#features', + 'secondary_button_text' => 'Daha Fazla Bilgi', + 'secondary_button_url' => '/about', + 'hero_image' => 'assets/img/demos/f1.png', + ], + ], + [ + 'type' => 'features', + 'data' => [ + 'bg_class' => '!bg-[#f0f0f8]', + 'section_badge' => 'ÖZELLİKLER', + 'section_title' => 'Neden Truncgil Citrus?', + 'section_subtitle' => 'Modern teknolojiler ve uzman ekibimizle projelerinizi hayata geçiriyoruz', + 'column_class' => 'md:w-6/12 lg:w-4/12', + 'features' => [ + [ + 'icon' => 'assets/img/demos/fi1.png', + 'title' => 'Hızlı Çözümler', + 'description' => 'Modern teknolojiler kullanarak projelerinizi hızlı ve verimli bir şekilde hayata geçiriyoruz.', + ], + [ + 'icon' => 'assets/img/demos/fi2.png', + 'title' => 'Güvenli Altyapı', + 'description' => 'En son güvenlik standartlarını kullanarak verilerinizi koruma altına alıyoruz.', + ], + [ + 'icon' => 'assets/img/demos/fi3.png', + 'title' => 'Uzman Ekip', + 'description' => 'Deneyimli ve uzman ekibimiz ile her zaman yanınızdayız.', + ], + ], + ], + ], + [ + 'type' => 'stats', + 'data' => [ + 'bg_class' => '!bg-[#ffffff]', + 'column_class' => 'md:w-6/12 lg:w-3/12', + 'stats' => [ + ['number' => '500+', 'label' => 'Tamamlanan Proje'], + ['number' => '300+', 'label' => 'Mutlu Müşteri'], + ['number' => '50+', 'label' => 'Kazanılan Ödül'], + ['number' => '25+', 'label' => 'Ekip Üyesi'], + ], + ], + ], + [ + 'type' => 'cta', + 'data' => [ + 'bg_class' => 'overflow-hidden', + 'background_image' => 'assets/img/photos/blurry.png', + 'icon' => 'assets/img/demos/icon-grape.png', + 'title' => 'Benzersiz düşünün ve fark yaratın', + 'subtitle' => 'Binlerce müşterimiz tarafından güveniliyoruz. Siz de katılın ve projelerinizi hayata geçirin.', + 'button_text' => 'İletişime Geç', + 'button_url' => '/contact', + 'button_icon' => 'uil uil-arrow-up-right', + ], + ], + ], + ], + + // About Page + [ + 'author_id' => $author->id, + 'title' => 'Hakkımızda', + 'slug' => 'about', + 'excerpt' => 'Truncgil Citrus olarak yenilikçi teknoloji çözümleri sunuyoruz', + 'content' => null, + 'template' => 'generic', + 'status' => 'published', + 'is_homepage' => false, + 'show_in_menu' => true, + 'sort_order' => 2, + 'published_at' => now(), + 'meta_title' => 'Hakkımızda - Truncgil Citrus', + 'meta_description' => 'Truncgil Citrus olarak yenilikçi teknoloji çözümleri sunuyor, dijital dönüşüm süreçlerinizde yanınızdayız.', + 'sections' => [ + [ + 'type' => 'hero', + 'data' => [ + 'badge' => 'HAKKIMIZDA', + 'title' => 'Yenilikçi Teknoloji Çözümleri', + 'subtitle' => '2010 yılından bu yana dijital dönüşüm süreçlerinde lider konumdayız', + ], + ], + [ + 'type' => 'features', + 'data' => [ + 'bg_class' => '!bg-[#ffffff]', + 'section_title' => 'Değerlerimiz', + 'section_subtitle' => 'İş süreçlerimizi şekillendiren temel prensiplerimiz', + 'column_class' => 'md:w-6/12 lg:w-3/12', + 'features' => [ + ['icon' => 'assets/img/demos/fi1.png', 'title' => 'İnovasyon', 'description' => 'Sürekli yenilik ve gelişim'], + ['icon' => 'assets/img/demos/fi2.png', 'title' => 'Kalite', 'description' => 'En yüksek standartlarda hizmet'], + ['icon' => 'assets/img/demos/fi3.png', 'title' => 'Güvenilirlik', 'description' => 'Zamanında ve eksiksiz teslimat'], + ['icon' => 'assets/img/demos/fi4.png', 'title' => 'Destek', 'description' => '7/24 müşteri desteği'], + ], + ], + ], + ], + ], + + // Services Page + [ + 'author_id' => $author->id, + 'title' => 'Hizmetlerimiz', + 'slug' => 'services', + 'excerpt' => 'Geniş yelpazede teknoloji hizmetleri sunuyoruz', + 'content' => null, + 'template' => 'generic', + 'status' => 'published', + 'is_homepage' => false, + 'show_in_menu' => true, + 'sort_order' => 3, + 'published_at' => now(), + 'meta_title' => 'Hizmetlerimiz - Truncgil Citrus', + 'meta_description' => 'Web tasarım, mobil uygulama geliştirme, e-ticaret çözümleri ve dijital pazarlama hizmetlerimizi keşfedin.', + 'sections' => [ + [ + 'type' => 'hero', + 'data' => [ + 'badge' => 'HİZMETLER', + 'title' => 'Dijital Dönüşüm Çözümleri', + 'subtitle' => 'İşinizi bir üst seviyeye taşıyacak teknoloji hizmetlerimiz', + ], + ], + [ + 'type' => 'features', + 'data' => [ + 'bg_class' => '!bg-[#f0f0f8]', + 'section_title' => 'Sunduğumuz Hizmetler', + 'column_class' => 'md:w-6/12 lg:w-4/12', + 'features' => [ + ['icon' => 'assets/img/demos/fi1.png', 'title' => 'Web Tasarım & Geliştirme', 'description' => 'Modern, responsive ve SEO uyumlu web siteleri'], + ['icon' => 'assets/img/demos/fi2.png', 'title' => 'Mobil Uygulama', 'description' => 'iOS ve Android için native ve cross-platform uygulamalar'], + ['icon' => 'assets/img/demos/fi3.png', 'title' => 'E-Ticaret Çözümleri', 'description' => 'Entegre ödeme sistemleri ile online satış platformları'], + ['icon' => 'assets/img/demos/fi4.png', 'title' => 'Dijital Pazarlama', 'description' => 'SEO, SEM ve sosyal medya yönetimi'], + ['icon' => 'assets/img/demos/fi1.png', 'title' => 'Kurumsal Yazılım', 'description' => 'İşletmenize özel CRM, ERP ve özel yazılım çözümleri'], + ['icon' => 'assets/img/demos/fi2.png', 'title' => 'Bulut Hizmetleri', 'description' => 'Güvenli ve ölçeklenebilir bulut altyapısı'], + ], + ], + ], + ], + ], + + // Contact Page + [ + 'author_id' => $author->id, + 'title' => 'İletişim', + 'slug' => 'contact', + 'excerpt' => 'Projeleriniz hakkında bizimle iletişime geçin', + 'content' => null, + 'template' => 'generic', + 'status' => 'published', + 'is_homepage' => false, + 'show_in_menu' => true, + 'sort_order' => 4, + 'published_at' => now(), + 'meta_title' => 'İletişim - Truncgil Citrus', + 'meta_description' => 'Projeleriniz hakkında konuşmak için bizimle iletişime geçin. Uzman ekibimiz size yardımcı olmaktan mutluluk duyar.', + 'sections' => [ + [ + 'type' => 'hero', + 'data' => [ + 'badge' => 'İLETİŞİM', + 'title' => 'Projelerinizi Konuşalım', + 'subtitle' => 'Size özel çözümler geliştirmek için bizimle iletişime geçin', + ], + ], + [ + 'type' => 'contact', + 'data' => [ + 'bg_class' => '!bg-[#f0f0f8]', + 'title' => 'Bizimle İletişime Geçin', + 'subtitle' => 'Projeleriniz hakkında konuşmak için bize ulaşın', + 'info' => [ + 'address' => 'Merkez Mah. Teknoloji Cad. No:123 İstanbul', + 'phone' => '+90 (212) 555 1234', + 'email' => 'info@truncgil.com', + ], + 'form_action' => '/contact/submit', + 'button_text' => 'Gönder', + ], + ], + ], + ], + + // Pricing Page (örnek) + [ + 'author_id' => $author->id, + 'title' => 'Fiyatlandırma', + 'slug' => 'pricing', + 'excerpt' => 'Size uygun paketi seçin', + 'content' => null, + 'template' => 'generic', + 'status' => 'published', + 'is_homepage' => false, + 'show_in_menu' => false, + 'sort_order' => 5, + 'published_at' => now(), + 'meta_title' => 'Fiyatlandırma - Truncgil Citrus', + 'meta_description' => 'İhtiyaçlarınıza uygun web tasarım ve yazılım geliştirme paketlerimizi inceleyin.', + 'sections' => [ + [ + 'type' => 'hero', + 'data' => [ + 'badge' => 'FİYATLANDIRMA', + 'title' => 'Size Uygun Paketi Seçin', + 'subtitle' => 'Tüm paketler 30 gün para iade garantisi ile geliyor', + ], + ], + [ + 'type' => 'pricing', + 'data' => [ + 'bg_class' => '!bg-[#f0f0f8]', + 'section_title' => 'Web Tasarım Paketleri', + 'column_class' => 'md:w-6/12 lg:w-4/12', + 'featured_label' => 'Önerilen', + 'plans' => [ + [ + 'name' => 'Başlangıç', + 'currency' => '₺', + 'price' => '999', + 'period' => 'ay', + 'features' => ['5 Sayfa', 'Mobil Uyumlu', 'SEO Optimizasyonu', '7/24 Destek'], + 'button_text' => 'Başla', + 'button_url' => '/contact', + ], + [ + 'name' => 'Profesyonel', + 'currency' => '₺', + 'price' => '2499', + 'period' => 'ay', + 'featured' => true, + 'features' => ['15 Sayfa', 'Mobil Uyumlu', 'SEO Optimizasyonu', 'Yönetim Paneli', '7/24 Öncelikli Destek'], + 'button_text' => 'Başla', + 'button_url' => '/contact', + ], + [ + 'name' => 'Kurumsal', + 'currency' => '₺', + 'price' => '4999', + 'period' => 'ay', + 'features' => ['Sınırsız Sayfa', 'Mobil Uyumlu', 'SEO Optimizasyonu', 'Gelişmiş Yönetim Paneli', 'Özel Entegrasyonlar', '7/24 Öncelikli Destek'], + 'button_text' => 'Başla', + 'button_url' => '/contact', + ], + ], + ], + ], + ], + ], + ]; + + foreach ($pages as $pageData) { + Page::updateOrCreate( + ['slug' => $pageData['slug']], + $pageData + ); + } + + $this->command->info('✅ ' . count($pages) . ' sayfa başarıyla oluşturuldu!'); + } +} diff --git a/database/seeders/SettingSeeder.php b/database/seeders/SettingSeeder.php index 487976c..6f15bea 100644 --- a/database/seeders/SettingSeeder.php +++ b/database/seeders/SettingSeeder.php @@ -525,10 +525,10 @@ class SettingSeeder extends Seeder [ 'key' => 'social_links', 'value' => json_encode([ - 'facebook' => '', - 'twitter' => '', - 'instagram' => '', - 'linkedin' => '', + 'facebook' => 'https://facebook.com/', + 'twitter' => 'https://twitter.com/', + 'instagram' => 'https://instagram.com/', + 'linkedin' => 'https://linkedin.com/', 'youtube' => '', 'tiktok' => '', 'github' => '', @@ -541,6 +541,60 @@ class SettingSeeder extends Seeder 'is_public' => true, 'is_active' => true, ], + + // ========================================== + // FRONTEND LAYOUT AYARLARI (layout) + // ========================================== + [ + 'key' => 'default_meta_title', + 'value' => 'Truncgil Citrus - Modern Web Çözümleri', + 'type' => 'string', + 'group' => 'layout', + 'label' => 'Varsayılan Meta Başlık', + 'description' => 'Sayfalarda özel meta başlık yoksa kullanılacak', + 'is_public' => true, + 'is_active' => true, + ], + [ + 'key' => 'default_meta_description', + 'value' => 'Yenilikçi teknoloji çözümleri ile geleceği şekillendiriyoruz', + 'type' => 'text', + 'group' => 'layout', + 'label' => 'Varsayılan Meta Açıklama', + 'description' => 'Sayfalarda özel meta açıklama yoksa kullanılacak', + 'is_public' => true, + 'is_active' => true, + ], + [ + 'key' => 'default_meta_image', + 'value' => 'assets/img/demos/f1.png', + 'type' => 'string', + 'group' => 'layout', + 'label' => 'Varsayılan Meta Görsel', + 'description' => 'Open Graph için varsayılan görsel', + 'is_public' => true, + 'is_active' => true, + ], + [ + 'key' => 'logo_path', + 'value' => 'assets/img/truncgil-yatay.svg', + 'type' => 'string', + 'group' => 'layout', + 'label' => 'Logo Yolu', + 'description' => 'Header\'da görünecek logo', + 'is_public' => true, + 'is_active' => true, + ], + [ + 'key' => 'favicon_path', + 'value' => 'assets/img/favicon.ico', + 'type' => 'string', + 'group' => 'layout', + 'label' => 'Favicon Yolu', + 'description' => 'Tarayıcı favicon', + 'is_public' => true, + 'is_active' => true, + ], // ========================================== // SEO AYARLARI (seo) diff --git a/docs/SEEDER_USAGE.md b/docs/SEEDER_USAGE.md new file mode 100644 index 0000000..5030bd2 --- /dev/null +++ b/docs/SEEDER_USAGE.md @@ -0,0 +1,255 @@ +# Veritabanı Seeder Kullanım Kılavuzu + +## Genel Bakış + +Sistemde 2 ana seeder bulunmaktadır: +1. **PageSeeder** - Örnek sayfalar (home, about, services, contact, pricing) +2. **SettingSeeder** - Site ayarları ve yapılandırmaları + +## Seeder'ları Çalıştırma + +### Tüm Seeder'ları Çalıştırma + +```bash +php artisan db:seed +``` + +### Sadece Page Seeder'ı Çalıştırma + +```bash +php artisan db:seed --class=PageSeeder +``` + +### Sadece Setting Seeder'ı Çalıştırma + +```bash +php artisan db:seed --class=SettingSeeder +``` + +### Fresh Migration + Seed (Dikkat: Tüm veriler silinir!) + +```bash +php artisan migrate:fresh --seed +``` + +--- + +## PageSeeder İçeriği + +### Oluşturulan Sayfalar + +1. **Anasayfa** (`slug: home`) + - `is_homepage: true` + - `template: home` + - Bloklar: Hero, Features, Stats, CTA + - Durum: published + +2. **Hakkımızda** (`slug: about`) + - `template: generic` + - Bloklar: Hero, Features + - Durum: published + +3. **Hizmetlerimiz** (`slug: services`) + - `template: generic` + - Bloklar: Hero, Features (6 hizmet) + - Durum: published + +4. **İletişim** (`slug: contact`) + - `template: generic` + - Bloklar: Hero, Contact Form + - Durum: published + +5. **Fiyatlandırma** (`slug: pricing`) + - `template: generic` + - Bloklar: Hero, Pricing (3 paket) + - Durum: published + - `show_in_menu: false` (menüde görünmez) + +### Blok Yapısı Örneği + +```json +{ + "sections": [ + { + "type": "hero", + "data": { + "badge": "YENİ PLATFORM", + "title": "Modern ve Çok Amaçlı Web Çözümleri", + "subtitle": "...", + "primary_button_text": "Hemen Başla", + "primary_button_url": "#features" + } + }, + { + "type": "features", + "data": { + "section_title": "Neden Truncgil Citrus?", + "features": [...] + } + } + ] +} +``` + +--- + +## SettingSeeder İçeriği + +### Gruplar ve Ayarlar + +| Grup | Açıklama | Örnek Ayarlar | +|------|----------|---------------| +| `general` | Genel site ayarları | site_name, site_description, logo, favicon | +| `theme` | Tema ve renk ayarları | primary_color, secondary_color, custom_css | +| `localization` | Dil ve bölge ayarları | timezone, currency, date_format | +| `email` | E-posta sunucu ayarları | mail_host, mail_port, mail_from | +| `social` | Sosyal medya linkleri | facebook, instagram, linkedin, twitter | +| `layout` | Frontend layout ayarları | default_meta_title, logo_path, favicon_path | +| `seo` | SEO ve analitik ayarları | google_analytics, meta_keywords | +| `security` | Güvenlik ayarları | max_login_attempts, password_rules | +| `upload` | Dosya yükleme ayarları | max_size, allowed_types, image_quality | +| `notification` | Bildirim ayarları | email_enabled, sms_enabled | +| `cache` | Cache ayarları | cache_driver, cache_duration | +| `payment` | Ödeme ayarları | default_gateway, test_mode | +| `api` | API ayarları | rate_limit, auth_method | +| `logging` | Log ayarları | log_level, retention_days | +| `performance` | Performans ayarları | query_cache, cdn_enabled | +| `integration` | 3. parti entegrasyonlar | recaptcha, stripe, paypal | + +### Frontend için Kritik Ayarlar + +```php +// Layout için +'default_meta_title' => 'Truncgil Citrus - Modern Web Çözümleri' +'default_meta_description' => 'Yenilikçi teknoloji çözümleri...' +'default_meta_image' => 'assets/img/demos/f1.png' +'logo_path' => 'assets/img/truncgil-yatay.svg' +'favicon_path' => 'assets/img/favicon.ico' + +// Sosyal medya +'social_links' => { + 'facebook': 'https://facebook.com/', + 'instagram': 'https://instagram.com/', + 'linkedin': 'https://linkedin.com/', + 'twitter': 'https://twitter.com/' +} +``` + +--- + +## Seeder Sonrası Kontrol + +### 1. Veritabanı Kontrolü + +```bash +# Pages tablosunu kontrol et +php artisan tinker +>>> App\Models\Page::count() +=> 5 + +>>> App\Models\Page::where('status', 'published')->count() +=> 5 + +>>> App\Models\Page::where('is_homepage', true)->first()->slug +=> "home" +``` + +### 2. Setting Kontrolü + +```bash +php artisan tinker +>>> App\Models\Setting::where('key', 'default_meta_title')->first()->value +=> "Truncgil Citrus - Modern Web Çözümleri" + +>>> App\Models\Setting::where('key', 'social_links')->first()->value +=> "{\"facebook\":\"https://facebook.com/\",...}" +``` + +### 3. Frontend Kontrolü + +- `https://citrus.truncgil.com/` → Anasayfa (home template + bloklar) +- `https://citrus.truncgil.com/about` → Hakkımızda +- `https://citrus.truncgil.com/services` → Hizmetler +- `https://citrus.truncgil.com/contact` → İletişim +- `https://citrus.truncgil.com/pricing` → Fiyatlandırma + +--- + +## Özelleştirme + +### Yeni Sayfa Ekleme + +`database/seeders/PageSeeder.php` içinde `$pages` dizisine ekleyin: + +```php +[ + 'title' => 'Portfolyo', + 'slug' => 'portfolio', + 'template' => 'generic', + 'status' => 'published', + 'show_in_menu' => true, + 'sort_order' => 6, + 'published_at' => now(), + 'sections' => [ + // Bloklar... + ], +] +``` + +### Var Olan Sayfayı Güncelleme + +Seeder updateOrCreate kullanıyor, slug'a göre günceller: + +```bash +php artisan db:seed --class=PageSeeder +``` + +Aynı slug varsa güncellenir, yoksa yeni kayıt oluşturulur. + +### Setting Değerlerini Değiştirme + +`database/seeders/SettingSeeder.php` içinde ilgili `value` alanını değiştirin ve çalıştırın: + +```bash +php artisan db:seed --class=SettingSeeder +``` + +--- + +## Sorun Giderme + +### "Class not found" Hatası + +```bash +composer dump-autoload +php artisan clear-compiled +php artisan config:clear +php artisan db:seed +``` + +### "Table doesn't exist" Hatası + +```bash +php artisan migrate +php artisan db:seed +``` + +### Seeder Çalışmıyor + +```bash +# Verbose mode ile hata detaylarını görün +php artisan db:seed --class=PageSeeder -vvv +``` + +### Fresh Start (Tüm veriyi sıfırlama) + +```bash +php artisan migrate:fresh --seed +``` + +⚠️ **Uyarı:** Bu komut tüm tabloları siler ve yeniden oluşturur! + +--- + +**Son Güncelleme:** {{ now()->format('d.m.Y H:i') }} + diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php deleted file mode 100644 index 4cf4c76..0000000 --- a/resources/views/home.blade.php +++ /dev/null @@ -1,155 +0,0 @@ -@extends('layouts.app') - -@section('title', $page ? ($page->meta_title ?? $page->title) : 'Trunçgil Teknoloji') -@section('description', $page ? ($page->meta_description ?? $page->excerpt) : 'Trunçgil Teknoloji - Yenilikçi Çözümler') - -@section('content') - - -
-
- -
-
-
- -
-
- -
- @if($page) -

- {{ $page->title }} -

- @if($page->excerpt) -

- {{ $page->excerpt }} -

- @endif - @else -

- Hoş Geldiniz - - Trunçgil Teknoloji - -

-

- Yenilikçi teknoloji çözümleri ile geleceği şekillendiriyoruz -

- @endif - - -
- - -
-
-
- Trunçgil Teknoloji - -
-
-
-
-
- - @if($page && $page->content) - -
-
-
- {!! $page->content !!} -
-
-
- @endif - - -
-
-
-

- Neden Trunçgil Teknoloji? -

-

- Modern teknolojiler ve uzman ekibimizle projelerinizi hayata geçiriyoruz -

-
- -
- -
-
- - - -
-

- Hızlı Çözümler -

-

- Modern teknolojiler kullanarak projelerinizi hızlı ve verimli bir şekilde hayata geçiriyoruz. -

-
- - -
-
- - - -
-

- Güvenli Altyapı -

-

- En son güvenlik standartlarını kullanarak verilerinizi koruma altına alıyoruz. -

-
- - -
-
- - - -
-

- Uzman Ekip -

-

- Deneyimli ve uzman ekibimiz ile her zaman yanınızdayız. -

-
-
-
-
- - -
-
-

- Projenizi Konuşalım -

-

- Size özel çözümler geliştirmek için iletişime geçin -

- - İletişime Geç - - - - -
-
-@endsection diff --git a/resources/views/page.blade.php b/resources/views/page.blade.php deleted file mode 100644 index b67e128..0000000 --- a/resources/views/page.blade.php +++ /dev/null @@ -1,103 +0,0 @@ -@extends('layouts.app') - -@section('title', $page->meta_title ?? $page->title) -@section('description', $page->meta_description ?? $page->excerpt ?? '') - -@section('content') - - -
-
-
-
-
- -
-
-

- {{ $page->title }} -

- - @if($page->excerpt) -

- {{ $page->excerpt }} -

- @endif - - @if($page->published_at) -
- - - - {{ $page->published_at->format('d M Y') }} -
- @endif -
-
-
- - -
-
- @if($page->featured_image) -
- {{ $page->title }} -
- @endif - -
- {!! $page->content !!} -
- - - @if($page->children->where('status', 'published')->count() > 0) -
-

- İlgili Sayfalar -

-
- @foreach($page->children->where('status', 'published')->sortBy('sort_order') as $child) - -

- {{ $child->title }} -

- @if($child->excerpt) -

- {{ $child->excerpt }} -

- @endif -
- @endforeach -
-
- @endif - - -
- - - - - Ana Sayfaya Dön - - - @if($page->parent) - - Üst Sayfa - - - - - @endif -
-
-
-@endsection