@php $statusOptions = [ ['value' => 'active', 'label' => 'Aktif'], ['value' => 'inactive', 'label' => 'Pasif'], ['value' => 'blocked', 'label' => 'Engelli'], ['value' => 'potential', 'label' => 'Potansiyel'], ]; $priorityOptions = [['value' => '1', 'label' => 'Öncelikli'], ['value' => '0', 'label' => 'Normal']]; $genderOptions = [['value' => 'male', 'label' => 'Erkek'], ['value' => 'female', 'label' => 'Kadın'], ['value' => 'other', 'label' => 'Diğer']]; $contactMethods = [['value' => 'email', 'label' => 'E-posta'], ['value' => 'phone', 'label' => 'Telefon'], ['value' => 'sms', 'label' => 'SMS']]; @endphp {{ $customer->initials }} {{ $customer->first_name }} {{ $customer->last_name }} @if($customer->priority) @endif {{ $customer->status_label }} ID: #{{ $customer->id }} @if($customer->blacklisted) KARA LİSTE @endif
TOPLAM SATIŞ {{ number_format($financial['total_spent'], 0, ',', '.') }} ₺
ÖDENEN {{ number_format($financial['total_paid'], 0, ',', '.') }} ₺
BAKİYE {{ number_format($financial['balance'], 0, ',', '.') }} ₺
{{-- Print button removed as requested --}}
@csrf
Not
Arama
WhatsApp
E-posta
Toplantı
SMS
Teklif
Ödeme
Şikayet
Ziyaret
TUTAR
Dosya Ekle (Yakında)
MÜŞTERİ ETKİNLİK AKIŞI
Toplam: {{ $activityStats['total'] ?? 0 }}
Açık Şikayetler: {{ $activityStats['complaints'] ?? 0 }}
@forelse($recentActivities as $activity) @php $icon = match($activity->activity_type) { 'call' => 'phone', 'email' => 'envelope', 'meeting' => 'handshake', 'note' => 'sticky-note', 'booking' => 'cart-shopping', 'complaint' => 'triangle-exclamation', 'whatsapp' => 'whatsapp', 'sms' => 'comment-sms', 'offer' => 'tag', 'payment' => 'credit-card', 'visit' => 'map-marker-alt', default => 'circle-dot' }; $color = match($activity->activity_type) { 'call' => '#3b82f6', 'email' => '#ec4899', 'meeting' => '#10b981', 'note' => '#f59e0b', 'booking' => '#6366f1', 'complaint' => '#ef4444', 'whatsapp' => '#22c55e', 'sms' => '#8b5cf6', 'offer' => '#d946ef', 'payment' => '#10b981', 'visit' => '#64748b', default => '#64748b' }; $isBrandIcon = $activity->activity_type === 'whatsapp'; @endphp
{{ strtoupper($activity->activity_type_label) }} @if($activity->subject)
{{ $activity->subject }}
@endif
{{ $activity->activity_date->diffForHumans() }}

{{ $activity->description }}

@if($activity->location || $activity->meeting_link || $activity->reference_no)
@if($activity->location) {{ $activity->location }} @endif @if($activity->meeting_link) Toplantıya Katıl @endif @if($activity->reference_no) #{{ $activity->reference_no }} @endif
@endif
{{ $activity->performedBy?->first_name ?: 'Sistem' }} @if($activity->status) {{ $activity->status_label }} @endif
@empty

Henüz bir etkinlik kaydedilmemiş.

@endforelse
Profil ve Kimlik Bilgileri
{{ $customer->first_name }}
{{ $customer->middle_name ?: '—' }}
{{ $customer->last_name }}
{{ $customer->national_id ?: '—' }}
{{ $customer->gender ? ($genderOptions[array_search($customer->gender, array_column($genderOptions, 'value'))]['label'] ?? '—') : '—' }}
{{ $customer->birth_date ? $customer->birth_date->format('d.m.Y') : '—' }}
{{ $customer->birth_place ?: '—' }}
{{ strtoupper($customer->nationality ?: 'TR') }}
İletişim ve Adres Bilgileri
{{ $customer->phone ?: '—' }}
{{ $customer->phone_alt ?: '—' }}
{{ is_array($customer->emails) ? ($customer->emails[0] ?? '—') : ($customer->emails ?: '—') }}
{{ $customer->email_alt ?: '—' }}
{{ $customer->address ?: '—' }}
@if($customer->customer_type === 'corporate')
Kurumsal Şirket Bilgileri
{{ $customer->company_name ?: '—' }}
{{ $customer->company_tax_number ?: '—' }}
{{ $customer->company_tax_office ?: '—' }}
@endif
SİSTEM BİLGİLERİ
{{ $customer->priority_label }} {{ $customer->customer_type === 'corporate' ? 'Kurumsal' : 'Bireysel' }}
ATANMIŞ TEMSİLCİ
@if($customer->assignedAgent)
{{ $customer->assignedAgent->full_name }}
Satış Temsilcisi
@else
Atanmamış
@endif
DAHİLİ NOTLAR
{{ $customer->internal_notes ?: 'Notlar...' }}
@forelse($customer->reservations as $res)
#{{ $res->id }}
{{ $res->status_label }}
{{ $res->product_title }}
{{ $res->start_date ? $res->start_date->format('d.m.Y') : '—' }}
{{ number_format($res->total_amount, 2, ',', '.') }} {{ $res->currency }}
@empty
Kayıt bulunamadı.
@endforelse
Döküman Yükle
@csrf
Mevcut Dökümanlar
@forelse($customer->customerDocuments as $doc)
{{ $doc->original_name }}
{{ $doc->type?->name }} • {{ $doc->created_at->format('d.m.Y') }}
@empty
Henüz döküman bulunmuyor.
@endforelse
@forelse($customer->passengers as $passenger)
{{ $passenger->initials }}
{{ $passenger->full_name }}
@empty
Yolcu kaydı yok.
@endforelse
Özel Bilgiler
@foreach($definitions as $def) @php $val = $customer->getCustomFieldValue($def->field_key); @endphp
{{ $val ?: '—' }}
@endforeach

{{ number_format($financial['total_spent'], 2, ',', '.') }} ₺

{{ number_format($financial['total_paid'], 2, ',', '.') }} ₺

{{ number_format($financial['balance'], 2, ',', '.') }} ₺

Fatura ve Finansal Detaylar
{{ $customer->billing_address ?: '—' }}
{{ $customer->billing_email ?: '—' }}
{{ $customer->billing_tax_office ?: '—' }}
{{ $customer->billing_tax_number ?: '—' }}
{{ number_format($customer->credit_limit ?: 0, 0, ',', '.') }} ₺
{{ $customer->payment_term_days ?: 0 }} gün
Güncelleme: {{ $customer->updated_at->format('d.m.Y H:i') }}