From c1f6d2d0bb5546352ed51843caba371674f72766 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 6 Sep 2022 11:33:16 +0300 Subject: [PATCH] mail templates refactored for chinese lang --- public/css/app.css | 4 -- .../documents/template/classic.blade.php | 20 +++---- .../documents/template/default.blade.php | 44 ++++++++------ .../documents/template/modern.blade.php | 20 +++---- .../components/layouts/print/head.blade.php | 2 +- .../transactions/template/default.blade.php | 58 +++++++++---------- .../transfers/template/default.blade.php | 48 +++++++-------- .../transfers/template/second.blade.php | 48 +++++++-------- .../transfers/template/third.blade.php | 48 +++++++-------- 9 files changed, 149 insertions(+), 143 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index c2ca0f4cb..150baf2bf 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -48200,10 +48200,6 @@ body{ grid-column: span 8 / span 8; } - .sm\:col-span-7{ - grid-column: span 7 / span 7; - } - .sm\:col-span-12{ grid-column: span 12 / span 12; } diff --git a/resources/views/components/documents/template/classic.blade.php b/resources/views/components/documents/template/classic.blade.php index 07453e509..af012dcea 100644 --- a/resources/views/components/documents/template/classic.blade.php +++ b/resources/views/components/documents/template/classic.blade.php @@ -239,43 +239,43 @@ @stack('name_th_start') @if (! $hideItems || (! $hideName && ! $hideDescription)) - + {{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }} - + @endif @stack('name_th_end') @stack('quantity_th_start') @if (! $hideQuantity) - + {{ trans($textQuantity) }} - + @endif @stack('quantity_th_end') @stack('price_th_start') @if (! $hidePrice) - + {{ trans($textPrice) }} - + @endif @stack('price_th_end') @if (! $hideDiscount) @if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) @stack('discount_td_start') - + {{ trans('invoices.discount') }} - + @stack('discount_td_end') @endif @endif @stack('total_th_start') @if (! $hideAmount) - + {{ trans($textAmount) }} - + @endif @stack('total_th_end') diff --git a/resources/views/components/documents/template/default.blade.php b/resources/views/components/documents/template/default.blade.php index dd8b7cc8b..023e80b44 100644 --- a/resources/views/components/documents/template/default.blade.php +++ b/resources/views/components/documents/template/default.blade.php @@ -200,43 +200,53 @@ @stack('name_th_start') @if (! $hideItems || (! $hideName && ! $hideDescription)) - - {{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }} - + + + {{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }} + + @endif @stack('name_th_end') @stack('quantity_th_start') @if (! $hideQuantity) - - {{ trans($textQuantity) }} - + + + {{ trans($textQuantity) }} + + @endif @stack('quantity_th_end') @stack('price_th_start') @if (! $hidePrice) - - {{ trans($textPrice) }} - + + + {{ trans($textPrice) }} + + @endif @stack('price_th_end') @if (! $hideDiscount) @if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) @stack('discount_td_start') - - {{ trans('invoices.discount') }} - + + + {{ trans('invoices.discount') }} + + @stack('discount_td_end') @endif @endif @stack('total_th_start') @if (! $hideAmount) - - {{ trans($textAmount) }} - + + + {{ trans($textAmount) }} + + @endif @stack('total_th_end') @@ -337,9 +347,9 @@
- + {!! nl2br($document->footer) !!} - +
diff --git a/resources/views/components/documents/template/modern.blade.php b/resources/views/components/documents/template/modern.blade.php index 15f3498cb..ee83c890b 100644 --- a/resources/views/components/documents/template/modern.blade.php +++ b/resources/views/components/documents/template/modern.blade.php @@ -211,25 +211,25 @@ @stack('name_th_start') @if (! $hideItems || (! $hideName && ! $hideDescription)) - + {{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }} - + @endif @stack('name_th_end') @stack('quantity_th_start') @if (! $hideQuantity) - + {{ trans($textQuantity) }} - + @endif @stack('quantity_th_end') @stack('price_th_start') @if (! $hidePrice) - + {{ trans($textPrice) }} - + @endif @stack('price_th_end') @@ -245,9 +245,9 @@ @stack('total_th_start') @if (! $hideAmount) - + {{ trans($textAmount) }} - + @endif @stack('total_th_end') @@ -348,9 +348,9 @@
- + {!! nl2br($document->footer) !!} - +
diff --git a/resources/views/components/layouts/print/head.blade.php b/resources/views/components/layouts/print/head.blade.php index 2956c0565..41222b6c2 100644 --- a/resources/views/components/layouts/print/head.blade.php +++ b/resources/views/components/layouts/print/head.blade.php @@ -20,7 +20,7 @@ - @if (isset($currency_style) && $currency_style && in_array(app()->getLocale(), ['zh-CN', 'ja-JP', 'zh-TW'])) + @if (isset($currency_style) && $currency_style || in_array(app()->getLocale(), ['zh-CN', 'ja-JP', 'zh-TW']))