Shopier #{{ $order->shopier_order_id }}
{{ optional($order->date_created_at)->format('d.m.Y H:i') ?: 'Tarih yok' }} · Son mutabakat {{ optional($order->reconciled_at)->format('d.m.Y H:i') ?: '-' }} @if($order->fulfilled_at) · Tamamlanma {{ $order->fulfilled_at->format('d.m.Y H:i') }} @endif
{{ strtoupper($order->payment_status ?: 'PAYMENT ?') }} {{ strtoupper($statusLabels[$order->sync_status] ?? str_replace('_',' ', $order->sync_status)) }}
Müşteri {{ $order->customer?->name ?: ($order->customer_name ?: '-') }}
E-posta {{ $order->customer_email ?: '-' }}
Telefon {{ $order->customer_phone ?: '-' }}
Tutar {{ $order->total !== null ? number_format((float)$order->total,2,',','.') : '-' }} {{ $order->currency }}
@foreach($order->items as $item)
{{ $item->title ?: ('Product #'.$item->shopier_product_id) }}
Product ID: {{ $item->shopier_product_id }} · {{ $item->action_count }} teslim aksiyonu · Snapshot {{ $item->action_snapshot_sha256 ? 'HAZIR' : 'EKSİK' }}
Adet: {{ $item->quantity }}
{{ $item->mapping_status==='mapped' ? 'EŞLEŞTİ' : 'EŞLEŞMEDİ' }}
@endforeach
@if($order->fulfillmentActions->isNotEmpty())
Kontrollü Fulfillment Aksiyonları
@foreach($order->fulfillmentActions as $action)
@php($payload = (array)($action->result_payload ?? []))
@if($action->action_type==='subscription_package') Abonelik / Paket
@elseif($action->action_type==='physical_nfc') Fiziki NFC Ürünü
@elseif($action->action_type==='module_access') Modül Erişimi
@else {{ $action->action_type }} @endif
@if($action->action_type==='subscription_package') {{ $action->package?->name ?: 'Paket kaydı yok' }} · {{ $action->operation==='extend' ? 'Uzat' : 'Ata/Değiştir' }} · Adet {{ $action->requested_quantity }}
@elseif($action->action_type==='physical_nfc') {{ $action->nfcCategory?->name ?: ($payload['category_name'] ?? 'Kategori yok') }} · {{ $action->requested_quantity }} kart
@elseif($action->action_type==='module_access') {{ $action->module_key }} · {{ $action->duration_months }} ay × {{ $action->requested_quantity }}
@endif
{{ strtoupper(str_replace('_',' ', $action->status)) }}
@if($action->action_type==='physical_nfc' && $action->status==='manual_required') Stok/kart kaydı otomatik değiştirilmedi; gerçek fiziki hazırlık bekleniyor.@endif
@if($action->action_type==='module_access' && $action->status==='manual_required') Modül handler/registry tamamlanana kadar güvenli görev olarak bekliyor.@endif
@if($action->last_error) {{ $action->last_error }}@endif
@if($action->action_type==='physical_nfc' && $action->status==='manual_required' && !$order->refunded_at && !str_starts_with((string)$order->sync_status, 'refund_'))
@else
{{ $action->status==='applied' ? 'TAMAM' : 'BEKLİYOR' }}
@endif
@endforeach
@endif
@if($order->sync_status === 'refund_review' && $order->refundReview)
@php($refund = $order->refundReview)
Kontrollü İade İncelemesi
Shopier API üzerinde {{ $refund->succeeded_refund_count }} başarılı iade kaydı doğrulandı.
@if($refund->refund_total !== null) İade toplamı: {{ number_format((float)$refund->refund_total, 2, ',', '.') }} {{ $refund->refund_currency ?: $order->currency }} . @endif
Mutabakat:
@if($refund->reconciliation_status === 'verified_full') TAM İADE DOĞRULANDI
@elseif($refund->reconciliation_status === 'verified_partial') KISMİ İADE
@elseif($refund->reconciliation_status === 'blocked_currency_mismatch') PARA BİRİMİ UYUŞMAZLIĞI
@elseif($refund->reconciliation_status === 'blocked_over_refund') İADE TOPLAMI SİPARİŞİ AŞIYOR
@elseif($refund->reconciliation_status === 'blocked_order_identity') SİPARİŞ DOĞRULAMA EKSİK
@else MANUEL İNCELEME GEREKLİ
@endif
.
{{ $refund->reconciliation_reason }}
Etki kapsamı: {{ $refund->effect_scope === 'applied_effects' ? 'Uygulanmış teslim etkileri var' : ($refund->effect_scope === 'unapplied_only' ? 'Yalnız uygulanmamış/bekleyen işlemler var' : 'Teslim etkisi yok') }} .
İade snapshotı şifreli journal içinde saklanır; abonelik, kart veya modül kaydı sessizce geri alınmaz.
Snapshot: {{ substr((string)$refund->refund_snapshot_sha256, 0, 12) }}…
@if($refund->effect_scope !== 'applied_effects' && $refund->reconciliation_status === 'verified_full')
Uygulanmamış İşlemleri İptal Et
Yalnız Shopier API iade toplamı sipariş toplamıyla eşleşmiş tam iadede açılır. Henüz uygulanmamış planned/manual_required/failed görevleri void eder; abonelik veya gerçek stok kaydını silmez.
@endif
Manuel Çözümü Kaydet
Uygulanmış abonelik/fiziki teslim/modül etkisini operatör olarak ayrıca çözdüyseniz açıklamayla kapatın. Sistem geçmiş kaydı silmez.
@endif
@if($canFulfill)
@csrf
{{ $order->sync_status==='fulfillment_failed' ? 'Başarısız Aksiyonları Yeniden Dene' : 'Kontrollü Fulfillment Çalıştır' }}
@endif
@if($order->last_error)
{{ $order->last_error }}
@endif