v3 Planına Göre Admin Panel Geliştirmesi
4 Şubat 2026
Modules/Contact/ ├── App/ │ ├── Http/ │ │ └── Livewire/Admin/ │ │ ├── ContactComponent.php (Liste - Hierarchical) │ │ └── ContactManageComponent.php (Form - 4 Tab) │ ├── Models/ │ │ └── Contact.php (parent/children ilişkileri) │ ├── Services/ │ │ └── ContactService.php │ └── Repositories/ │ └── ContactRepository.php ├── config/ │ └── config.php (Tab konfigürasyonu) ├── database/migrations/ │ ├── 2024_02_17_000001_create_contacts_table.php │ └── tenant/ │ └── 2024_02_17_000001_create_contacts_table.php ├── lang/tr/ │ └── admin.php (Türkçe çeviriler) ├── resources/views/admin/livewire/ │ ├── contact-component.blade.php │ └── contact-manage-component.blade.php └── routes/ └── admin.php (create, manage routes)
| Alan | Tip | Açıklama |
|---|---|---|
| contact_id | BIGINT PK | Birincil anahtar |
| parent_id | BIGINT NULL FK | NULL = Page, Değer = Branch |
| title | JSON | {"tr": "Başlık", "en": "Title"} |
| slug | JSON NULL | Sadece page için |
| body | JSON NULL | RTE içerik (çoklu dil) |
| content | JSON NULL | Dil bazlı: contact_items, address, working_hours, social_media, map |
| form_fields | JSON NULL | Mini form builder alanları |
| form_recipient_email | VARCHAR(255) | Form alıcı e-posta |
| use_parent_form | BOOLEAN | Üst formunu kullan |
| is_main | BOOLEAN | Ana şube mi? |
| is_active | BOOLEAN | Aktif/Pasif |
| sort_order | INTEGER | Sıralama |
{
"tr": {
"contact_items": [
{"type": "phone", "icon": "fas fa-phone", "label": "Satış", "value": "0212 123 45 67", "sort_order": 0},
{"type": "email", "icon": "fas fa-envelope", "label": "Destek", "value": "destek@firma.com", "sort_order": 1}
],
"address": "Atatürk Cad. No:123 İstanbul",
"working_hours": "Pazartesi-Cuma: 09:00-18:00",
"social_media": [
{"icon": "fab fa-facebook", "label": "Facebook", "url": "https://facebook.com/...", "sort_order": 0}
],
"map": {"latitude": "41.0082", "longitude": "28.9784", "embed": "<iframe...>"}
},
"en": { ... }
}
Migration Çalıştır
php artisan tenants:migrate --force
⚠️ Bu komutu çalıştırmak için onay gerekli!
Frontend Controller & Views
İletişim sayfası frontend görünümü
Contact Form Mail Service
Form gönderimlerini e-posta olarak ileten servis
Tema Entegrasyonu
Tenant temalarına iletişim sayfası entegrasyonu