2020-05-10 08:13:27 +03:00
|
|
|
<tr>
|
|
|
|
@stack('name_td_start')
|
2020-12-24 01:28:38 +03:00
|
|
|
@if (!$hideItems || (!$hideName && !$hideDescription))
|
|
|
|
<td class="item">
|
|
|
|
@if (!$hideName)
|
|
|
|
{{ $item->name }}
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (!$hideDescription)
|
2021-01-28 15:24:57 +03:00
|
|
|
@if (!empty($item->description))
|
|
|
|
<br><small>{!! \Illuminate\Support\Str::limit($item->description, 500) !!}</small>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
|
|
|
@endif
|
2021-01-06 18:30:43 +03:00
|
|
|
|
|
|
|
@stack('item_custom_fields')
|
2021-01-06 19:01:19 +03:00
|
|
|
@stack('item_custom_fields_' . $item->id)
|
2020-12-24 01:28:38 +03:00
|
|
|
</td>
|
|
|
|
@endif
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('name_td_end')
|
|
|
|
|
|
|
|
@stack('quantity_td_start')
|
2020-12-24 01:28:38 +03:00
|
|
|
@if (!$hideQuantity)
|
|
|
|
<td class="quantity">{{ $item->quantity }}</td>
|
|
|
|
@endif
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('quantity_td_end')
|
|
|
|
|
|
|
|
@stack('price_td_start')
|
2020-12-24 01:28:38 +03:00
|
|
|
@if (!$hidePrice)
|
|
|
|
<td class="price">@money($item->price, $document->currency_code, true)</td>
|
|
|
|
@endif
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('price_td_end')
|
|
|
|
|
2020-12-24 01:28:38 +03:00
|
|
|
@if (!$hideDiscount)
|
|
|
|
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
|
|
|
|
@stack('discount_td_start')
|
2021-08-15 17:20:39 +01:00
|
|
|
@if ($item->discount_type === 'normal')
|
|
|
|
<td class="discount">{{ $item->discount }}</td>
|
|
|
|
@else
|
|
|
|
<td class="discount">@money($item->discount, $document->currency_code, true)</td>
|
|
|
|
@endif
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('discount_td_end')
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('total_td_start')
|
2020-12-24 01:28:38 +03:00
|
|
|
@if (!$hideAmount)
|
|
|
|
<td class="total">@money($item->total, $document->currency_code, true)</td>
|
|
|
|
@endif
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('total_td_end')
|
2021-01-06 18:30:43 +03:00
|
|
|
</tr>
|