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;">
|
|
|
|
@php $item_colspan = in_array(setting('localisation.discount_location', 'total'), ['item', 'both']) ? '6' : '5' @endphp
|
|
|
|
@if (!$hideEditItemColumns)
|
|
|
|
<x-edit-item-columns type="{{ $type }}" />
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="table-responsive overflow-x-scroll overflow-y-hidden">
|
|
|
|
<table class="table" id="items" style="table-layout: fixed">
|
|
|
|
<colgroup>
|
|
|
|
<col style="width: 40px;">
|
|
|
|
<col style="width: 25%;">
|
|
|
|
<col style="width: 30%;">
|
|
|
|
<col style="width: 100px;">
|
|
|
|
<col style="width: 100px;">
|
|
|
|
<col style="width: 250px;">
|
|
|
|
<col style="width: 40px;">
|
|
|
|
</colgroup>
|
|
|
|
<thead class="thead-light">
|
|
|
|
<tr>
|
|
|
|
@stack('move_th_start')
|
|
|
|
<th class="text-left border-top-0 border-right-0 border-bottom-0"></th>
|
|
|
|
@stack('move_th_end')
|
|
|
|
|
|
|
|
@if (!$hideItems)
|
|
|
|
@stack('name_th_start')
|
2020-12-28 16:21:09 +03:00
|
|
|
<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>
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('name_th_end')
|
|
|
|
|
|
|
|
@stack('move_th_start')
|
|
|
|
<th class="text-left border-top-0 border-right-0 border-bottom-0"></th>
|
|
|
|
@stack('move_th_end')
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('quantity_th_start')
|
|
|
|
@if (!$hideQuantity)
|
2020-12-28 16:21:09 +03:00
|
|
|
<th class="text-center border-top-0 border-right-0 border-bottom-0" style="padding-right: 5px;">
|
|
|
|
{{ trans($textQuantity) }}
|
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
|
|
|
@stack('quantity_th_end')
|
|
|
|
|
|
|
|
@stack('price_th_start')
|
|
|
|
@if (!$hidePrice)
|
2020-12-28 16:21:09 +03:00
|
|
|
<th class="text-right border-top-0 border-right-0 border-bottom-0" style="padding-left: 5px;">
|
|
|
|
{{ trans($textPrice) }}
|
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
|
|
|
@stack('price_th_end')
|
|
|
|
|
|
|
|
@if (!$hideDiscount)
|
|
|
|
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
|
|
|
|
@stack('discount_th_start')
|
2020-12-28 16:21:09 +03:00
|
|
|
<th class="text-right border-top-0 border-right-0 border-bottom-0">
|
|
|
|
{{ trans('invoices.discount') }}
|
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@stack('discount_th_end')
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stack('total_th_start')
|
|
|
|
@if (!$hideAmount)
|
2020-12-28 16:21:09 +03:00
|
|
|
<th class="text-right border-top-0 border-bottom-0 item-total">
|
|
|
|
{{ trans($textAmount) }}
|
|
|
|
</th>
|
2020-12-24 01:28:38 +03:00
|
|
|
@endif
|
|
|
|
@stack('total_th_end')
|
|
|
|
|
|
|
|
@stack('remove_th_start')
|
|
|
|
<th class="text-left border-top-0 border-right-0 border-bottom-0"></th>
|
|
|
|
@stack('remove_th_end')
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody id="invoice-item-rows">
|
|
|
|
@include('components.documents.form.line-item')
|
|
|
|
|
|
|
|
@stack('add_item_td_start')
|
|
|
|
<tr id="addItem">
|
|
|
|
<td class="text-right border-bottom-0" colspan="{{ '7' }}">
|
2020-12-28 17:17:42 +03:00
|
|
|
<x-select-item-button
|
|
|
|
type="{{ $type }}"
|
|
|
|
is-sale="{{ $isSalePrice }}"
|
|
|
|
is-purchase="{{ $isPurchasePrice }}"
|
|
|
|
/>
|
2020-12-24 01:28:38 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@stack('add_item_td_end')
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|