2020-05-10 08:13:27 +03:00
|
|
|
<tr>
|
|
|
|
@stack('name_td_start')
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideItems || (! $hideName && ! $hideDescription))
|
2023-02-16 16:09:56 +03:00
|
|
|
<td class="item text text-alignment-left text-left max-w-0">
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideName)
|
|
|
|
{{ $item->name }} <br/>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideDescription)
|
|
|
|
@if (! empty($item->description))
|
2023-02-16 16:09:56 +03:00
|
|
|
<div class="small-text break-words">
|
2022-08-04 14:33:34 +03:00
|
|
|
{!! \Illuminate\Support\Str::limit(nl2br($item->description), 500) !!}
|
2023-02-16 16:09:56 +03:00
|
|
|
</div>
|
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')
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideQuantity)
|
2022-09-23 13:45:03 +03:00
|
|
|
<td class="quantity text text-alignment-right text-right">
|
|
|
|
{{ $item->quantity }}
|
|
|
|
</td>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('quantity_td_end')
|
|
|
|
|
|
|
|
@stack('price_td_start')
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hidePrice)
|
2022-09-23 13:45:03 +03:00
|
|
|
<td class="price text text-alignment-right text-right">
|
2023-07-11 12:17:01 +03:00
|
|
|
<x-money :amount="$item->price" :currency="$document->currency_code" />
|
2022-09-23 13:45:03 +03:00
|
|
|
</td>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('price_td_end')
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideDiscount)
|
2020-12-24 01:28:38 +03:00
|
|
|
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
|
|
|
|
@stack('discount_td_start')
|
2021-08-15 22:35:05 +01:00
|
|
|
@if ($item->discount_type === 'percentage')
|
2022-09-13 16:06:15 +03:00
|
|
|
<td class="discount text text-alignment-right text-right">
|
|
|
|
@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 }}
|
|
|
|
</td>
|
2021-08-15 17:20:39 +01:00
|
|
|
@else
|
2022-09-23 13:45:03 +03:00
|
|
|
<td class="discount text text-alignment-right text-right">
|
2023-07-11 12:17:01 +03:00
|
|
|
<x-money :amount="$item->discount" :currency="$document->currency_code" />
|
2022-09-23 13:45:03 +03:00
|
|
|
</td>
|
2021-08-15 17:20:39 +01:00
|
|
|
@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')
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! $hideAmount)
|
2022-09-23 13:45:03 +03:00
|
|
|
<td class="total text text-alignment-right text-right">
|
2023-07-11 12:17:01 +03:00
|
|
|
<x-money :amount="$item->total" :currency="$document->currency_code" />
|
2022-09-23 13:45:03 +03:00
|
|
|
</td>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
2020-05-10 08:13:27 +03:00
|
|
|
@stack('total_td_end')
|
2021-01-06 18:30:43 +03:00
|
|
|
</tr>
|