{{-- Empty dummy focusable element to prevent modal autofocus scrolling to the bottom --}}
{{-- Subscriptions Table --}}

Riwayat Langganan

@forelse($record->subscriptions()->latest()->get() as $sub) @empty @endforelse
No. Referensi Paket Siklus Jumlah Status Masa Aktif
{{ $sub->reference_id ?? '-' }} {{ $sub->plan->name }} {{ $sub->billing_cycle === 'monthly' ? 'Bulanan' : 'Tahunan' }} Rp {{ number_format($sub->amount, 0, ',', '.') }} @php $statusBadge = match ($sub->status) { 'active' => 'badge-success', 'past_due' => 'badge-warning', 'cancelled' => 'badge-gray', 'expired' => 'badge-danger', default => 'badge-gray', }; $statusLabel = match ($sub->status) { 'active' => 'Aktif', 'past_due' => 'Lewat', 'cancelled' => 'Batal', 'expired' => 'Expired', default => $sub->status, }; @endphp {{ $statusLabel }} {{ $sub->starts_at?->format('d M Y') ?? '-' }} s/d {{ $sub->ends_at?->format('d M Y') ?? 'Unlimited' }}
Belum ada riwayat langganan.
{{-- Upgrade Requests Table --}}

Riwayat Request Pembayaran & Upgrade

@forelse($record->upgradeRequests()->latest()->get() as $req) @empty @endforelse
No. Referensi Paket Tujuan Status Request Metode Status Bayar Tgl Diajukan
{{ $req->reference_id ?? '-' }} {{ $req->plan->name }} @php $reqBadge = match ($req->status) { 'approved' => 'badge-success', 'pending' => 'badge-warning', 'rejected' => 'badge-danger', default => 'badge-gray', }; @endphp {{ $req->status }} {{ strtoupper($req->payment_method ?? 'manual') }} @php $payBadge = match ($req->payment_status) { 'paid' => 'badge-success', 'pending' => 'badge-warning', 'failed', 'expired' => 'badge-danger', 'cancelled' => 'badge-gray', default => 'badge-gray', }; @endphp {{ $req->payment_status }} {{ $req->created_at->format('d M Y H:i') }}
Belum ada riwayat pengajuan pembayaran.