@php use App\Finance\FinanceCopy; @endphp

{{ $invoice->formattedAmount() }}

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

@allows('finance.revise') @if ($invoice->canRefund()) {{ __('dashboard.Refund') }} @endif @endallows
@php $tone = FinanceCopy::invoice($invoice->status); @endphp

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

{{ $tone['label'] }}

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

{{ $invoice->plan?->title ?: '—' }}

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

{{ $invoice->paid_at?->format('M j, Y H:i') ?: '—' }}

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

{{ $invoice->refunded_at?->format('M j, Y H:i') ?: '—' }}

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

{{ __('dashboard.Provider invoice') }}

{{ $invoice->provider_invoice_id ?: '—' }}

{{ __('dashboard.Provider subscription') }}

{{ $invoice->provider_subscription_id ?: '—' }}

@if ($invoice->entitlement)

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

{{ $invoice->entitlement->plan?->title ?: __('dashboard.Subscription') }}
@endif @if ($invoice->refundedBy)

{{ __('dashboard.Refunded by') }}

{{ $invoice->refundedBy->name }}

@endif
@if ($invoice->events->isNotEmpty())

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

{{ __('dashboard.Event') }} {{ __('dashboard.Status') }} @foreach ($invoice->events as $event) @php $eventTone = FinanceCopy::event($event->status); @endphp {{ $event->event_type }} {{ $eventTone['label'] }} @endforeach
@endif {{ __('dashboard.Refund') }}