{{-- Tur kartı. $variant: 'vertical' (ana sayfa vitrini) | 'horizontal' (liste sayfası, image.png düzeni) Parametreler: $tour, $type (ProductType), $variant --}} @php $variant = $variant ?? 'vertical'; $type = $type ?? $tour->site_type ?? null; $isDayTour = $type?->code === 'gunubirlik-tur'; $detailUrl = ($preview ?? false) || ! $type ? '#' : route('customer.agency.tours.detail', ['agency' => $agency->slug, 'type' => $type->route_slug, 'slug' => $tour->slug]); $cover = $tour->cover_image_url; $price = $tour->starting_price; $currency = $tour->currency ?? 'TRY'; $durationText = $isDayTour ? ($tour->duration_hours ? $tour->duration_hours . ' Saat' : 'Günübirlik') : (($tour->days ?? $tour->duration) ? ($tour->days ?? $tour->duration) . ' Gün' . ($tour->nights ? ' ' . $tour->nights . ' Gece' : '') : null); $location = $isDayTour ? $tour->departureCity?->name : ($tour->arrivalCity?->name ?? $tour->departureCity?->name); @endphp @if($variant === 'horizontal')
@if($cover) {{ $tour->name }} @else @endif @if($tour->is_bestseller) Çok Satan @elseif($tour->is_new) Yeni @endif

{{ $tour->name }}

@if(($tour->rating_count ?? 0) > 0) {{ number_format((float) $tour->rating_average, 1, ',', '') }} {{ $tour->rating_count }} yorum @endif
@if($location) {{ $location }}@endif @if($durationText) {{ $durationText }}@endif @if($tour->has_guide) Rehberli@endif
@if($tour->short_description)

{{ \Illuminate\Support\Str::limit(strip_tags((string) $tour->short_description), 140) }}

@endif @if(!empty($tour->highlights) && is_array($tour->highlights)) @endif
@if($tour->refundable ?? false) Ücretsiz iptal @endif @if($tour->instant_booking ?? false) Anında onay @endif
@if($price > 0) kişi başı @include('site.templates.voyage.partials.price', ['amount' => $price, 'currency' => $currency]) 'den itibaren @else Fiyat Sorunuz @endif
İncele
@else
@if($cover) {{ $tour->name }} @else @endif @if($tour->is_featured) Öne Çıkan @elseif($tour->is_new) Yeni @endif

{{ $tour->name }}

@if($location) {{ $location }}@endif @if($durationText) {{ $durationText }}@endif
@if($price > 0) kişi başı @include('site.templates.voyage.partials.price', ['amount' => $price, 'currency' => $currency]) @else Fiyat Sorunuz @endif
@endif