@php $badge = $d['badge']; $cap = $d['capacity']; $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['tour_code']){{ $d['tour_code'] }}@endif
{{ $cap['used'] }}/{{ $cap['total'] ?: '∞' }} KOLTUK
{{ $badge['label'] }}
@if($d['start_time'])
{{ $d['start_time'] }}
@endif @if(!is_null($d['days_until']))
@if($d['days_until'] > 0) {{ (int) $d['days_until'] }} gün kaldı @elseif($d['days_until'] === 0) Bugün @else Geçti @endif
@endif
{{ $d['res_count'] }} rezervasyon
{{ $d['pax'] }} yolcu
@if($d['services'])
@endif @if(($d['resource_count'] ?? 0) > 0)
{{ $d['resource_count'] }} kaynak · {{ number_format($d['resource_cost'], 0, ',', '.') }}₺ maliyet
@endif
{{ number_format($d['revenue'], 0, ',', '.') }}₺ CİRO
@if(!$isTerminal && !$isGuaranteed)
@csrf
@endif @if(!$isTerminal)
@csrf
@endif