@php $statusColors = [ 'TRIAL' => 'warning', 'ACTIVE' => 'success', 'PAST_DUE' => 'danger', 'SUSPENDED' => 'dark', 'CANCELED' => 'secondary', ]; $statusColor = $statusColors[$subscription->status] ?? 'secondary'; @endphp

{{ $title }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{ $subscription->plan->name ?? '-' }}

Siklus {{ $subscription->billing_cycle === 'YEARLY' ? 'Tahunan' : 'Bulanan' }}

{{ $subscription->statusLabel() }}

Periode berjalan {{ optional($subscription->current_period_start)->format('d/m/Y') }} - {{ optional($subscription->current_period_end)->format('d/m/Y') }}
Jatuh tempo {{ optional($subscription->current_period_end)->format('d/m/Y') }}
@if ($subscription->status === 'TRIAL')
Trial berakhir {{ optional($subscription->trial_ends_at)->format('d/m/Y H:i') }}
@endif @if ($subscription->grace_ends_at)
Masa tenggang berakhir {{ $subscription->grace_ends_at->format('d/m/Y H:i') }}
@endif @if ($subscription->pendingPlan)
Menunggu perubahan ke paket {{ $subscription->pendingPlan->name }} @if ($subscription->pending_effective_at) berlaku {{ $subscription->pending_effective_at->format('d/m/Y H:i') }} @endif
@endif
Pilih / Ganti Paket Daftar Tagihan @if (!in_array($subscription->status, ['CANCELED']))
@csrf
@endif
Pemakaian vs Batas Paket
@foreach ($quota as $row) @endforeach
KomponenTerpakaiBatasStatus
{{ $row['label'] }} {{ $row['used'] }} {{ $row['unlimited'] ? 'Tak terbatas' : $row['limit'] }} @if ($row['allowed']) Aman @else Penuh @endif
Riwayat Status
@forelse ($events as $event) @empty @endforelse
WaktuDariKeAlasanAktor
{{ $event->created_at->format('d/m/Y H:i') }} {{ $event->from_status ?: '-' }} {{ $event->to_status }} {{ $event->reason ?: '-' }} {{ $event->actor ?: '-' }}
Belum ada riwayat.
Tagihan Terbaru
Semua
@forelse ($invoices as $invoice)
{{ $invoice->number }}
{{ $invoice->period_start->format('d/m/Y') }} - {{ $invoice->period_end->format('d/m/Y') }}
Rp {{ number_format((float) $invoice->amount, 0, ',', '.') }}
{{ $invoice->status }}
@empty

Belum ada tagihan.

@endforelse