@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 ₺ TRY $ USD € EUR £ GBP Acil/Önemli İşaretle Dosya Ekle (Yakında) Kaydet 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 Adı {{ $customer->first_name }} İkinci Adı {{ $customer->middle_name ?: '—' }} Soyadı {{ $customer->last_name }} TC / Kimlik No {{ $customer->national_id ?: '—' }} Cinsiyet {{ $customer->gender ? ($genderOptions[array_search($customer->gender, array_column($genderOptions, 'value'))]['label'] ?? '—') : '—' }} Doğum Tarihi {{ $customer->birth_date ? $customer->birth_date->format('d.m.Y') : '—' }} Doğum Yeri {{ $customer->birth_place ?: '—' }} Uyruk {{ strtoupper($customer->nationality ?: 'TR') }} İletişim ve Adres Bilgileri Telefon {{ $customer->phone ?: '—' }} Alternatif Telefon {{ $customer->phone_alt ?: '—' }} E-posta {{ is_array($customer->emails) ? ($customer->emails[0] ?? '—') : ($customer->emails ?: '—') }} Alternatif E-posta {{ $customer->email_alt ?: '—' }} Açık Adres {{ $customer->address ?: '—' }} @if($customer->customer_type === 'corporate') Kurumsal Şirket Bilgileri Şirket Adı / Unvan {{ $customer->company_name ?: '—' }} Vergi No {{ $customer->company_tax_number ?: '—' }} Vergi Dairesi {{ $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 Tip Seçin... @foreach($documentTypes as $type) {{ $type->name }} @endforeach Yükle 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 {{ $def->label }} {{ $val ?: '—' }} @endforeach HARCAMA {{ number_format($financial['total_spent'], 2, ',', '.') }} ₺ ÖDENEN {{ number_format($financial['total_paid'], 2, ',', '.') }} ₺ BAKİYE {{ number_format($financial['balance'], 2, ',', '.') }} ₺ Fatura ve Finansal Detaylar Fatura Adresi {{ $customer->billing_address ?: '—' }} Fatura E-posta {{ $customer->billing_email ?: '—' }} Vergi Dairesi {{ $customer->billing_tax_office ?: '—' }} Vergi No / TC {{ $customer->billing_tax_number ?: '—' }} Kredi Limiti {{ number_format($customer->credit_limit ?: 0, 0, ',', '.') }} ₺ Vade Günü {{ $customer->payment_term_days ?: 0 }} gün Güncelleme: {{ $customer->updated_at->format('d.m.Y H:i') }} Kapat Yeni Rezervasyon
{{ $activity->description }}
Henüz bir etkinlik kaydedilmemiş.