146 lines
7.5 KiB
PHP
Raw Normal View History

2022-09-23 12:19:17 +03:00
<div class="relative sm:col-span-6 overflow-x-scroll large-overflow-unset">
2022-06-01 10:15:55 +03:00
<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;">
2022-10-11 11:51:27 +03:00
<col class="small-col name-col" style="width: 20%;">
<col class="small-col description-col" style="width: 30%;">
2022-06-01 10:15:55 +03:00
<col class="small-col" style="width: 12%;">
<col class="small-col" style="width: 15%;">
2022-10-11 11:51:27 +03:00
<col class="small-col amount-col" style="width: 20%;">
2022-06-01 10:15:55 +03:00
<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-12-14 17:31:40 +03:00
<th class="w-6 block text-left border-t-0 border-r-0 border-b-0" style="vertical-align:bottom;">
2022-06-01 10:15:55 +03:00
@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
<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;">
2022-07-26 13:57:04 +03:00
@if (! $hideItemName)
{{ (trans_choice($textItemName, 2) != $textItemName) ? trans_choice($textItemName, 2) : trans($textItemName) }}
@if ($hideSettingItemName)
&nbsp;&nbsp;
<x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
<x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
</x-tooltip>
@endif
2022-07-26 13:57:04 +03:00
@endif
2021-01-04 18:26:52 +03:00
</th>
2022-06-01 10:15:55 +03:00
2021-01-04 18:26:52 +03:00
@stack('name_th_end')
2020-12-24 01:28:38 +03:00
@stack('description_th_start')
2022-06-01 10:15:55 +03:00
2022-07-26 13:57:04 +03:00
<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;">
@if (! $hideItemDescription)
2022-06-01 10:15:55 +03:00
{{ trans($textItemDescription) }}
@if ($hideSettingItemDescription)
&nbsp;&nbsp;
<x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
<x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
</x-tooltip>
@endif
2022-07-26 13:57:04 +03:00
@endif
</th>
@stack('description_th_end')
2020-12-24 01:28:38 +03:00
@endif
@stack('quantity_th_start')
2022-06-01 10:15:55 +03:00
2022-07-26 13:57:04 +03:00
<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;">
@if (! $hideItemQuantity)
2022-06-01 10:15:55 +03:00
{{ trans($textItemQuantity) }}
@if ($hideSettingItemQuantity)
&nbsp;&nbsp;
<x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
<x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
</x-tooltip>
@endif
2022-07-26 13:57:04 +03:00
@endif
</th>
2022-06-01 10:15:55 +03:00
2020-12-24 01:28:38 +03:00
@stack('quantity_th_end')
@stack('price_th_start')
2022-06-01 10:15:55 +03:00
2022-07-26 13:57:04 +03:00
<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;">
@if (! $hideItemPrice)
{{ trans($textItemPrice) }}
@if ($hideSettingItemPrice)
&nbsp;&nbsp;
<x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
<x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
</x-tooltip>
@endif
2022-07-26 13:57:04 +03:00
@endif
</th>
2020-12-24 01:28:38 +03:00
@stack('price_th_end')
@stack('total_th_start')
2022-06-01 10:15:55 +03:00
2022-07-26 13:57:04 +03:00
<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;">
@if (! $hideItemAmount)
2022-06-01 10:15:55 +03:00
{{ trans($textItemAmount) }}
@if ($hideSettingItemAmount)
&nbsp;&nbsp;
<x-tooltip id="tooltip-item-price" placement="top" message="{{ trans('documents.item_price_hidden', ['type' => config('type.document.' . $type . '.translation.prefix')]) }}">
<x-icon icon="visibility_off" class="text-sm font-normal"></x-icon>
</x-tooltip>
@endif
2022-07-26 13:57:04 +03:00
@endif
</th>
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 align-bottom" style="width:24px; display:block;">
2022-06-01 10:15:55 +03:00
<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>