{{ t('description') }} | {{ t('price') }} | {{ t('quantity') }} | {{ t('amount') }} |
---|---|---|---|
{{ $item->title ?? 'Item' }}
@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'] ?? 'Tax' }} ({{ $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('credit_applied') }} | @php $credits = $creditTransactions->sum('amount'); if ($credits > $calculatedTotal) { $credits = $calculatedTotal; } @endphp {{ '- ' . $invoice->formatAmount($credits) }} |
{{ $invoice->status == 'paid' ? t('amount_paid') : t('amount_due') }} | @php $finalamount = $calculatedTotal - $credits; @endphp {{ $invoice->formatAmount($finalamount) }} |
{{ t('total') }} | {{ $invoice->formatAmount($calculatedTotal) }} |