@extends('agency.layouts.app') @section('title', 'Satış Detayı – ' . $reservation->reservation_code) @section('page_title', 'Satış Detayı') @push('styles') @endpush @section('content')
{{-- Breadcrumb --}}
Satışlar {{ $reservation->reservation_code }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Hero --}}
📋 {{ $reservation->reservation_code }}
{{ $reservation->productType?->name ?? 'Manuel Satış' }}
{{ $reservation->reservable?->name ?? ($reservation->product?->name ?? 'Ürün Seçilmemiş') }}
{{ $reservation->start_date->format('d.m.Y') }}{{ $reservation->end_date ? ' – ' . $reservation->end_date->format('d.m.Y') : '' }} {{ $reservation->total_participants }} Kişi @if($reservation->assignedAgent) {{ $reservation->assignedAgent->full_name }} @endif
{{ $reservation->status_label }} {{ $reservation->payment_status_label }} {{ $reservation->source }}
{{-- Ürün / Hizmet Bilgileri --}}
Ürün / Hizmet Bilgileri
Hizmet Türü
{{ $reservation->productType?->name ?? 'Manuel Giriş' }}
Ürün / Paket Adı
{{ $reservation->reservable?->name ?? ($reservation->product?->name ?? '—') }}
@if($reservation->product?->code)
Ürün Kodu
{{ $reservation->product->code }}
@endif
Birim Fiyat
{{ number_format($reservation->unit_price, 2) }} {{ $reservation->currency }}
{{-- Müşteri Bilgileri --}}
Müşteri Bilgileri
Adı Soyadı
{{ $reservation->customer?->full_name ?? '—' }}
Telefon
{{ $reservation->customer?->phone ?? '—' }}
E-posta
{{ $reservation->customer?->email ?? '—' }}
Tip
{{ $reservation->customer?->customer_type_label ?? '—' }}
@if($reservation->customer) Müşteri Kartını Aç @endif
{{-- Satış Detayları --}}
Satış Detayları
Başlangıç
{{ $reservation->start_date->format('d.m.Y') }}
Bitiş
{{ $reservation->end_date?->format('d.m.Y') ?? '—' }}
Alınış Saati
{{ $reservation->pickup_time?->format('d.m.Y H:i') ?? '—' }}
Alınış Noktası
{{ $reservation->pickup_location ?? '—' }}
Bırakılış
{{ $reservation->dropoff_location ?? '—' }}
Uçuş No
{{ $reservation->flight_number ?? '—' }}
Yetişkin
{{ $reservation->adult_count }}
Çocuk
{{ $reservation->child_count }}
Bebek
{{ $reservation->infant_count }}
{{-- Hizmet Özel Alanları --}} @if($extraFields && (array) $reservation->extra_data)
{{ $productType?->name }} Detayları
@foreach($extraFields as $field) @php $val = data_get($reservation->extra_data, $field['key']); @endphp @if($val !== null && $val !== '')
{{ $field['label'] }}
@if($field['type'] === 'boolean') {{ $val ? 'Evet' : 'Hayır' }} @elseif($field['type'] === 'select') {{ $field['options'][$val] ?? $val }} @else {{ $val }} @endif
@endif @endforeach
@endif {{-- Notlar --}} @if($reservation->customer_note || $reservation->internal_note)
Notlar
@if($reservation->customer_note)
Müşteri Notu
{{ $reservation->customer_note }}
@endif @if($reservation->internal_note)
Dahili Not
{{ $reservation->internal_note }}
@endif
@endif
{{-- SAĞ PANEL --}}
{{-- Hızlı Eylemler --}}
Hızlı Eylemler
Düzenle @if($reservation->isPending())
@csrf
@endif @if(!$reservation->isCancelled()) @endif @if(!$reservation->isPaid()) @endif Listeye Dön
@csrf @method('DELETE')
{{-- Ödeme Özeti --}}
Ödeme Özeti
Ara Toplam{{ number_format($reservation->subtotal ?? $reservation->total_amount, 2, '.', ',') }} {{ $reservation->currency }}
@if($reservation->discount_amount > 0)
İndirim- {{ number_format($reservation->discount_amount, 2, '.', ',') }}
@endif @if($reservation->tax_amount > 0)
KDV+ {{ number_format($reservation->tax_amount, 2, '.', ',') }}
@endif
Toplam{{ number_format($reservation->total_amount, 2, '.', ',') }} {{ $reservation->currency }}
Ödenen{{ number_format($reservation->paid_amount, 2, '.', ',') }}
Kalan{{ number_format($reservation->remaining_amount, 2, '.', ',') }}
{{-- Audit --}}
Kayıt Bilgisi
Oluşturan
{{ $reservation->creator?->full_name ?? '—' }}
Oluşturulma
{{ $reservation->created_at->format('d.m.Y H:i') }}
@if($reservation->confirmed_at)
Onaylanma
{{ $reservation->confirmed_at->format('d.m.Y H:i') }}
@endif @if($reservation->cancelled_at)
İptal Tarihi
{{ $reservation->cancelled_at->format('d.m.Y H:i') }}
İptal Nedeni
{{ $reservation->cancellation_reason ?? '—' }}
@endif
{{-- det-wrap --}} {{-- İptal Modal --}} {{-- Ödeme Modal --}}
@endsection @push('scripts') @endpush