@php $publicTitleFallback = $category->slug === 'wifi' ? 'Wi‑Fi Bağlantısı' : ($category->slug === 'invoice-card' ? 'Fatura Kartı' : 'IBAN / Ödeme'); $publicTitle = ($card ? app(\App\Services\StockCardPresentationService::class)->publicCardName($card) : null) ?: $publicTitleFallback; @endphp {{ $publicTitle }} @php $rawPayload=$target?->payload ?? []; $payload=is_array($rawPayload)?$rawPayload:(json_decode((string)$rawPayload,true) ?: []); $isWifi=$category->slug==='wifi'; $isInvoice=$category->slug==='invoice-card'; $presentation=app(\App\Services\StockCardPresentationService::class); $structured=app(\App\Services\StructuredTargetService::class); $ibanAccounts=(!$isWifi && !$isInvoice) ? $structured->ibanAccounts($payload) : []; $invoiceCards=$isInvoice ? $structured->invoiceCards($payload) : []; $customLogoPath=$card ? $presentation->customLogoPath($card) : null; $brandLogoUrl=($card && !empty($publicToken) && $customLogoPath) ? route('nfc.card-brand-logo',['token'=>$publicToken]) : asset('images/nfc-manager/nfc-logo-02-Beyaz.png'); @endphp {{-- IBAN-v1 public kabuğu tüm stok kartı bilgi ekranlarının sabit görsel altyapısıdır. 0.4.404 Fatura Kartı yalnız veri/içerik slotu olarak eklenir; UI kabuğu değişmez. --}}
{{ $customLogoPath ? 'Firma Logosu' : 'NFC Manager' }}
{{ $publicTitle }}
@if($isInvoice) @if($invoiceCards===[])
Fatura bilgileri henüz tanımlanmamış.
@else
@foreach($invoiceCards as $index=>$invoice)
{{ trim((string)($invoice['label'] ?? '')) ?: 'Fatura Kartı '.($index+1) }}
@foreach([['Şirket Ünvanı',$invoice['company_title']??''],['Vergi Numarası',$invoice['tax_number']??''],['Vergi Dairesi',$invoice['tax_office']??''],['Adres',$invoice['address']??''],['Telefon',$invoice['phone']??'']] as [$label,$value]) @if($label === 'Adres')
{{ $label }}
{{ $value!==''?$value:'-' }}
@else
{{ $label }}
{{ $value!==''?$value:'-' }}
@endif @endforeach
@endforeach
@endif @elseif($isWifi) @if(empty($payload['ssid']) && empty($payload['password']) && empty($payload['description']))
Wi‑Fi bağlantı bilgileri henüz tanımlanmamış.
@else
@if(!empty($payload['ssid']))
Wi‑Fi Ağı
{{ $payload['ssid'] }}
@endif @if(!empty($payload['password']))
Manuel Giriş Şifresi
{{ $payload['password'] }}
@endif @if(!empty($payload['description']))
Açıklama
{{ $payload['description'] }}
@endif
@endif @else @if($ibanAccounts===[])
IBAN bilgisi henüz tanımlanmamış.
@else
@foreach($ibanAccounts as $index=>$account)
{{ trim((string)($account['label'] ?? '')) ?: 'IBAN '.($index+1) }}
@foreach([['Alıcı Adı',$account['recipient_name']??''],['IBAN',$account['iban']??''],['Banka',$account['bank']??''],['Açıklama',$account['description']??'']] as [$label,$value]) @if($label === 'IBAN' || $label === 'Açıklama')
{{ $label }}
{{ $label === 'IBAN' && $value !== '' ? implode(' ', str_split(preg_replace('/\s+/', '', strtoupper((string)$value)), 4)) : ($value !== '' ? $value : '-') }}
@else
{{ $label }}
{{ $value!==''?$value:'-' }}
@endif @endforeach
@endforeach
@endif @endif
Kopyalandı