@php
$badge = $d['badge'];
$cap = $d['capacity'];
$isCustom = (bool) ($d['is_custom_sale'] ?? false);
$isCancelled = $badge['key'] === 'cancelled';
$isTerminal = in_array($badge['key'], ['cancelled', 'completed']);
$isGuaranteed = in_array($badge['key'], ['auto_guaranteed', 'manual_guaranteed']);
$ringColor = $cap['occupancy'] >= 80 ? '#16a34a' : ($cap['occupancy'] >= 40 ? '#334155' : '#f59e0b');
@endphp
{{ $d['type_label'] }}
@if($d['is_private'] ?? false)
ÖZEL@endif
{{ $d['tour_name'] }}
@if($d['tour_code'])
{{ $d['tour_code'] }}@endif
{{ $isCustom ? $cap['used'] : $cap['used'] . '/' . ($cap['total'] ?: '∞') }}
{{ $isCustom ? 'YOLCU' : 'KOLTUK' }}
{{ $badge['label'] }}
@if($d['services'])
@endif
@if(($d['resource_count'] ?? 0) > 0)
{{ $d['resource_count'] }} kaynak
· {{ number_format($d['resource_cost'], 0, ',', '.') }}₺ maliyet
@endif