@include('themes.basic.includes.styles')

{{ translate('Invoice') }}

{{ translate('Number') }}: #{{ $trx->id }}

{{ translate('Billed to') }}:
@php $user = $trx->user; @endphp

{{ $user->getName() }}

{{ @$user->address->line_1 }}

@if (@$user->address->line_2)

{{ @$user->address->line_2 }}

@endif

{{ @$user->address->city }}

{{ @$user->address->state }}

{{ @$user->address->zip }}

{{ $user->getCountry() }}

@if ($trx->isTypePurchase()) @if ($trx->trxItems->count() > 0) @foreach ($trx->trxItems as $trxItem) @php $item = $trxItem->item; $licenseType = $trxItem->isLicenseTypeRegular() ? translate('Regular License') : translate('Extended License'); @endphp @if ($trxItem->support) @endif @endforeach @endif @elseif($trx->isTypeSupportPurchase() || $trx->isTypeSupportExtend()) @elseif($trx->isTypeDeposit()) @elseif($trx->isTypeSubscription()) @endif @if ($trx->hasTax()) @endif @if ($trx->hasFees()) @endif
{{ translate('Item') }} {{ translate('Price') }} {{ translate('Quantity') }} {{ translate('Total') }}

{{ $item->name }}

({{ $licenseType }})

{{ getAmount($trxItem->price) }} {{ $trxItem->quantity }} {{ getAmount($trxItem->total) }}

{{ $trxItem->support->title }}

{{ getAmount($trxItem->support->price) }} {{ $trxItem->support->quantity }} {{ getAmount($trxItem->support->total) }}

{{ $trx->support->title }}

{{ getAmount($trx->support->price) }} {{ $trx->support->quantity }} {{ getAmount($trx->support->total) }}

{{ translate('Deposit to account balance') }}

{{ getAmount($trx->amount) }} 1 {{ getAmount($trx->amount) }}

{{ translate('Subscription - :plan_name (:plan_interval)', [ 'plan_name' => $trx->plan->name, 'plan_interval' => $trx->plan->getIntervalName(), ]) }}

{{ getAmount($trx->amount) }} 1 {{ getAmount($trx->amount) }}

{{ translate(':tax_name (:tax_rate%)', [ 'tax_name' => $trx->tax->name, 'tax_rate' => $trx->tax->rate, ]) }}

{{ getAmount($trx->tax->amount) }}

{{ translate(':payment_gateway Fees (:percentage%)', [ 'payment_gateway' => $trx->paymentGateway->name, 'percentage' => $trx->paymentGateway->fees, ]) }}

{{ getAmount($trx->fees) }}

{{ translate('Total') }}

{{ getAmount($trx->total) }}

{{ translate('* This transaction was processed by :payment_method', [ 'payment_method' => $trx->paymentGateway->name, ]) }}

@include('themes.basic.includes.scripts')