{{-- resources/views/page/agency/themes/default/header.blade.php --}} {{-- Logo --}} @if($agency->logo) @else {{ $agency->name }} @endif {{-- Desktop Navigation --}} Ana Sayfa @if(isset($productTypes) && $productTypes->isNotEmpty()) @if($productTypes->count() === 1) @php $singleProductType = $productTypes->first(); $singleTypeCode = $singleProductType->code; $isTourType = in_array($singleTypeCode, ['kultur-turu', 'gunubirlik-tur']); @endphp @if($singleProductType->icon) @endif {{ $singleProductType->name }} @else Hizmetlerimiz @foreach($productTypes as $productType) @php $typeCode = $productType->code; $isTourType = in_array($typeCode, ['kultur-turu', 'gunubirlik-tur']); $productTypeUrl = $isTourType ? route('customer.agency.tours.list', ['agency' => $agency->slug, 'type' => $typeCode]) : route('customer.agency.show', $agency->slug) . '#' . $productType->slug; @endphp @if($productType->icon) @endif {{ $productType->name }} @endforeach @endif @endif Hakkımızda İletişim Bize Ulaşın {{-- Mobile Menu Toggle --}} {{-- Mobile Navigation --}} Ana Sayfa @if(isset($productTypes) && $productTypes->isNotEmpty()) Hizmetlerimiz @foreach($productTypes as $productType) @php $mobileTypeCode = $productType->code; $mobileIsTourType = in_array($mobileTypeCode, ['kultur-turu', 'gunubirlik-tur']); $mobileProductTypeUrl = $mobileIsTourType ? route('customer.agency.tours.list', ['agency' => $agency->slug, 'type' => $mobileTypeCode]) : route('customer.agency.show', $agency->slug) . '#' . $productType->slug; @endphp @if($productType->icon) @endif {{ $productType->name }} @endforeach @endif Hakkımızda İletişim Bize Ulaşın