@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->taxes() as $tax) @endforeach @endif
@lang('billable::product.table_heading') @lang('billable::product.qty') @lang('billable::product.unit_price') @lang('billable::product.tax') @lang('billable::product.discount') @lang('billable::product.amount')
{{ ($product->sku ? $product->sku . ': ' : '') . $product->name }} @if ($product->description)
{!! nl2br(e($product->description)) !!}
@endif
{{ $product->qty }} {{ $product->unit ?: '' }} {{ $product->unitPrice()->format() }} {{ $product->tax_label }} ({{ $product->tax_rate }}%) @if ($product->discount_type === 'fixed') {{ $product->discountedAmount()->format() }} @endif @if ($product->discount_type === 'percent') {{ $product->discount_total }}% @endif {{ $product->amount()->format() }}
@lang('billable::billable.sub_total') @if ($billable->hasDiscount())

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

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