110 lines
4.7 KiB
PHP
Raw Normal View History

2022-06-01 10:15:55 +03:00
<div class="relative sm:col-span-6">
<div style="table-layout: fixed;">
<div class="overflow-x-visible overflow-y-hidden">
<table class="small-table-width" id="items">
2020-12-24 01:28:38 +03:00
<colgroup>
2022-06-01 10:15:55 +03:00
<col class="small-col" style="width: 24px;">
<col class="small-col" style="width: 20%;">
<col class="small-col" style="width: 30%;">
<col class="small-col" style="width: 12%;">
<col class="small-col" style="width: 15%;">
<col class="small-col" style="width: 20%;">
<col class="small-col" style="width: 24px;">
2020-12-24 01:28:38 +03:00
</colgroup>
2022-06-01 10:15:55 +03:00
<thead class="border-b">
2020-12-24 01:28:38 +03:00
<tr>
@stack('move_th_start')
2022-06-01 10:15:55 +03:00
<th class="text-left border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
@if (! $hideEditItemColumns)
<x-documents.form.item-columns :type="$type" />
@endif
</th>
2020-12-24 01:28:38 +03:00
@stack('move_th_end')
2022-06-01 10:15:55 +03:00
@if (! $hideItems)
2021-01-04 18:26:52 +03:00
@stack('name_th_start')
2022-06-01 10:15:55 +03:00
@if (! $hideItemName)
<th class="px-3 py-1 ltr:pl-2 rtl:pr-2 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
{{ (trans_choice($textItemName, 2) != $textItemName) ? trans_choice($textItemName, 2) : trans($textItemName) }}
2021-01-04 18:26:52 +03:00
</th>
2022-06-01 10:15:55 +03:00
@endif
2021-01-04 18:26:52 +03:00
@stack('name_th_end')
2020-12-24 01:28:38 +03:00
2021-01-04 18:26:52 +03:00
@stack('move_th_start')
2022-06-01 10:15:55 +03:00
@if (! $hideItemDescription)
<th class="px-3 py-1 text-left text-xs font-normal border-t-0 border-r-0 border-b-0" style=" vertical-align:bottom;">
{{ trans($textItemDescription) }}
</th>
@endif
2021-01-04 18:26:52 +03:00
@stack('move_th_end')
2020-12-24 01:28:38 +03:00
@endif
@stack('quantity_th_start')
2022-06-01 10:15:55 +03:00
@if (! $hideItemQuantity)
<th class="px-3 py-1 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
{{ trans($textItemQuantity) }}
2021-01-12 13:23:54 +03:00
</th>
2022-06-01 10:15:55 +03:00
@endif
2020-12-24 01:28:38 +03:00
@stack('quantity_th_end')
@stack('price_th_start')
2022-06-01 10:15:55 +03:00
@if (! $hideItemPrice)
<th class="px-3 py-1 ltr:text-left rtl:text-right text-xs font-normal border-t-0 border-r-0 border-b-0 pr-1" style="vertical-align:bottom;">
{{ trans($textItemPrice) }}
2021-01-12 13:23:54 +03:00
</th>
2022-06-01 10:15:55 +03:00
@endif
2020-12-24 01:28:38 +03:00
@stack('price_th_end')
@stack('total_th_start')
2022-06-01 10:15:55 +03:00
@if (! $hideItemAmount)
<th class="px-3 py-1 ltr:text-right rtl:text-left text-xs font-normal border-t-0 border-b-0 item-total" style="vertical-align:bottom;">
{{ trans($textItemAmount) }}
2021-01-12 13:23:54 +03:00
</th>
2022-06-01 10:15:55 +03:00
@endif
2020-12-24 01:28:38 +03:00
@stack('total_th_end')
@stack('remove_th_start')
2022-06-01 10:15:55 +03:00
<th class="border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
<div></div>
</th>
2020-12-24 01:28:38 +03:00
@stack('remove_th_end')
</tr>
</thead>
2022-06-01 10:15:55 +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">
<x-documents.form.line-item :type="$type" />
2020-12-24 01:28:38 +03:00
@stack('add_item_td_start')
2022-06-01 10:15:55 +03:00
<tr id="addItem">
<td colspan="7">
<x-documents.form.item-button
type="{{ $type }}"
is-sale="{{ $isSalePrice }}"
is-purchase="{{ $isPurchasePrice }}"
search-char-limit="{{ $searchCharLimit }}"
/>
</td>
</tr>
2020-12-24 01:28:38 +03:00
@stack('add_item_td_end')
</tbody>
</table>
</div>
</div>
</div>