@extends('layouts.app', ['title' => 'Wallet & credits']) @section('content') @php($canBuy = auth()->user()->can('settings.manage'))

Wallet & credits

AI Agent and AI Writer use prepaid credits. Businesses with their own AI key in the App Store are not charged.

@error('pack')
{{ $message }}
@enderror @if ($testMode)
Test mode: the platform's payment keys are not set, so top-ups add credits without charging. See SETUP_REQUIRED.md.
@endif
Balance
{{ number_format($balance) }} credits
Used this month
{{ number_format($usedThisMonth) }}
What a credit buys
@foreach ($models as $m)
{{ $m['label'] }}{{ $m['credits'] }} {{ \Illuminate\Support\Str::plural('credit', $m['credits']) }} / answer
@endforeach

Top up

@foreach ($packs as $key => $p)
@if (! empty($p['popular']))Most popular@endif
{{ $p['label'] }}
{{ number_format($p['credits']) }}
credits for {{ money_format_short($p['price'], 'INR') }} (incl. GST)
@if ($canBuy)
@csrf
@else
Ask an owner or admin to top up.
@endif
@endforeach

History

@if ($transactions->isEmpty())
No activity yet.
@else
@foreach ($transactions as $t) @endforeach
WhenWhatByCreditsBalance
{{ $t->created_at->timezone($currentAccount->timezone)->format('d M Y, h:i A') }} {{ $t->description }}@if ($t->amount) · paid {{ money_full($t->amount, $t->currency) }}@endif {{ $t->user?->name ?? '—' }} {{ $t->credits > 0 ? '+' : '' }}{{ number_format($t->credits) }} {{ number_format($t->balance_after) }}
{{ $transactions->links() }}
@endif
@endsection