@php use App\Finance\FinanceCopy; use App\Finance\Money; $seriesMax = max(1, collect($cards['series'])->max('value') ?: 1); $healthTotal = max(1, array_sum($cards['health'])); @endphp
{{ __('dashboard.Revenue, collections, credit liability, and payment events.') }}
{{ __('dashboard.Collected this month') }}
{{ Money::format($cards['collected'], $cards['currency']) }}
@include('livewire.dashboard.finance.partials.delta', ['delta' => $cards['collected_delta']]) {{ __('dashboard.vs last month') }}
{{ __('dashboard.MRR') }}
{{ Money::format($cards['mrr'], $cards['currency']) }}
{{ number_format($cards['active']) }} {{ __('dashboard.active subscriptions') }}
{{ __('dashboard.Active subscriptions, yearly divided by 12.') }}
{{ __('dashboard.Net after API') }}
{{ Money::format($cards['net'], $cards['currency']) }}
{{ __('dashboard.Collected :revenue · est. API :cost (:credits credits)', [ 'revenue' => Money::format($cards['collected'], $cards['currency']), 'cost' => Money::format($cards['api_usd'], $cards['currency']), 'credits' => number_format($cards['credits_burned']), ]) }}
{{ __('dashboard.Failed charges') }}
{{ number_format($cards['failed']) }}
@include('livewire.dashboard.finance.partials.delta', ['delta' => $cards['failed_delta']]) {{ __('dashboard.Failed invoices this month.') }}
{{ __('dashboard.Cancellations') }}
{{ number_format($cards['canceled']) }}
@include('livewire.dashboard.finance.partials.delta', ['delta' => $cards['canceled_delta']]) {{ __('dashboard.Canceled subscriptions this month.') }}
{{ __('dashboard.Credit liability') }}
{{ number_format($cards['credit_liability']) }}
{{ __('dashboard.Unused pack and grant credits.') }} @if ($cards['unlimited_holders'] > 0) · {{ __('dashboard.:count unlimited', ['count' => $cards['unlimited_holders']]) }} @endif
{{ __('dashboard.Collections by method') }}
@if (count($cards['mix']) === 0){{ __('dashboard.No collections this month.') }}
@else{{ __('dashboard.Invoice health') }}
{{ __('dashboard.'.ucfirst($key)) }}
{{ number_format($cards['health'][$key]) }}
{{ $invoice->plan?->title ?: FinanceCopy::driver($invoice->driver) }} · {{ $invoice->paid_at?->format('M j') ?: $invoice->created_at?->format('M j') }}
{{ FinanceCopy::driver($event->driver) }} · {{ $event->created_at?->format('M j, H:i') }}
{{ $grant->user?->name ?: '—' }}
{{ $grant->reason ?: $grant->plan?->title }}