239 lines
12 KiB
PHP
239 lines
12 KiB
PHP
<?php
|
||
|
||
namespace Database\Seeders;
|
||
|
||
use App\Models\CompanyHistoryItem;
|
||
use Illuminate\Database\Seeder;
|
||
|
||
class CompanyHistoryItemSeeder extends Seeder
|
||
{
|
||
/**
|
||
* Run the database seeds.
|
||
*/
|
||
public function run(): void
|
||
{
|
||
$items = [
|
||
[
|
||
'year' => 2014,
|
||
'title' => 'Kuruluş',
|
||
'content' => 'Trunçgil Teknoloji, 2014 yılında Ümit Tunç tarafından Gaziantep\'te kuruldu.',
|
||
'color' => '#17a2b8',
|
||
'icon' => 'heroicon-o-building-office-2',
|
||
'sort_order' => 1,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'Foundation',
|
||
'content' => 'Trunçgil Technology was founded in Gaziantep in 2014 by Ümit Tunç.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Gründung',
|
||
'content' => 'Trunçgil Technology wurde 2014 von Ümit Tunç in Gaziantep gegründet.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2015,
|
||
'title' => 'Akademik Altyapı',
|
||
'content' => 'E-SER Akademik Yayın Evi ile çözüm ortaklığı kurarak indeksli dergiler için akademik yayın altyapısı geliştirdi.',
|
||
'color' => '#f5a623',
|
||
'icon' => 'heroicon-o-academic-cap',
|
||
'sort_order' => 2,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'Academic Infrastructure',
|
||
'content' => 'Established a solution partnership with E-SER Academic Publishing to develop publishing infrastructure for indexed journals.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Akademische Infrastruktur',
|
||
'content' => 'In Partnerschaft mit E-SER Academic Publishing wurde die Infrastruktur für indexierte Fachzeitschriften aufgebaut.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2016,
|
||
'title' => 'İlk İhracat',
|
||
'content' => 'İlk ihracatini gerçekleştirerek e-ticaret alanında Amerika Birleşik Devletleri\'nin New Jersey eyaletinde faaliyet göstermeye başladı.',
|
||
'color' => '#e91e63',
|
||
'icon' => 'heroicon-o-globe-alt',
|
||
'sort_order' => 3,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'First Export',
|
||
'content' => 'Completed its first export and began operations in e-commerce in New Jersey, United States.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Erster Export',
|
||
'content' => 'Mit dem ersten Export wurden E-Commerce-Aktivitäten im US-Bundesstaat New Jersey aufgenommen.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2017,
|
||
'title' => 'TRDoktor.com',
|
||
'content' => 'TRDoktor.com iş birliğiyle Türkiye genelinde aylık bir milyondan fazla kullanıcıya hizmet veren dijital sağlık altyapısına katkı sağladı.',
|
||
'color' => '#2c3e50',
|
||
'icon' => 'heroicon-o-users',
|
||
'sort_order' => 4,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'TRDoktor.com',
|
||
'content' => 'Through its partnership with TRDoktor.com, contributed to a digital health platform serving more than one million monthly users across Turkey.',
|
||
],
|
||
'de' => [
|
||
'title' => 'TRDoktor.com',
|
||
'content' => 'Durch die Partnerschaft mit TRDoktor.com wurde eine digitale Gesundheitsplattform mit über einer Million monatlicher Nutzer in der Türkei unterstützt.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2018,
|
||
'title' => 'Eğitim Teknolojileri',
|
||
'content' => 'Amerikan Kültür Koleji\'nin eğitim altyapısında kullanılmak üzere kurumsal eğitim uygulamaları geliştirdi.',
|
||
'color' => '#5dade2',
|
||
'icon' => 'heroicon-o-academic-cap',
|
||
'sort_order' => 5,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'Education Technology',
|
||
'content' => 'Developed corporate education applications for the learning infrastructure of American Culture College.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Bildungstechnologie',
|
||
'content' => 'Für die Bildungsinfrastruktur des American Culture College wurden unternehmerische Lernanwendungen entwickelt.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2019,
|
||
'title' => 'Gaziantep Teknopark',
|
||
'content' => 'Gaziantep Teknopark bünyesinde Ar-Ge ve yazılım geliştirme faaliyetlerini sürdürecek şekilde şube açtı.',
|
||
'color' => '#27ae60',
|
||
'icon' => 'heroicon-o-building-office-2',
|
||
'sort_order' => 6,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'Gaziantep Technopark',
|
||
'content' => 'Opened a branch at Gaziantep Technopark to continue R&D and software development operations.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Gaziantep Technopark',
|
||
'content' => 'Eröffnung einer Niederlassung im Gaziantep Technopark zur Fortführung von F&E- und Softwareentwicklungsaktivitäten.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2019,
|
||
'title' => 'HERE Maps Hackathon',
|
||
'content' => 'Almanya menşeli HERE Maps\'in Türkiye genelinde düzenlediği hackathon\'da birincilik ödülünü kazandı; konum teknolojileri alanındaki yetkinliğimizi ulusal düzeyde tescilledik.',
|
||
'color' => '#1abc9c',
|
||
'icon' => 'heroicon-o-trophy',
|
||
'sort_order' => 7,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'HERE Maps Hackathon',
|
||
'content' => 'Won first place in the nationwide hackathon organized in Turkey by Germany-based HERE Maps, affirming our expertise in location technologies.',
|
||
],
|
||
'de' => [
|
||
'title' => 'HERE Maps Hackathon',
|
||
'content' => 'Erster Platz beim landesweiten Hackathon von HERE Maps (Deutschland) in der Türkei — ein Beleg unserer Kompetenz in Geolokationstechnologien.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2020,
|
||
'title' => 'Otto Planner 2020',
|
||
'content' => 'Almanya\'nın Bochum kentinde faaliyet gösteren P-D Refractories GmbH için Otto Planner 2020 uygulamasını geliştirdi ve şirketin dijital dönüşüm sürecini başlattı.',
|
||
'color' => '#8e44ad',
|
||
'icon' => 'heroicon-o-light-bulb',
|
||
'sort_order' => 8,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'Otto Planner 2020',
|
||
'content' => 'Developed the Otto Planner 2020 application for P-D Refractories GmbH in Bochum, Germany, and initiated the company\'s digital transformation.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Otto Planner 2020',
|
||
'content' => 'Entwicklung der Anwendung Otto Planner 2020 für P-D Refractories GmbH in Bochum und Einleitung der digitalen Transformation des Unternehmens.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2021,
|
||
'title' => 'PDLC Smart Glass',
|
||
'content' => 'Hollanda\'da faaliyet gösteren HaHa Group BV için PDLC Smart Glass ürünlerine yönelik e-ticaret altyapısı ve dijital satış kanallarını geliştirdi.',
|
||
'color' => '#2980b9',
|
||
'icon' => 'heroicon-o-globe-alt',
|
||
'sort_order' => 9,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'PDLC Smart Glass',
|
||
'content' => 'Built e-commerce infrastructure and digital sales channels for PDLC Smart Glass products for HaHa Group BV, based in the Netherlands.',
|
||
],
|
||
'de' => [
|
||
'title' => 'PDLC Smart Glass',
|
||
'content' => 'Aufbau der E-Commerce-Infrastruktur und digitaler Vertriebskanäle für PDLC Smart Glass-Produkte der HaHa Group BV (Niederlande).',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2022,
|
||
'title' => 'Dijimind Akademi',
|
||
'content' => 'Dijimind Akademi ile eğitim teknolojileri alanında dijital öğrenme platformları ve akademik içerik altyapısı çözümleri geliştirdi.',
|
||
'color' => '#16a085',
|
||
'icon' => 'heroicon-o-academic-cap',
|
||
'sort_order' => 10,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'Dijimind Academy',
|
||
'content' => 'Partnered with Dijimind Academy to deliver digital learning platforms and academic content infrastructure solutions in education technology.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Dijimind Akademie',
|
||
'content' => 'Gemeinsam mit Dijimind Akademi wurden digitale Lernplattformen und Infrastrukturlösungen für akademische Inhalte im EdTech-Bereich realisiert.',
|
||
],
|
||
],
|
||
],
|
||
[
|
||
'year' => 2023,
|
||
'title' => 'Stellar Construction',
|
||
'content' => 'Rusya\'nın Moskova merkezli, endüstriyel inşaat alanında faaliyet gösteren Ant Yapı ortaklığına sahip Stellar Construction için QA, QC ve QMS (kalite yönetim sistemi) uygulaması geliştirildi. Proje, Rusya\'nın çeşitli şantiye sahalarında başarılı bir şekilde kullanılmaktadır.',
|
||
'color' => '#c0392b',
|
||
'icon' => 'heroicon-o-building-office-2',
|
||
'sort_order' => 11,
|
||
'translations' => [
|
||
'en' => [
|
||
'title' => 'Stellar Construction',
|
||
'content' => 'A QA, QC, and QMS (quality management system) application was developed for Stellar Construction, a Moscow-based industrial construction company and partner of Ant Yapı. The project is successfully deployed across multiple construction sites throughout Russia.',
|
||
],
|
||
'de' => [
|
||
'title' => 'Stellar Construction',
|
||
'content' => 'Für Stellar Construction, ein in Moskau ansässiges Industriebauunternehmen und Partner von Ant Yapı, wurde eine QA-, QC- und QMS-Anwendung (Qualitätsmanagementsystem) entwickelt. Das Projekt wird erfolgreich auf zahlreichen Baustellen in Russland eingesetzt.',
|
||
],
|
||
],
|
||
],
|
||
];
|
||
|
||
foreach ($items as $itemData) {
|
||
$translations = $itemData['translations'] ?? [];
|
||
unset($itemData['translations']);
|
||
|
||
$item = CompanyHistoryItem::updateOrCreate(
|
||
['year' => $itemData['year'], 'sort_order' => $itemData['sort_order']],
|
||
array_merge($itemData, ['is_active' => true, 'position' => null])
|
||
);
|
||
|
||
foreach ($translations as $langCode => $fields) {
|
||
foreach ($fields as $fieldName => $value) {
|
||
$item->setTranslation($fieldName, $langCode, $value, 'published');
|
||
}
|
||
}
|
||
}
|
||
|
||
// Eski birleşik 2019 kaydı (sort_order çakışması) varsa kaldır
|
||
CompanyHistoryItem::query()
|
||
->where('year', 2019)
|
||
->where('title', 'Teknopark ve Hackathon')
|
||
->delete();
|
||
}
|
||
}
|