53 lines
1.9 KiB
PHP
Raw Normal View History

<tr>
@stack('name_td_start')
2022-06-01 10:15:55 +03:00
@if (! $hideItems || (! $hideName && ! $hideDescription))
2022-06-06 10:33:03 +03:00
<td class="item text text-alignment-left text-left">
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))
<span class="small-text">
{!! \Illuminate\Support\Str::limit(nl2br($item->description), 500) !!}
2022-06-01 10:15:55 +03:00
</span>
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
@stack('name_td_end')
@stack('quantity_td_start')
2022-06-01 10:15:55 +03:00
@if (! $hideQuantity)
2022-06-06 10:33:03 +03:00
<td class="quantity text text-alignment-right text-right">{{ $item->quantity }}</td>
2020-12-24 01:28:38 +03:00
@endif
@stack('quantity_td_end')
@stack('price_td_start')
2022-06-01 10:15:55 +03:00
@if (! $hidePrice)
2022-06-06 10:33:03 +03:00
<td class="price text text-alignment-right text-right">@money($item->price, $document->currency_code, true)</td>
2020-12-24 01:28:38 +03:00
@endif
@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')
@if ($item->discount_type === 'percentage')
2022-06-06 10:33:03 +03:00
<td class="discount text text-alignment-right text-right">{{ $item->discount }}</td>
2021-08-15 17:20:39 +01:00
@else
2022-06-06 10:33:03 +03:00
<td class="discount text text-alignment-right text-right">@money($item->discount, $document->currency_code, true)</td>
2021-08-15 17:20:39 +01:00
@endif
2020-12-24 01:28:38 +03:00
@stack('discount_td_end')
@endif
@endif
@stack('total_td_start')
2022-06-01 10:15:55 +03:00
@if (! $hideAmount)
2022-06-06 10:33:03 +03:00
<td class="total text text-alignment-right text-right">@money($item->total, $document->currency_code, true)</td>
2020-12-24 01:28:38 +03:00
@endif
@stack('total_td_end')
2021-01-06 18:30:43 +03:00
</tr>