@extends('shared.vertical', ['title' => 'Müşteri Detayı']) @section('styles') @include('nfc.admin.customers.partials.material3-styles') @endsection @section('content') @php $packageIsActive = $activeSubscription && $activeSubscription->status === 'active' && ($activeSubscription->is_lifetime || !$activeSubscription->expires_at || !$activeSubscription->expires_at->isPast()); $subscriptionStatus = !$activeSubscription ? 'Paket Yok' : match($activeSubscription->status){'active'=>'Aktif','expired'=>'Süresi Doldu','suspended'=>'Pasif','pending'=>'Bekliyor',default=>ucfirst($activeSubscription->status)}; @endphp
{{ $customer->type==='company'?'Bayi':'Bireysel' }}{{ $customer->dealer_enabled ? ' · Bayi Yetkili' : '' }} · #{{ $customer->id }}
| Müşteri | Tip | İl | NFC Kart | Yetkili Kullanıcı | Durum | |
|---|---|---|---|---|---|---|
| {{ $childCustomer->name }} {{ $childCustomer->email ?: '-' }} |
{{ $childCustomer->typeLabel() }} | {{ $childCustomer->city ?: '-' }} | {{ $childCustomer->cards_count }} | {{ $childCustomer->business_users_count }} | {{ $childCustomer->status==='active'?'Aktif':'Pasif' }} | Detay |
| Seç | Kart / QR | Kategori | Durum | Atama / Güncelleme | İşlem |
|---|---|---|---|---|---|
| @if($canDeleteStock)@else—@endif | {{ $stockCard->card_code }}{{ $stockCard->linkedQr?->qr_code ?: 'QR yok' }} · {{ $stockCard->stock_batch ?: 'Parti yok' }}@if($stockCard->label){{ $stockCard->label }}@endif |
{{ $stockCard->stockCategory?->name ?: '-' }}{{ $stockCard->stockCategory?->nfcCategory?->name ?: 'Genel / esnek kategori' }} |
{{ $statusLabel }}{{ $stockCard->customer?->name ? 'Kurulum: '.$stockCard->customer->name : 'Müşteri atanmadı' }}@if($stockCard->claimedBy)Bağlayan: {{ $stockCard->claimedBy->name }}@endif |
{{ $stockCard->created_at?->format('d.m.Y H:i') ?: '-' }}Son değişiklik: {{ $stockCard->updated_at?->format('d.m.Y H:i') ?: '-' }} |
Detay
@if($canDeleteStock)
@endif
|
Bu müşteriye henüz stok kartı ayrılmamış. | |||||