@if($isRtl) @else @endif

{{ __('Invoice') }}

@if($logoUrl) {{ $company['name'] }} @else

{{ $company['name'] }}

@endif @if($company['tagline'])

{{ $company['tagline'] }}

@elseif($company['description'])

{{ $company['description'] }}

@endif @if($company['email'])

{{ $company['email'] }}

@endif
@if($logoUrl) {{ $company['name'] }} @else

{{ $company['name'] }}

@endif @if($company['tagline'])

{{ $company['tagline'] }}

@elseif($company['description'])

{{ $company['description'] }}

@endif @if($company['email'])

{{ $company['email'] }}

@endif

{{ __('Invoice') }}

@if($isRtl) @else @endif
{{ $transaction->invoice_number }}# :{{ __('Invoice Number') }}
{{ $transaction->transaction_date ? \App\Helpers\DateHelper::format($transaction->transaction_date) : $date }} :{{ __('Date') }}
{{ $transaction->payment_method_label }} :{{ __('Payment Method') }}
@php $statusLabels = [ 'completed' => __('Paid'), 'pending' => __('Pending'), 'failed' => __('Failed'), 'refunded' => __('Refunded'), ]; @endphp {{ $statusLabels[$transaction->status] ?? ucfirst($transaction->status) }} :{{ __('Status') }}

{{ __('Bill To') }}

{{ $user->name }}

{{ $user->email }}

{{ __('Bill To') }}

{{ $user->name }}

{{ $user->email }}

{{ __('Invoice Number') }}: {{ $transaction->invoice_number }}
{{ __('Date') }}: {{ $transaction->transaction_date ? \App\Helpers\DateHelper::format($transaction->transaction_date) : $date }}
{{ __('Payment Method') }}: {{ $transaction->payment_method_label }}
{{ __('Status') }}: @php $statusLabels = [ 'completed' => __('Paid'), 'pending' => __('Pending'), 'failed' => __('Failed'), 'refunded' => __('Refunded'), ]; @endphp {{ $statusLabels[$transaction->status] ?? ucfirst($transaction->status) }}
@if($isRtl) @else @endif @if($isRtl) @endif @if(!$isRtl) @endif
{{ __('Amount') }} {{ __('Qty') }} {{ __('Description') }}{{ __('Description') }} {{ __('Qty') }} {{ __('Amount') }}
{{ \App\Services\InvoiceService::formatCurrency($transaction->amount, $transaction->currency) }} 1 @if($plan) {{ __(':name Plan', ['name' => $plan->name]) }} @php $periodLabels = [ 'monthly' => __('Monthly'), 'yearly' => __('Yearly'), 'lifetime' => __('Lifetime'), ]; $periodLabel = $periodLabels[$plan->billing_period ?? 'monthly'] ?? ucfirst($plan->billing_period ?? 'Monthly'); @endphp
{{ __(':period Subscription', ['period' => $periodLabel]) }} @if($subscription && $subscription->starts_at)
{{ __('Period') }}: {{ \App\Helpers\DateHelper::format($subscription->starts_at) }} - {{ $subscription->renewal_at ? \App\Helpers\DateHelper::format($subscription->renewal_at) : __('Ongoing') }} @endif
@else {{ $transaction->type_label }}
{{ __('Transaction ID') }}: {{ $transaction->transaction_id }}
@endif
1 {{ \App\Services\InvoiceService::formatCurrency($transaction->amount, $transaction->currency) }}
@if($isRtl) @else @endif @if($isRtl) @else @endif
{{ \App\Services\InvoiceService::formatCurrency($transaction->amount, $transaction->currency) }} :{{ __('Subtotal') }}{{ __('Subtotal') }}: {{ \App\Services\InvoiceService::formatCurrency($transaction->amount, $transaction->currency) }}
{{ \App\Services\InvoiceService::formatCurrency($transaction->amount, $transaction->currency) }} :{{ __('Total') }}{{ __('Total') }}: {{ \App\Services\InvoiceService::formatCurrency($transaction->amount, $transaction->currency) }}
@if($transaction->status === 'completed')

{{ __('Thank you for your payment!') }}

@endif