@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
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.