@php // Desteklenen placeholder tipleri ve açıklamaları $placeholderTypes = [ 'text' => ['label' => __('placeholder-picker.type_text'), 'examples' => ['company_name', 'title', 'description', 'subtitle']], 'email' => ['label' => __('placeholder-picker.type_email'), 'examples' => ['contact', 'support', 'info', 'sales']], 'url' => ['label' => __('placeholder-picker.type_url'), 'examples' => ['website', 'facebook', 'twitter', 'linkedin']], 'tel' => ['label' => __('placeholder-picker.type_tel'), 'examples' => ['phone', 'mobile', 'fax', 'hotline']], 'number' => ['label' => __('placeholder-picker.type_number'), 'examples' => ['price', 'quantity', 'age', 'year']], 'textarea' => ['label' => __('placeholder-picker.type_textarea'), 'examples' => ['content', 'about', 'description', 'notes']], 'richtext' => ['label' => __('placeholder-picker.type_richtext'), 'examples' => ['content', 'article', 'post', 'body']], 'markdown' => ['label' => __('placeholder-picker.type_markdown'), 'examples' => ['content', 'documentation', 'readme']], 'code' => ['label' => __('placeholder-picker.type_code'), 'examples' => ['snippet', 'example', 'script']], 'date' => ['label' => __('placeholder-picker.type_date'), 'examples' => ['publish_date', 'event_date', 'birthday']], 'datetime' => ['label' => __('placeholder-picker.type_datetime'), 'examples' => ['created_at', 'updated_at', 'event_time']], 'time' => ['label' => __('placeholder-picker.type_time'), 'examples' => ['start_time', 'end_time', 'opening_time']], 'image' => ['label' => __('placeholder-picker.type_image'), 'examples' => ['logo', 'banner', 'avatar', 'thumbnail']], 'images' => ['label' => __('placeholder-picker.type_images'), 'examples' => ['gallery', 'photos', 'slider_images']], 'file' => ['label' => __('placeholder-picker.type_file'), 'examples' => ['document', 'pdf', 'download']], 'files' => ['label' => __('placeholder-picker.type_files'), 'examples' => ['documents', 'attachments']], 'select' => ['label' => __('placeholder-picker.type_select'), 'examples' => ['category', 'status', 'type']], 'multiselect' => ['label' => __('placeholder-picker.type_multiselect'), 'examples' => ['tags', 'categories', 'features']], 'checkbox' => ['label' => __('placeholder-picker.type_checkbox'), 'examples' => ['is_active', 'is_featured', 'is_published']], 'radio' => ['label' => __('placeholder-picker.type_radio'), 'examples' => ['gender', 'type', 'status']], 'toggle' => ['label' => __('placeholder-picker.type_toggle'), 'examples' => ['is_active', 'is_enabled', 'is_visible']], 'color' => ['label' => __('placeholder-picker.type_color'), 'examples' => ['primary_color', 'background_color', 'text_color']], 'tags' => ['label' => __('placeholder-picker.type_tags'), 'examples' => ['tags', 'keywords', 'labels']], ]; // Custom klasöründeki blade dosyalarını tespit et ve placeholder types'a ekle $customPlaceholders = []; $customPath = resource_path('views/components/custom'); if (is_dir($customPath)) { $files = scandir($customPath); foreach ($files as $file) { // . ve .. dizinlerini atla if ($file === '.' || $file === '..') { continue; } // Sadece .blade.php uzantılı dosyaları al $filePath = $customPath . DIRECTORY_SEPARATOR . $file; if (is_file($filePath) && str_ends_with($file, '.blade.php')) { $name = str_replace('.blade.php', '', $file); $customPlaceholders[] = $name; } } sort($customPlaceholders); // Custom placeholder'ları placeholder types'a ekle if (!empty($customPlaceholders)) { $placeholderTypes['custom'] = [ 'label' => __('placeholder-picker.type_custom'), 'examples' => $customPlaceholders ]; } } // Field name'i component'ten al $fieldName = $fieldName ?? 'html_content'; @endphp
{{ __('placeholder-picker.title') }}

{{ __('placeholder-picker.special_placeholders') }}

{page.content} {page.title} {page.excerpt} {menu} {staticMenu}

{{ __('placeholder-picker.no_results') }}