@extends('nfc.account.console', ['title' => $title ?? 'Kullanıcı Paneli'])
@section('content')
@include('nfc.shared.card-detail-standard')
@include('nfc.shared.linked-card-md3-styles')
@if(session('admin_impersonation.active'))
Admin Görünümü {{ $user->name }} kullanıcısının panelini görüntülüyorsunuz.
@endif
@if($section !== 'reports')
{{ $title ?? 'Kullanıcı Paneli' }} {{ $customer->name }} · {{ $user->accountTypeLabel() }} hesap · {{ $user->name }}
@endif
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if($errors->any())
{{ $errors->first() }}
@endif
@if($section === 'profile')
@elseif($section === 'digital-card-profiles')
@include('nfc.account.digital-card-profiles')
@elseif($section === 'digital-card-themes')
@include('nfc.account.digital-card-themes')
@elseif($section === 'digital-card-analytics')
@include('nfc.account.digital-card-analytics')
@elseif($section === 'digital-card-manage')
@include('nfc.account.digital-card-manage')
@elseif($section === 'security')
@if($canUpdatePassword)
Mevcut Şifre ile Değiştir
@endif
@if($canEmailReset)
İlk Kayıt E-postası ile Şifre Sıfırlama
Sıfırlama kodu yalnızca hesabın ilk oluşturulduğu e-posta adresine gönderilir:
{{ $registrationEmailMasked }}
@if($resetPending)
@endif
@endif
@elseif($section === 'cards')
@if($user->isCorporateAccountMember())
@include('nfc.account.partials.nfc-cards-list-md3')
@endif
@if($cards->isEmpty())
Henüz hesabınıza bağlanmış NFC kartı bulunmuyor.
@else
@foreach($cards as $card)
@php
$rowCategory = $card->effectiveCategory
?? (($card->stockCategory?->is_fixed_category && $card->stockCategory?->nfcCategory)
? $card->stockCategory->nfcCategory
: ($card->category ?: $card->stockCategory?->nfcCategory));
@endphp
@php $rowBinding = $contentBindings[(int)$card->id] ?? ['role'=>'none']; @endphp
@if($rowCategory)
@include('nfc.admin.partials.category-icon', ['icon'=>$rowCategory->icon, 'name'=>$rowCategory->name])
@endif
{{ $rowCategory?->name ?: 'NFC Kart' }}
@if($rowBinding['role'] === 'linked')
Bağlı Kart · Salt Okunur
Ana kart: {{ $rowBinding['source_code'] }}
@elseif($rowBinding['role'] === 'source')
Ana İçerik Kartı
@elseif($rowBinding['role'] === 'central')
Merkezi İçerik
@endif
{{ $card->card_code }}
·
@if($card->card_name)
Kart Adı: {{ $card->card_name }}
@else
Kart Adı yok
@endif
{{ match(strtolower((string)$card->status)){ 'active'=>'AKTİF','created','pending'=>'HAZIR','suspended','paused'=>'ASKIDA','inactive','expired','cancelled','canceled'=>'PASİF',default=>mb_strtoupper((string)$card->status,'UTF-8') } }}
Okutma: {{ number_format((int)$card->total_scan_count,0,',','.') }}
@endforeach
@endif
@elseif($section === 'card')
@php $effectiveCategory = $effectiveCategory ?? (($card->stockCategory?->is_fixed_category && $card->stockCategory?->nfcCategory) ? $card->stockCategory->nfcCategory : ($card->category ?: $card->stockCategory?->nfcCategory)); @endphp
@php $isDigitalCardNfc = $effectiveCategory?->slug === 'contact-card'; @endphp
@php $isLinkedContent = ($contentBinding['role'] ?? 'none') === 'linked'; @endphp
@php $canTarget = !$isLinkedContent && !$isDigitalCardNfc && $effectiveCategory && app(\App\Services\BusinessUserAccessService::class)->canDirectlyUpdateTarget($user,$effectiveCategory); @endphp
@include('nfc.account.partials.card-detail-m3')
@if($isLinkedContent)
Bağlı Kart · Düzenleme Kapalı
{{ $card->card_code }} kartı, {{ $contentBinding['source_code'] }} ana kartının içeriğini kullanır. Ana kart güncellendiğinde bu kart da aynı bilgileri gösterir.
@if($bindingSourceVisible)
Ana Kartın Bilgilerini Güncelle
@endif
@elseif(($contentBinding['role'] ?? '') === 'source')
Ana İçerik Kartı Bu kartın bilgilerini güncellediğinizde aynı içeriğe bağlı diğer fiziksel kartlar otomatik güncellenir.
@endif
Müşteri : {{ $card->customer?->name ?? $customer->name }}
Kart Adı : {{ $card->card_name ?: '-' }}
Kart Kodu : {{ $card->card_code }}
Kategori : {{ $effectiveCategory?->name ?: 'NFC Kart' }}
@if($card->stock_category_id)
Stok Kategorisi : {{ $card->stockCategory?->name ?: '-' }}
Parti / Batch : {{ $card->stock_batch ?: '-' }}
@endif
Durum : {{ match(strtolower((string)$card->status)){ 'active'=>'AKTİF','created','pending'=>'HAZIR','suspended','paused'=>'ASKIDA','inactive','expired'=>'PASİF',default=>mb_strtoupper((string)$card->status,'UTF-8') } }}
Toplam Trafik : {{ number_format((int)$card->total_scan_count,0,',','.') }}
Son Trafik : {{ $card->last_scan_at?->format('d.m.Y H:i') ?? '-' }}
@if($user->isIndividualAccountMember() && !$isLinkedContent)
Kart Adı / Okutma Başlığını Düzenle
@endif
@if($canReturnToStock ?? false)
Kart İşlemleri
Bu işlem fiziksel kartı veya bağlı QR kodunu silmez. Müşteri/firma, hedef URL ve kullanıcı atamaları temizlenir; kart aynı Bayi hesabının stok sahipliğinde yeniden kullanılabilir STOK durumuna döner.
@endif
@if($isLinkedContent)
Bağlı Kart · Güncel İçerik (Salt Okunur)
@include('nfc.shared.linked-card-readonly')
@else
{{ $effectiveCategory?->slug === 'invoice-card' ? 'Fatura Kartı Verileri' : 'Hedef İçerik' }}
@endif
@if($card->customer_id && !$isLinkedContent)
Public Kart Görünümü Kart Adı public okutma ekranının başlığıdır; müşteri/firma adı public ekranda gösterilmez. Firma logosu yüklenirse NFC Manager logosunun yerini alır; logo yüklenmezse varsayılan logo korunur.
@include('nfc.shared.stock-card-branding-editor',['brandingAction'=>route('account.cards.branding',$card),'brandingInputClass'=>'nfc-account-input','brandingButtonClass'=>'nfc-account-btn primary'])
@endif
Sistem Bağlantısı
@if($card->activeToken)
Kopyala
@else
Henüz aktif sistem bağlantısı yok.
@endif
@if($card->linkedQr)
@php $qrAccess=app(\App\Services\BusinessUserAccessService::class); $canQrDownload=$qrAccess->hasCapability($user,'qr_codes.download',$card->category); $canQrPrint=$qrAccess->hasCapability($user,'qr_codes.print',$card->category); @endphp
Bağlı QR
{{ $card->linkedQr->qr_code }} Bu QR yalnız {{ $card->card_code }} NFC kartına bağlıdır.
{{ $card->status==='active' ? 'AKTİF' : 'HAZIR' }}
QR için ayrı yönetim ekranı yoktur. QR, NFC kartının ortak hedefini ve durumunu otomatik izler.
@endif
@elseif($section === 'reports')
@include('nfc.shared.unified-analytics-dashboard', [
'analytics' => $analytics,
'uaM3Admin' => true,
'uaAccountReport' => true,
'filterUrl' => route('account.reports'),
'scanExportUrl' => app(\App\Services\BusinessUserAccessService::class)->hasCapability($user, 'reports.export') ? route('account.reports.export') : null,
'buttonDetailUrl' => null,
])
@include('nfc.account.partials.analytics-module-status', ['modules' => $analyticsModules ?? []])
@elseif($section === 'subscription')
Mevcut Abonelik
@if(!$subscription)
Bu hesaba henüz paket atanmamış.
@else
Paket {{ $subscription->snapshotPackageName() }}
Durum {{ match(strtolower((string)$subscription->status)){ 'active'=>'AKTİF','pending','created'=>'HAZIR','suspended','paused'=>'ASKIDA','inactive','expired','cancelled','canceled'=>'PASİF',default=>mb_strtoupper((string)$subscription->status,'UTF-8') } }}
Başlangıç {{ $subscription->starts_at?->format('d.m.Y') ?: '-' }}
Bitiş {{ $subscription->is_lifetime ? 'ÖMÜR BOYU' : ($subscription->expires_at?->format('d.m.Y') ?: '-') }}
Paket Ücreti {{ number_format($subscription->snapshotAmount(),2,',','.') }} {{ $subscription->snapshotCurrencySymbol() }}
Bu paket merkez admin tarafından hesabınıza atanmıştır. Abonelik bilgileri kullanıcı panelinde salt okunur gösterilir.
@endif
@elseif($section === 'audit')
@if(($auditRows ?? collect())->isNotEmpty())
@csrf @method('DELETE')
Tümünü Seç
Seçimi Kaldır
Seçilenleri Sil
@foreach($auditRows as $row)
@csrf @method('DELETE')Sil
{{ $row['description'] }}
@if($row['old'] || $row['new'])
@if($row['old'])
Önceki Değer @foreach($row['old'] as $item)
{{ $item['label'] }} {{ $item['value'] }}
@endforeach
@endif
@if($row['new'])
Yeni Değer / Detay @foreach($row['new'] as $item)
{{ $item['label'] }} {{ $item['value'] }}
@endforeach
@endif
@endif
@endforeach
@else
İşlem geçmişi bulunmuyor.
@endif
@elseif($section === 'customers')
@include('nfc.account.customers.index')
@elseif($section === 'customer-form')
@include('nfc.account.customers.form')
@elseif($section === 'customer-show')
@include('nfc.account.customers.show')
@elseif($section === 'user-form')
@php $editing=$managedUser->exists; $canScope=app(\App\Services\BusinessUserAccessService::class)->hasCapability($user,'business_users.permissions.manage'); @endphp
@csrf @if($editing) @method('PUT') @endif
@if($canScope)@endif
@endif
@endsection