Credits & Billing {{-- Balance Card --}}

Current Balance

{{ $user->credit_balance }}

Chapter Credits

Buy More Credits
{{-- Credit Packages --}}

Quick Purchase

@php $plans = [ ['name' => 'Starter', 'price' => '9.99', 'credits' => 5, 'badge' => false], ['name' => 'Popular', 'price' => '17.99', 'credits' => 10, 'badge' => true], ['name' => 'Pro', 'price' => '39.99', 'credits' => 25, 'badge' => false], ['name' => 'Author', 'price' => '69.99', 'credits' => 50, 'badge' => false], ]; @endphp @foreach($plans as $plan)

{{ $plan['name'] }}

@if($plan['badge']) Best Value @endif

${{ $plan['price'] }}

{{ $plan['credits'] }} Credits

Purchase
@endforeach
{{-- Recent Transactions --}}

Recent Transactions

@forelse($credits as $credit) @empty @endforelse
Date Type Description Amount Balance
{{ $credit->created_at->format('M d, Y H:i') }} {{ ucfirst(str_replace('_', ' ', $credit->type)) }} {{ $credit->description ?? '-' }} {{ $credit->amount > 0 ? '+' : '' }}{{ $credit->amount }} {{ $credit->balance_after }}
No transactions yet
@if($credits->hasPages())
{{ $credits->links() }}
@endif
{{-- Payment History --}}

Payment History

@forelse($payments as $payment) @empty @endforelse
Date Invoice Credits Amount Status
{{ $payment->created_at->format('M d, Y') }} {{ $payment->invoice_number ?? '-' }} {{ $payment->credits_purchased }} ${{ number_format($payment->amount, 2) }} {{ ucfirst($payment->status) }}
No payments yet
@if($payments->hasPages())
{{ $payments->links() }}
@endif