@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.
Hesabı Düzenle
@csrf
@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')

Profil Bilgileri

@csrf @method('PUT')
@if($capabilities['profile'] ?? false)@endif
@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

@csrf @method('PUT')
@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 }}
@csrf
@if($resetPending)
@csrf
@endif
@endif @elseif($section === 'cards') @if($user->isCorporateAccountMember()) @include('nfc.account.partials.nfc-cards-list-md3') @endif

Aktif / Bağlı NFC Kartlarım

@if($user->isCorporateAccountMember()){{ $cards->count() }} kart@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') Ana kart: {{ $rowBinding['source_code'] }} @elseif($rowBinding['role'] === 'source') @elseif($rowBinding['role'] === 'central') @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) @elseif(($contentBinding['role'] ?? '') === 'source') @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

@csrf @method('PUT')
@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.
@csrf
@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' }}

@csrf @method('PUT') @if($effectiveCategory?->target_type === 'structured' && $effectiveCategory?->slug === 'iban') @include('nfc.shared.stock-card-iban-editor',[ 'ibanPayload'=>is_array($card->target?->payload) ? $card->target->payload : [], 'fieldClass'=>'nfc-account-field', 'inputClass'=>'nfc-account-input', 'helpClass'=>'nfc-account-help', 'requireNow'=>true, ]) @elseif($effectiveCategory?->target_type === 'structured' && $effectiveCategory?->slug === 'invoice-card')
Hedef Bağlantı kullanılmaz. Fatura Kartı kendi NFC Manager bilgi ekranını açar; burada yalnız fatura verilerini düzenleyin.
@include('nfc.shared.stock-card-invoice-editor',[ 'invoicePayload'=>is_array($card->target?->payload) ? $card->target->payload : [], 'fieldClass'=>'nfc-account-field', 'inputClass'=>'nfc-account-input', 'helpClass'=>'nfc-account-help', 'requireNow'=>true, ]) @elseif($effectiveCategory?->target_type === 'structured' && $effectiveCategory?->slug === 'wifi') @elseif($effectiveCategory?->slug === 'trip-planner') @elseif($effectiveCategory?->slug === 'digital-menu') @elseif($isDigitalCardNfc) @else @endif @if($effectiveCategory?->slug === 'trip-planner')
Gezi Planlayıcı hedefi merkezden yönetilir; manuel değiştirme kapalıdır.
@elseif($effectiveCategory?->slug==='digital-menu')
Dijital Menü adresi otomatik yönetilir.
@elseif($isDigitalCardNfc)
Dijital Kartvizit hedefi manuel değiştirilemez; kişisel tema seçimiyle otomatik eşitlenir.
@elseif($canTarget)@else
Bu kartın hedefini değiştirme yetkiniz bulunmuyor.
@endif
@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)
@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' }}
Bağlı QR
@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')
@foreach($auditRows as $row)
{{ $row['title'] }}
{{ $row['date'] }}
@csrf @method('DELETE')
{{ $row['description'] }}
İşlemi Yapan{{ $row['actor'] }}
Etkilenen Kayıt{{ $row['target'] }}
IP Adresi{{ $row['ip'] }}
@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

Hesap Bilgileri

@if($canScope)

Kart ve Kategori Yetkisi

Kategori Bazlı

@forelse($scopeCategories as $category)@empty
Atanabilir kategori yok.
@endforelse

Seçili Kartlar

@forelse($scopeCards as $card)@empty
Atanabilir kart yok.
@endforelse
@endif
@endif
@endsection