@php $themes = $digitalCardThemes ?? collect(); $profile = $digitalCardProfile; $selectedKey = (string) ($profile->selected_template_key ?? ''); $selectedId = (int) ($profile->selected_template_id ?? 0); // Use stable central category IDs, not display names; translated/renamed // categories keep their themes in place and Admin/Account order stays aligned. $themesByCategory = $themes->groupBy('category_key'); $themeGroups = collect($digitalCardThemeCategoryGroups ?? [['key'=>'ready','title'=>'Hazır Full Temalar']]) ->map(function ($category) use ($themesByCategory) { $key = (string)($category['key'] ?? ''); return [ 'key' => $key, 'title' => (string)($category['title'] ?? ''), 'themes' => $themesByCategory->get($key, collect()), ]; })->values(); $types = $themeGroups->filter(fn($category)=>$category['key']!=='ready')->values(); @endphp

{{ $profile->profile_name ?: 'Dijital Kartvizit' }} · Full Tema Arşivi

Bu arşiv Admin Full Tema sisteminin güncel kayıtlarını kullanır. Tema Önizleme, Admin Studio ile aynı global renderer üzerinden açılır. Bir tema seçildiği veya başka temaya geçildiği anda o anki güncel sürüm hesabınıza bağımsız snapshot olarak alınır.

@if($hasPersonalTheme) @else @endif
@if($hasPersonalTheme)
Kullanılan tema: {{ $profile->selected_template_name ?: $profile->selected_template_key }}Başka bir temada “Bu Temaya Geçiş Yap” dediğinizde profil bilgileriniz korunur; tema tasarımı ve tema butonları yeni snapshot ile değiştirilir.
v{{ $profile->selected_template_version ?: 1 }}
@endif
{{ $digitalCardThemeCount }} / {{ $digitalCardThemeCount }} tema
@forelse($themeGroups as $category) @php $categoryKey = $category['key']; $categoryName = $category['title']; $categoryThemes = $category['themes']; @endphp
{{ $categoryName }}{{ $categoryThemes->count() }}Tema
@foreach($categoryThemes as $theme) @php $isSelected = ($selectedId > 0 && $selectedId === (int)$theme['id']) || ($selectedKey !== '' && hash_equals($selectedKey, (string)$theme['key'])); $actionLabel = $isSelected ? 'Kullanılıyor' : ($hasPersonalTheme ? 'Bu Temaya Geçiş Yap' : 'Bu Temayı Kullan'); $confirmTitle = $hasPersonalTheme ? 'Bu temaya geçiş yapılsın mı?' : 'Bu tema kullanılsın mı?'; $confirmMessage = $hasPersonalTheme ? 'Mevcut kişisel tema tasarımınız ve tema butonlarınız, seçtiğiniz temanın Admin tarafındaki güncel snapshot\'ı ile değiştirilecek. Ad, telefon, e-posta ve diğer profil bilgileriniz korunacak.' : 'Admin arşivindeki temanın şu anki güncel tasarımı ve butonları hesabınıza bağımsız kişisel snapshot olarak oluşturulacak.'; @endphp

{{ $theme['name'] }}

@foreach(($theme['palette'] ?? [$theme['theme_color']]) as $color)@endforeach
{{ $theme['category_name'] }}@if($isSelected)Kullanılıyor@endif
#{{ $theme['id'] }}
Şablon anahtarı{{ $theme['key'] }}
Buton{{ $theme['button_count'] }}
Revizyonv{{ $theme['version'] }}
Tema türü{{ $theme['theme_type'] }}
@if($isSelected) @else
@csrf
@endif
@endforeach @if($categoryThemes->isEmpty())
Bu kategoride henüz seçime açık tema bulunmuyor.
@endif
@empty
Kullanıcı seçimine açık Full Tema bulunamadı.
@endforelse