@php use App\Finance\FinanceCopy; @endphp

{{ $entitlement->user?->name ?: __('dashboard.Subscription') }}

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

@include('livewire.dashboard.finance.options.nav') @php $tone = FinanceCopy::subscription($entitlement->status); @endphp

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

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

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

{{ $tone['label'] }}

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

{{ FinanceCopy::interval($entitlement->interval) }}

{{ __('dashboard.Last payment') }}

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

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

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

{{ $entitlement->driver ? FinanceCopy::driver($entitlement->driver) : '—' }}

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

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

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

{{ $entitlement->started_at?->format('M j, Y') ?: '—' }}

{{ __('dashboard.Period ends') }}

{{ $entitlement->ends_at?->format('M j, Y') ?: __('dashboard.Open') }}

@allows('finance.revise')
@foreach ($plans as $plan) {{ $plan->title }} @endforeach
{{ __('dashboard.Save pack') }} {{ __('dashboard.Extend period') }} {{ __('dashboard.Cancel subscription') }}
@endallows @if ($entitlement->invoices->isNotEmpty())

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

{{ __('dashboard.Amount') }} {{ __('dashboard.Status') }} {{ __('dashboard.Paid') }} @foreach ($entitlement->invoices as $invoice) @php $invoiceTone = FinanceCopy::invoice($invoice->status); @endphp {{ $invoice->formattedAmount() }} {{ $invoiceTone['label'] }} {{ $invoice->paid_at?->format('M j, Y') ?: '—' }} @endforeach
@endif {{ $confirmAction === 'extend' ? __('dashboard.Extend period') : __('dashboard.Cancel') }}