@php $managedAccess = app(\App\Services\BusinessUserAccessService::class); $canCreateManaged = $managedAccess->hasCapability($user,'corporate.customers.create') && $managedAccess->hasCapability($user,'corporate.customers.primary_user.create'); $canUpdateManaged = $managedAccess->hasCapability($user,'corporate.customers.update'); $canStatusManaged = $managedAccess->hasCapability($user,'corporate.customers.status.update'); $canDeleteManaged = $managedAccess->hasCapability($user,'corporate.customers.delete'); @endphp
Toplam{{ $managedCustomerSummary['total'] ?? 0 }}
Aktif{{ $managedCustomerSummary['active'] ?? 0 }}
Pasif{{ $managedCustomerSummary['inactive'] ?? 0 }}

Müşteriler

@if($canCreateManaged)@endif
@if($customerSearch!==''||$customerStatus!=='')@endif
@forelse($managedCustomers as $managedCustomer) @empty @endforelse
MüşteriYetkili / İletişimŞehirNFCStokQRKullanıcıDurumİşlem
{{ $managedCustomer->name }}Bireysel · #{{ $managedCustomer->id }} {{ $managedCustomer->contact_name ?: '-' }}{{ $managedCustomer->phone ?: '-' }} · {{ $managedCustomer->email ?: '-' }} {{ collect([$managedCustomer->city,$managedCustomer->district])->filter()->join(' / ') ?: '-' }} {{ $managedCustomer->cards_count }} {{ $managedCustomer->stock_cards_count }} {{ $managedCustomer->linked_qrs_count }} {{ $managedCustomer->business_users_count }} {{ $managedCustomer->status==='active'?'AKTİF':'PASİF' }}
@if($canUpdateManaged)@endif @if($canStatusManaged)
@csrf
@endif @if($canDeleteManaged)
@csrf @method('DELETE')
@endif
Filtreye uygun müşteri kaydı bulunamadı.
@forelse($managedCustomers as $managedCustomer)
{{ $managedCustomer->name }}Bireysel · #{{ $managedCustomer->id }}
{{ $managedCustomer->status==='active'?'AKTİF':'PASİF' }}
Yetkili / İletişim{{ $managedCustomer->contact_name ?: '-' }}
Telefon{{ $managedCustomer->phone ?: '-' }}
E-posta{{ $managedCustomer->email ?: '-' }}
Şehir / İlçe{{ collect([$managedCustomer->city,$managedCustomer->district])->filter()->join(' / ') ?: '-' }}
NFC{{ $managedCustomer->cards_count }}
QR{{ $managedCustomer->linked_qrs_count }}
Stok{{ $managedCustomer->stock_cards_count }}
Kullanıcı{{ $managedCustomer->business_users_count }}
@if($canUpdateManaged)@endif @if($canStatusManaged)
@csrf
@endif @if($canDeleteManaged)
@csrf @method('DELETE')
@endif
@empty
Filtreye uygun müşteri kaydı bulunamadı.
@endforelse
@if(method_exists($managedCustomers,'links'))
{{ $managedCustomers->links() }}
@endif