@php use App\Finance\FinanceCopy; @endphp

{{ __('dashboard.Credits') }}

{{ __('dashboard.Purchased credits, manual grants, and adjustments. Usage stays in Lab.') }}

@allows('finance.revise')
@foreach ($people as $person) {{ $person->name }} · {{ $person->email }} @endforeach @error('userPublicId') {{ $message }} @enderror {{ __('dashboard.Manual grant') }} {{ __('dashboard.Top-up') }} {{ __('dashboard.Adjustment') }}
@if ($kind === 'topup') @foreach ($plans as $plan) {{ $plan->title }} @endforeach @error('planPublicId') {{ $message }} @enderror @else @error('amount') {{ $message }} @enderror @endif
{{ __('dashboard.Grant credits') }}
@endallows
@if ($rows->isEmpty())

{{ __('dashboard.No credit grants yet. Manual grants and top-ups appear here.') }}

@else {{ __('dashboard.User') }} {{ __('dashboard.Amount') }} {{ __('dashboard.Kind') }} {{ __('dashboard.Reason') }} {{ __('dashboard.Granted by') }} {{ __('dashboard.When') }} @foreach ($rows as $grant)

{{ $grant->user?->name ?: '—' }}

{{ $grant->user?->email }}

{{ $grant->amount > 0 ? '+'.$grant->amount : $grant->amount }} {{ FinanceCopy::creditKind($grant->kind) }} @if ($grant->plan)

{{ $grant->plan->title }}

@endif
{{ $grant->reason ?: '—' }} {{ $grant->actor?->name ?: '—' }} {{ $grant->created_at?->format('M j, Y H:i') }}
@endforeach
@endif