@extends('layouts.app') @section('content') @php $badge = match ($subscription->status) { 'active' => 'bg-green-100 text-green-700', 'trialing' => 'bg-sky-100 text-sky-700', 'past_due' => 'bg-amber-100 text-amber-700', 'paused' => 'bg-gray-200 text-gray-700', 'canceled', 'expired' => 'bg-red-100 text-red-700', default => 'bg-gray-100 text-gray-600', }; $rows = [ 'Sahip' => $subscription->ownerLabel(), 'Uygulama' => strtoupper($subscription->app), 'Plan' => ($subscription->plan_name ?: $subscription->plan).' ('.$subscription->plan.')', 'Periyot' => $subscription->billing_interval.' × '.$subscription->billing_period, 'Tutar' => number_format((float) $subscription->price, 2).' '.$subscription->currency.' (KDV '.$subscription->tax_rate.'%)', 'Adet' => $subscription->quantity, 'Otomatik Yenileme' => $subscription->auto_renew ? 'Evet' : 'Hayır', 'Başlangıç' => $subscription->starts_at?->format('d.m.Y H:i') ?? '-', 'Deneme Bitişi' => $subscription->trial_ends_at?->format('d.m.Y H:i') ?? '-', 'Dönem' => ($subscription->current_period_start?->format('d.m.Y') ?? '-').' → '.($subscription->current_period_end?->format('d.m.Y') ?? '-'), 'Sonraki Tahsilat' => $subscription->next_billing_at?->format('d.m.Y H:i') ?? '-', 'Bitiş' => $subscription->ends_at?->format('d.m.Y H:i') ?? '-', 'Gateway' => $subscription->gateway ?? '-', 'Gateway Müşteri ID' => $subscription->gateway_customer_id ?? '-', 'Gateway Abonelik ID' => $subscription->gateway_subscription_id ?? '-', 'Gateway Plan ID' => $subscription->gateway_plan_id ?? '-', 'Ödeme Yöntemi' => $subscription->payment_method_type ?? '-', 'Kart' => $subscription->card_brand ? strtoupper($subscription->card_brand).' •••• '.$subscription->card_last_four : '-', ]; @endphp
| ID | Referans | Tür | Durum | Tutar | Gateway | Ödeme Tarihi |
|---|---|---|---|---|---|---|
| {{ $tx->id }} | {{ $tx->reference ?? '-' }} | {{ $tx->type }} | {{ $tx->status }} | {{ number_format((float) $tx->total_amount, 2) }} {{ $tx->currency }} | {{ $tx->gateway ?? '-' }} | {{ $tx->paid_at?->format('d.m.Y H:i') ?? '-' }} |
| Henüz işlem yok. | ||||||