@if ($billable->isTaxable()) @endif @if ($billable->hasDiscount) @endif @foreach ($billable->products as $product) @if ($billable->isTaxable()) @endif @if ($billable->hasDiscount) @endif @endforeach @php $colspans = 3; if ($billable->hasDiscount && $billable->isTaxable()) { $colspans = 5; } elseif ($billable->hasDiscount || $billable->isTaxable()) { $colspans = 4; } @endphp @if ($billable->tax_type !== 'no_tax') @foreach ($billable->getAppliedTaxes() as $tax) @endforeach @endif
@lang('product.table_heading') @lang('product.qty') @lang('product.unit_price') @lang('product.tax') @lang('product.discount') @lang('product.amount')
{{ ($product->sku ? $product->sku . ': ' : '') . $product->name }} {{ $product->qty }} {{ $product->unit ?: '' }} {{ to_money($product->unit_price)->format() }} {{ $product->tax_label }} ({{ $product->tax_rate }}%) @if ($product->discount_type === 'fixed') {{ to_money($product->discount_total)->format() }} @endif @if ($product->discount_type === 'percent') {{ $product->discount_total }}% @endif {{ to_money($product->amount)->format() }}
@lang('billable.sub_total') @if ($billable->hasDiscount)

( @lang('billable.includes_discount', [ // format 'amount' => to_money($billable->totalDiscount)->format(), ]) )

@endif
{{ to_money($billable->sub_total)->format() }}
{{ $tax['label'] }} ({{ $tax['rate'] }}%) @if ($billable->isTaxInclusive()) @lang('billable.tax_amount_is_inclusive') @endif {{ to_money($tax['total'])->format() }}
@lang('billable.total') {{ to_money($billable->total)->format() }}