Document form component styling..

This commit is contained in:
Cüneyt Şentürk
2020-12-28 16:21:09 +03:00
parent f8d0075f79
commit 47917a0cc8
16 changed files with 749 additions and 1028 deletions

View File

@ -45,6 +45,16 @@
text-due-at="{{ $textDueAt }}"
hide-order-number="{{ $hideOrderNumber }}"
text-order-number="{{ $textOrderNumber }}"
hide-edit-item-columns="{{ $hideEditItemColumns }}"
hide-items="{{ $hideItems }}"
text-items="{{ $textItems }}"
hide-quantity="{{ $hideQuantity }}"
text-quantity="{{ $textQuantity }}"
hide-price="{{ $hidePrice }}"
text-price="{{ $textPrice }}"
hide-discount="{{ $hideDiscount }}"
hide-amount="{{ $hideAmount }}"
text-amount="{{ $textAmount }}"
/>
@if (!$hideFooter)

View File

@ -24,7 +24,9 @@
@if (!$hideItems)
@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>
<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')
@stack('move_th_start')
@ -34,27 +36,35 @@
@stack('quantity_th_start')
@if (!$hideQuantity)
<th class="text-center border-top-0 border-right-0 border-bottom-0" style="padding-right: 5px;">{{ trans($textQuantity) }}</th>
<th class="text-center border-top-0 border-right-0 border-bottom-0" style="padding-right: 5px;">
{{ trans($textQuantity) }}
</th>
@endif
@stack('quantity_th_end')
@stack('price_th_start')
@if (!$hidePrice)
<th class="text-right border-top-0 border-right-0 border-bottom-0" style="padding-left: 5px;">{{ trans($textPrice) }}</th>
<th class="text-right border-top-0 border-right-0 border-bottom-0" style="padding-left: 5px;">
{{ trans($textPrice) }}
</th>
@endif
@stack('price_th_end')
@if (!$hideDiscount)
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
@stack('discount_th_start')
<th class="text-right border-top-0 border-right-0 border-bottom-0">{{ trans('invoices.discount') }}</th>
<th class="text-right border-top-0 border-right-0 border-bottom-0">
{{ trans('invoices.discount') }}
</th>
@stack('discount_th_end')
@endif
@endif
@stack('total_th_start')
@if (!$hideAmount)
<th class="text-right border-top-0 border-bottom-0 item-total">{{ trans($textAmount) }}</th>
<th class="text-right border-top-0 border-bottom-0 item-total">
{{ trans($textAmount) }}
</th>
@endif
@stack('total_th_end')

View File

@ -18,6 +18,16 @@
<x-documents.form.items
type="{{ $type }}"
:document="$document"
hide-edit-item-columns="{{ $hideEditItemColumns }}"
hide-items="{{ $hideItems }}"
text-items="{{ $textItems }}"
hide-quantity="{{ $hideQuantity }}"
text-quantity="{{ $textQuantity }}"
hide-price="{{ $hidePrice }}"
text-price="{{ $textPrice }}"
hide-discount="{{ $hideDiscount }}"
hide-amount="{{ $hideAmount }}"
text-amount="{{ $textAmount }}"
/>
<x-documents.form.totals