@stack('name_td_start')
@if (! $hideItems || (! $hideName && ! $hideDescription))
@if (! $hideName)
{{ $item->name }}
@endif
@if (! $hideDescription)
@if (! empty($item->description))
{!! \Illuminate\Support\Str::limit(nl2br($item->description), 500) !!}
@endif
@endif
@stack('item_custom_fields')
@stack('item_custom_fields_' . $item->id)
|
@endif
@stack('name_td_end')
@stack('quantity_td_start')
@if (! $hideQuantity)
{{ $item->quantity }}
|
@endif
@stack('quantity_td_end')
@stack('price_td_start')
@if (! $hidePrice)
|
@endif
@stack('price_td_end')
@if (! $hideDiscount)
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
@stack('discount_td_start')
@if ($item->discount_type === 'percentage')
@php
$text_discount = '';
if (setting('localisation.percent_position') == 'before') {
$text_discount .= '%';
}
$text_discount .= $item->discount;
if (setting('localisation.percent_position') == 'after') {
$text_discount .= '%';
}
@endphp
{{ $text_discount }}
|
@else
|
@endif
@stack('discount_td_end')
@endif
@endif
@stack('total_td_start')
@if (! $hideAmount)
|
@endif
@stack('total_td_end')