@extends("ui-theme." . env('THEME_FOLDER') . ".layout.ui-main") @section('content') @php $breadcrumbType = $page->breadcrumb_type ?? 'with_image'; $rawHeaderImage = $page->header_image ?? '../images/site/sertifikalar-head.jpg'; $isMainPage = isset($page) && isset($page->is_main_page) && $page->is_main_page; $noBreadcrumb = !$isMainPage && ($breadcrumbType === 'without_image' || $breadcrumbType === 'none'); // URL temizleme işlemi $headerImage = $rawHeaderImage; if (!empty($rawHeaderImage) && $rawHeaderImage !== '../images/site/sertifikalar-head.jpg') { // @ işaretini kaldır $headerImage = ltrim($rawHeaderImage, '@'); // Domain ismini kaldır ve sadece storage path'ini al if (strpos($headerImage, '/storage/') !== false) { $headerImage = '/' . substr($headerImage, strpos($headerImage, 'storage/')); } elseif (!str_starts_with($headerImage, '/') && !str_starts_with($headerImage, 'http')) { $headerImage = '/' . $headerImage; } // Sadece path'i kullan (relative URL) // $headerImage zaten /storage/... formatında } else { // Default image için $headerImage = asset($rawHeaderImage); } @endphp @php $hasParent = $page->menu()->with('parent')->first()?->parent; $parentName = $hasParent ? $hasParent->name : __('ui.home'); $parentUrl = $hasParent ? '#' : '/'; @endphp @if($breadcrumbType === 'with_image')

{{ $page->title }}

@elseif($breadcrumbType === 'without_image')
@endif
@foreach($components as $component) @php($data = $component['data']) @php($componentConfig = \App\Services\ComponentService::getComponent($component->component_id)) @if($componentConfig && isset($componentConfig['component'])) @include("ui-theme." . env('THEME_FOLDER') . "." . $componentConfig['component']) @endif @endforeach
Scroll
@endsection