{{-- ─── List View Partial ────────────────────────────────────────────── --}}
| KOD / TARİH | MÜŞTERİ | HİZMET | REZ. TARİHİ | KİŞİ | TUTAR | DURUM |
|---|---|---|---|---|---|---|
|
#{{ $r->sale_code }}
{{ $r->created_at->format('d.m.Y H:i') }}
|
{{-- Customer --}}
{{ strtoupper(substr($r->customer?->first_name, 0, 1)) }}{{ strtoupper(substr($r->customer?->last_name, 0, 1)) }}
{{ $r->customer?->full_name ?? '—' }}
{{ $r->customer?->phone }}
|
{{-- Service --}}
@php $svc = $r->service_summary; @endphp
@if($r->productType?->icon)
@endif
{{ $r->productType?->name ?? '—' }}
@if($svc)
{{-- Tura / kalkışa bağlı: tur adı + kalkış + kod --}}
{{ $svc['name'] ?: '—' }}
@if($svc['has_departure'])
Kayıtlı Kalkış
@else
Özel Tarih
@endif
@if($svc['dep_code'])
{{ $svc['dep_code'] }}
@endif
@if(!is_null($svc['remaining']))
{{ $svc['remaining'] }} boş
@endif
@else
{{-- Hiçbir hizmete bağlı değil: yalnızca satış başlığı --}}
{{ $r->title ?: '—' }}
@endif
|
{{-- Date --}}
{{ $r->start_date?->format('d.m.Y') }}
@if($r->end_date && $r->end_date != $r->start_date)
→ {{ $r->end_date->format('d.m.Y') }}
@endif
|
{{-- Pax --}}
{{ $r->total_pax }} Kişi
{{ $r->adult_count }}Y /
{{ $r->child_count }}Ç /
{{ $r->infant_count }}B
|
{{-- Amount --}}
{{ number_format($r->total_amount, 2, ',', '.') }} {{ $r->currency }}
@if($r->remaining_amount > 0)
Kalan: {{ number_format($r->remaining_amount, 2, ',', '.') }}
@else
Ödendi
@endif
|
{{-- Status --}}
{{ $r->status_label }} | {{-- Görüntüle/Düzenle butonları kaldırıldı: satıra tıklayınca quick-view açılır. Ayrı show/edit sayfaları (route + blade) yedek olarak duruyor. --}}
Kayıt BulunamadıArama kriterlerinize uygun satış kaydı yok. |
||||||