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