2020-12-24 01:28:38 +03:00
|
|
|
<div class="row document-item-body">
|
|
|
|
<div class="col-sm-12 p-0" style="table-layout: fixed;">
|
|
|
|
@if (!$hideEditItemColumns)
|
2021-01-12 12:26:46 +03:00
|
|
|
<x-edit-item-columns :type="$type" />
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="table-responsive overflow-x-scroll overflow-y-hidden">
|
|
|
|
<table class="table" id="items" style="table-layout: fixed">
|
|
|
|
<colgroup>
|
2021-02-28 12:46:53 +03:00
|
|
|
<col class="document-item-40-px">
|
|
|
|
<col class="document-item-25">
|
|
|
|
<col class="document-item-30 description">
|
|
|
|
<col class="document-item-10">
|
|
|
|
<col class="document-item-10">
|
|
|
|
<col class="document-item-20">
|
|
|
|
<col class="document-item-40-px">
|
2020-12-24 01:28:38 +03:00
|
|
|
</colgroup>
|
|
|
|
<thead class="thead-light">
|
|
|
|
<tr>
|
|
|
|
@stack('move_th_start')
|
2020-12-29 17:13:06 +03:00
|
|
|
<th class="border-top-0 border-right-0 border-bottom-0" style="max-width: 40px">
|
2021-02-28 12:46:53 +03:00
|
|
|
<div></div>
|
2020-12-29 17:13:06 +03:00
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('move_th_end')
|
|
|
|
|
|
|
|
@if (!$hideItems)
|
2021-01-04 18:26:52 +03:00
|
|
|
@stack('name_th_start')
|
|
|
|
<th class="text-left border-top-0 border-right-0 border-bottom-0">
|
|
|
|
{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}
|
|
|
|
</th>
|
|
|
|
@stack('name_th_end')
|
2020-12-24 01:28:38 +03:00
|
|
|
|
2021-01-04 18:26:52 +03:00
|
|
|
@stack('move_th_start')
|
|
|
|
<th class="text-left border-top-0 border-right-0 border-bottom-0"></th>
|
|
|
|
@stack('move_th_end')
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('quantity_th_start')
|
2021-01-12 13:23:54 +03:00
|
|
|
<th class="text-center pl-2 border-top-0 border-right-0 border-bottom-0">
|
|
|
|
@if (!$hideQuantity)
|
2020-12-28 16:21:09 +03:00
|
|
|
{{ trans($textQuantity) }}
|
2021-01-12 13:23:54 +03:00
|
|
|
@endif
|
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('quantity_th_end')
|
|
|
|
|
|
|
|
@stack('price_th_start')
|
2021-01-12 13:23:54 +03:00
|
|
|
<th class="text-right border-top-0 border-right-0 border-bottom-0 pr-1" style="padding-left: 5px;">
|
|
|
|
@if (!$hidePrice)
|
2020-12-28 16:21:09 +03:00
|
|
|
{{ trans($textPrice) }}
|
2021-01-12 13:23:54 +03:00
|
|
|
@endif
|
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('price_th_end')
|
|
|
|
|
|
|
|
@stack('total_th_start')
|
2021-01-12 13:23:54 +03:00
|
|
|
<th class="text-right border-top-0 border-bottom-0 item-total">
|
|
|
|
@if (!$hideAmount)
|
2020-12-28 16:21:09 +03:00
|
|
|
{{ trans($textAmount) }}
|
2021-01-12 13:23:54 +03:00
|
|
|
@endif
|
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('total_th_end')
|
|
|
|
|
|
|
|
@stack('remove_th_start')
|
2020-12-29 17:13:06 +03:00
|
|
|
<th class="border-top-0 border-right-0 border-bottom-0" style="max-width: 40px">
|
2021-02-28 12:46:53 +03:00
|
|
|
<div></div>
|
2020-12-29 17:13:06 +03:00
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('remove_th_end')
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
2021-01-04 00:25:39 +03:00
|
|
|
<tbody id="{{ (!$hideDiscount && in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) ? 'invoice-item-discount-rows' : 'invoice-item-rows' }}" class="table-padding-05">
|
2020-12-24 01:28:38 +03:00
|
|
|
@include('components.documents.form.line-item')
|
|
|
|
|
|
|
|
@stack('add_item_td_start')
|
|
|
|
<tr id="addItem">
|
2021-01-04 18:26:52 +03:00
|
|
|
<td class="text-right border-bottom-0 p-0" colspan="7">
|
2020-12-28 17:17:42 +03:00
|
|
|
<x-select-item-button
|
|
|
|
type="{{ $type }}"
|
|
|
|
is-sale="{{ $isSalePrice }}"
|
|
|
|
is-purchase="{{ $isPurchasePrice }}"
|
2021-07-27 17:56:35 +03:00
|
|
|
search-char-limit="{{ $searchCharLimit }}"
|
2020-12-28 17:17:42 +03:00
|
|
|
/>
|
2020-12-24 01:28:38 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@stack('add_item_td_end')
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|