@php $statusOptions = [ ['value' => 'active', 'label' => 'Aktif'], ['value' => 'inactive', 'label' => 'Pasif'], ['value' => 'blocked', 'label' => 'Engelli'], ['value' => 'potential', 'label' => 'Potansiyel'], ]; @endphp {{ $supplier->initials }} {{ $supplier->full_name }} @if($supplier->status === 'active') @endif {{ $supplier->status_label }} ID: #SUP-{{ $supplier->id }} @foreach($supplier->type_labels as $tlabel) {{ $tlabel }} @endforeach
FİYAT LİSTELERİ {{ $supplier->priceLists->count() }} Sezon
SORUMLU YETKİLİLER {{ $supplier->responsibles->pluck('name')->implode(', ') ?: '—' }}
@if($supplier->supplier_type === 'hotel') @endif
@php // Kaynak tipi görsel eşlemesi. Resource modelinde accessor yok; renkler // quick-view-drawer'daki .theme-resources avatar renkleriyle aynı tutuldu. $resourceTypeMap = [ 'guide' => ['label' => 'Rehber', 'icon' => 'fas fa-user-tie', 'gradient' => 'linear-gradient(135deg,#3b82f6,#1d4ed8)'], 'vehicle' => ['label' => 'Araç', 'icon' => 'fas fa-bus', 'gradient' => 'linear-gradient(135deg,#10b981,#047857)'], 'captain' => ['label' => 'Kaptan', 'icon' => 'fas fa-id-card', 'gradient' => 'linear-gradient(135deg,#8b5cf6,#6d28d9)'], ]; $resourcesByType = $supplier->resources->groupBy('type'); @endphp {{-- Kaynak ekleme modalı — açılışta body'ye taşınır (drawer kendi stacking context'ini oluşturduğu için kart içinde kalırsa panelin altında görünürdü). --}}
Yeni Kaynak Ekle
Kaynak dış kaynak olarak {{ $supplier->company_name }} tedarikçisine bağlanacak.
{{-- Araç: tek ad/tanım --}} {{-- Rehber/Kaptan: ad + soyad --}}
{{-- Rehber / Kaptan alanları --}}
Rehber / Kaptan Bilgileri
Virgülle ayırın.
{{-- Araç alanları --}}
Maliyet & Durum
@csrf
Not
Arama
WhatsApp
E-posta
Toplantı
ETKİNLİK AKIŞI
@forelse($recentActivities as $activity)
{{ strtoupper($activity->activity_type_label) }} {{ $activity->activity_date->diffForHumans() }}
{{ $activity->subject }}
{!! $activity->description !!}
{{ $activity->performedBy?->full_name ?: 'Sistem' }}
@empty

Henüz etkinlik kaydedilmemiş.

@endforelse
İletişim & Konum
{{ $supplier->phone ?: '—' }}
@if($supplier->emails && count($supplier->emails) > 0)
@foreach($supplier->emails as $email)
{{ $email }}
@endforeach
@endif @if($supplier->phones && count($supplier->phones) > 0)
@foreach($supplier->phones as $ph)
{{ $ph }}
@endforeach
@endif
{{ $supplier->city ?: '—' }}@if($supplier->district), {{ $supplier->district }}@endif ({{ $supplier->country }})
@if($supplier->address)
{{ $supplier->address }}
@endif
Yorum
Düzenle
@if(trim(strip_tags($supplier->notes)) !== '') {!! $supplier->notes !!} @else Yorum eklenmemiş. Düzenlemek için "Genel Bilgiler" sekmesini kullanın. @endif
{{-- Kopyalanabilir fatura bilgileri --}} @include('agency.partials._billing-card', ['rows' => [ ['label' => 'Fatura Ünvanı', 'value' => $supplier->company_name], ['label' => 'VKN / TCKN', 'value' => $supplier->company_tax_number], ['label' => 'Vergi Dairesi', 'value' => $supplier->company_tax_office], ['label' => 'Fatura Vergi No', 'value' => $supplier->billing_tax_number], ['label' => 'Fatura Vergi Dairesi', 'value' => $supplier->billing_tax_office], ['label' => 'Fatura E-posta', 'value' => $supplier->billing_email], ['label' => 'Fatura Adresi', 'value' => trim(($supplier->billing_address ?? '') . ' ' . ($supplier->billing_district ?? '') . ' ' . ($supplier->billing_city ?? ''))], ]])
@if($supplier->supplier_type === 'hotel') @php $fs = $supplier->factSheet; @endphp @endif