| {{ t('description') }} | {{ t('price') }} | {{ t('quantity') }} | {{ t('amount') }} |
|---|---|---|---|
|
{{ $item->title ?? t('default_item_title') }}
@if (!empty($item->description))
{!! nl2br(e($item->description)) !!}
@endif
|
{{ $invoice ? $invoice->formatAmount($item->amount ?? 0) : number_format($item->amount ?? 0, 2) }} | {{ $item->quantity ?? 1 }} | {{ $invoice ? $invoice->formatAmount(($item->amount ?? 0) * ($item->quantity ?? 1)) : number_format(($item->amount ?? 0) * ($item->quantity ?? 1), 2) }} |
| {{ t('subtotal') }} | {{ $invoice->formatAmount($subtotal) }} |
|---|---|
| {{ $tax['name'] ?? t('tax_label') }} ({{ $tax['formatted_rate'] ?? '0%' }}) | {{ ($tax['amount'] ?? 0) <= 0 && ($tax['rate'] ?? 0)> 0 ? $invoice->formatAmount($subtotal * (($tax['rate'] ?? 0) / 100)) : $tax['formatted_amount'] ?? $invoice->formatAmount(0) }} |
| {{ t('tax ') }}(0%) | {{ $invoice->formatAmount(0) }} |
| {{ t('fee') }} | {{ $invoice->formatAmount($fee) }} |
| {{ t('total') }} | {{ $invoice->formatAmount($calculatedTotal) }} |
| {{ t('credit_applied') }} | {{ '- ' . $invoice->formatAmount($creditAmount) }} |
| {{ t('coupon_discount') }} ({{ $invoice->coupon_code }}) | {{ '- ' . $invoice->formatAmount($couponDiscountAfterCredit) }} |
| {{ $invoice->status == 'paid' ? t('amount_paid') : t('amount_due') }} | {{ $invoice->formatAmount($finalAmountPaid) }} |