@extends('site.layout.master') @section('content') @php $banner = $banner ?? null; $bugunuduzenleyenakil = $bugunuduzenleyenakil ?? null; $kurucumesaji = $kurucumesaji ?? null; $markalarimiz = $markalarimiz ?? null; $ekibimiz = $ekibimiz ?? null; $ekol = $ekol ?? null; $katilin = $katilin ?? null; $kurumsalgundem = $kurumsalgundem ?? null; $iletisim = $iletisim ?? null; $heroMedia = !empty($banner?->image) ? asset($banner->image) : ''; $heroMediaPath = parse_url($banner?->image ?? '', PHP_URL_PATH) ?: ''; $heroIsVideo = $heroMedia !== '' && in_array(strtolower(pathinfo($heroMediaPath, PATHINFO_EXTENSION)), ['mp4', 'webm', 'ogg'], true); $brandItems = site_children($markalarimiz); $teamItems = site_children($ekibimiz); $newsItems = site_children($kurumsalgundem); $contactItems = site_children($iletisim); $founderPortrait = site_image_url($kurucumesaji, '', 0, 'kurucu'); $founderSignature = site_image_url($kurucumesaji, '', 1, 'imza'); $manifestoImage = site_image_url($ekol); @endphp
@if($heroIsVideo) @elseif($heroMedia !== '') @endif

{!! $banner?->title ?? '' !!}

{!! $banner?->description ?? '' !!}

{!! $bugunuduzenleyenakil?->title ?? '' !!}

{!! $bugunuduzenleyenakil?->description ?? '' !!}

@if($founderSignature !== '') @endif
{!! $kurucumesaji?->description ?? '' !!}
@if(!empty($kurucumesaji?->title) || !empty($kurucumesaji?->content) || !empty($kurucumesaji?->alternative_content))
@if(!empty($kurucumesaji?->meta_title))
{!! $kurucumesaji?->meta_title ?? '' !!}
@endif @if(!empty($kurucumesaji?->meta_keywords))
{!! $kurucumesaji?->meta_keywords ?? '' !!}
@endif @if(!empty($kurucumesaji?->meta_description))
{!! $kurucumesaji?->meta_description ?? '' !!}
@endif
@endif

{!! $markalarimiz?->title ?? '' !!}

{!! $markalarimiz?->description ?? '' !!}

@forelse($brandItems as $brandItem) @php $brandImage = site_image_url($brandItem); $brandHref = site_href($brandItem->description); @endphp @if($brandImage !== '') @endif @empty @endforelse

{!! $ekibimiz?->title ?? '' !!}

{!! $ekibimiz?->description ?? '' !!}

@forelse($teamItems as $teamItem) @php $teamHref = site_href($teamItem->meta_title); $teamImage = site_image_url($teamItem); $visualClass = match ($loop->iteration) { 3 => ' leadership-card__visual--offset', 4 => ' leadership-card__visual--right', default => '', }; @endphp

{{ $teamItem->title ?? '' }}

{{ $teamItem->description ?? '' }}

@if($teamImage !== '') {{ $teamItem->title ?? '' }} @endif
@empty @endforelse

{!! $ekol?->description ?: ($ekol?->title ?? '') !!}

{!! $ekol?->content ?? '' !!}

{!! $katilin?->title ?? '' !!}

{!! $katilin?->description ?? '' !!}

@csrf
Firma
@foreach($brandItems as $brandItem) @endforeach
@forelse($newsItems as $newsItem) @php $newsBrand = $brandItems->count() ? $brandItems->values()->get($loop->index % $brandItems->count()) : null; $newsCategory = $newsBrand ? 'brand-' . $newsBrand->id : 'all'; $newsCompany = $newsBrand?->title ?? ''; $newsTitle = site_plain_text($newsItem->title ?? ''); $newsDate = site_plain_text($newsItem->description ?? ''); $newsDescription = site_plain_text($newsItem->content ?: $newsItem->alternative_content ?: $newsItem->description); $newsImage = site_image_url($newsItem); @endphp @empty @endforelse

{!! $iletisim?->title ?? '' !!}

{!! $iletisim?->description ?? '' !!}

@forelse($contactItems as $contactItem) @php $contactIcon = site_plain_text($contactItem->title ?? ''); $contactValue = site_plain_text($contactItem->description ?? ''); $contactIcon = $contactIcon !== '' ? $contactIcon : 'info'; $contactType = str_replace('-', '_', \Illuminate\Support\Str::slug($contactIcon)); $contactHref = $contactType === 'mail' ? 'mailto:' . $contactValue : ($contactType === 'call' ? 'tel:' . preg_replace('/[^\d+]/', '', $contactValue) : null); @endphp
@if($contactHref) {{ $contactValue }} @else

{{ $contactValue }}

@endif
@empty @endforelse
@stop @section('css') @stop @section('js') @stop