@php use App\Finance\FinanceCopy; @endphp

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

{{ __('dashboard.Paid, open, failed, and refunded charges from Stripe and PayPal.') }}

{{ __('dashboard.All') }} {{ __('dashboard.Paid') }} {{ __('dashboard.Open') }} {{ __('dashboard.Failed') }} {{ __('dashboard.Refunded') }}
@if ($rows->isEmpty())

{{ __('dashboard.No invoices yet. Checkout and invoice.paid webhooks land here.') }}

@else {{ __('dashboard.User') }} {{ __('dashboard.Pack') }} {{ __('dashboard.Amount') }} {{ __('dashboard.Method') }} {{ __('dashboard.Status') }} {{ __('dashboard.Paid') }} @foreach ($rows as $invoice) @php $tone = FinanceCopy::invoice($invoice->status); @endphp

{{ $invoice->user?->name ?: __('dashboard.Unlinked') }}

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

{{ $invoice->plan?->title ?: '—' }} {{ $invoice->formattedAmount() }} {{ FinanceCopy::driver($invoice->driver) }} {{ $tone['label'] }} {{ $invoice->paid_at?->format('M j, Y') ?: '—' }}
@endforeach
@endif