mail templates refactored for chinese lang

This commit is contained in:
Burak Civan
2022-09-06 11:33:16 +03:00
parent 6d32c6c155
commit c1f6d2d0bb
9 changed files with 149 additions and 143 deletions

View File

@ -239,43 +239,43 @@
<tr>
@stack('name_th_start')
@if (! $hideItems || (! $hideName && ! $hideDescription))
<th class="item text font-semibold text-alignment-left text-left">
<td class="item text font-semibold text-alignment-left text-left">
{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}
</th>
</td>
@endif
@stack('name_th_end')
@stack('quantity_th_start')
@if (! $hideQuantity)
<th class="quantity text font-semibold text-alignment-right text-right">
<td class="quantity text font-semibold text-alignment-right text-right">
{{ trans($textQuantity) }}
</th>
</td>
@endif
@stack('quantity_th_end')
@stack('price_th_start')
@if (! $hidePrice)
<th class="price text font-semibold text-alignment-right text-right">
<td class="price text font-semibold text-alignment-right text-right">
{{ trans($textPrice) }}
</th>
</td>
@endif
@stack('price_th_end')
@if (! $hideDiscount)
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
@stack('discount_td_start')
<th class="discount text font-semibold text-alignment-right text-right">
<td class="discount text font-semibold text-alignment-right text-right">
{{ trans('invoices.discount') }}
</th>
</td>
@stack('discount_td_end')
@endif
@endif
@stack('total_th_start')
@if (! $hideAmount)
<th class="total text font-semibold text-alignment-right text-right">
<td class="total text font-semibold text-alignment-right text-right">
{{ trans($textAmount) }}
</th>
</td>
@endif
@stack('total_th_end')
</tr>

View File

@ -200,43 +200,53 @@
<tr>
@stack('name_th_start')
@if (! $hideItems || (! $hideName && ! $hideDescription))
<th class="item text font-semibold text-alignment-left text-left text-white border-radius-first">
{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}
</th>
<td class="item text font-semibold text-alignment-left text-left text-white border-radius-first">
<span>
{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}
</span>
</td>
@endif
@stack('name_th_end')
@stack('quantity_th_start')
@if (! $hideQuantity)
<th class="quantity text font-semibold text-alignment-right text-right text-white">
{{ trans($textQuantity) }}
</th>
<td class="quantity text font-semibold text-alignment-right text-right text-white">
<span>
{{ trans($textQuantity) }}
</span>
</td>
@endif
@stack('quantity_th_end')
@stack('price_th_start')
@if (! $hidePrice)
<th class="price text font-semibold text-alignment-right text-right text-white">
{{ trans($textPrice) }}
</th>
<td class="price text font-semibold text-alignment-right text-right text-white">
<span>
{{ trans($textPrice) }}
</span>
</td>
@endif
@stack('price_th_end')
@if (! $hideDiscount)
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
@stack('discount_td_start')
<th class="discount text font-semibold text-alignment-right text-right text-white">
{{ trans('invoices.discount') }}
</th>
<td class="discount text font-semibold text-alignment-right text-right text-white">
<span>
{{ trans('invoices.discount') }}
</span>
</td>
@stack('discount_td_end')
@endif
@endif
@stack('total_th_start')
@if (! $hideAmount)
<th class="total text font-semibold text-white text-alignment-right text-right border-radius-last">
{{ trans($textAmount) }}
</th>
<td class="total text font-semibold text-white text-alignment-right text-right border-radius-last">
<span>
{{ trans($textAmount) }}
</span>
</td>
@endif
@stack('total_th_end')
</tr>
@ -337,9 +347,9 @@
<div class="row mt-4">
<div class="col-100 text-left">
<div class="text">
<strong>
<span class="font-bold">
{!! nl2br($document->footer) !!}
</strong>
</span>
</div>
</div>
</div>

View File

@ -211,25 +211,25 @@
<tr>
@stack('name_th_start')
@if (! $hideItems || (! $hideName && ! $hideDescription))
<th class="item text font-semibold text-alignment-left text-left text-white border-radius-first">
<td class="item text font-semibold text-alignment-left text-left text-white border-radius-first">
{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}
</th>
</td>
@endif
@stack('name_th_end')
@stack('quantity_th_start')
@if (! $hideQuantity)
<th class="quantity text font-semibold text-white text-alignment-right text-right">
<td class="quantity text font-semibold text-white text-alignment-right text-right">
{{ trans($textQuantity) }}
</th>
</td>
@endif
@stack('quantity_th_end')
@stack('price_th_start')
@if (! $hidePrice)
<th class="price text font-semibold text-white text-alignment-right text-right">
<td class="price text font-semibold text-white text-alignment-right text-right">
{{ trans($textPrice) }}
</th>
</td>
@endif
@stack('price_th_end')
@ -245,9 +245,9 @@
@stack('total_th_start')
@if (! $hideAmount)
<th class="total text font-semibold text-white text-alignment-right text-right border-radius-last">
<td class="total text font-semibold text-white text-alignment-right text-right border-radius-last">
{{ trans($textAmount) }}
</th>
</td>
@endif
@stack('total_th_end')
</tr>
@ -348,9 +348,9 @@
<div class="row mt-7">
<div class="col-100 py-top p-modern" style="background-color:{{ $backgroundColor }} !important; -webkit-print-color-adjust: exact;">
<div class="text pl-2">
<strong class="text-white">
<span class="text-white font-bold">
{!! nl2br($document->footer) !!}
</strong>
</span>
</div>
</div>
</div>