diff --git a/config/type.php b/config/type.php index b856a459a..c77f0217b 100644 --- a/config/type.php +++ b/config/type.php @@ -293,6 +293,7 @@ return [ 'contact_type' => 'vendor', 'inventory_stock_action' => 'increase', // increases stock in stock tracking 'hide' => [], + 'class' => [], 'notification' => [ ], diff --git a/resources/views/components/documents/template/classic.blade.php b/resources/views/components/documents/template/classic.blade.php index 39ffbdb26..621d83989 100644 --- a/resources/views/components/documents/template/classic.blade.php +++ b/resources/views/components/documents/template/classic.blade.php @@ -38,17 +38,22 @@ @endif @if (! $hideCompanyDetails) + @stack('company_name_input_start') @if (! $hideCompanyName)
{{ setting('company.name') }}
@endif + @stack('company_name_input_end') + @stack('company_address_input_start') @if (! $hideCompanyAddress){!! nl2br(setting('company.address')) !!} {!! $document->company->location !!}
@endif + @stack('company_address_input_end') + @stack('company_tax_number_input_start') @if (! $hideCompanyTaxNumber) @if (setting('company.tax_number'))@@ -59,7 +64,9 @@
@endif @endif + @stack('company_tax_number_input_end') + @stack('company_phone_input_start') @if (! $hideCompanyPhone) @if (setting('company.phone'))@@ -67,12 +74,15 @@
@endif @endif + @stack('company_phone_input_end') + @stack('company_email_input_start') @if (! $hideCompanyEmail){{ setting('company.email') }}
@endif + @stack('company_email_input_end') @endif @stack('company_details_end') diff --git a/resources/views/components/documents/template/default.blade.php b/resources/views/components/documents/template/default.blade.php index b1f7262c2..98bec6626 100644 --- a/resources/views/components/documents/template/default.blade.php +++ b/resources/views/components/documents/template/default.blade.php @@ -36,27 +36,34 @@ @endif @if (! $hideCompanyDetails) + + @stack('company_name_input_start') @if (! $hideCompanyName){{ setting('company.name') }}
@endif + @stack('company_name_input_end') + + @stack('company_address_input_start') @if (! $hideCompanyAddress){!! nl2br(setting('company.address')) !!} {!! $document->company->location !!}
@endif + @stack('company_address_input_end') + @stack('company_tax_number_input_start') @if (! $hideCompanyTaxNumber) - @if (setting('company.tax_number')){{ trans('general.tax_number') }}: {{ setting('company.tax_number') }}
@endif - @endif + @stack('company_tax_number_input_end') + @stack('company_phone_input_start') @if (! $hideCompanyPhone) @if (setting('company.phone'))@@ -64,10 +71,13 @@
@endif @endif + @stack('company_phone_input_end') + @stack('company_email_input_start') @if (! $hideCompanyEmail){{ setting('company.email') }}
@endif + @stack('company_email_input_end') @endif @stack('company_details_end') diff --git a/resources/views/components/documents/template/modern.blade.php b/resources/views/components/documents/template/modern.blade.php index ea24b0c6f..ed6ab9a81 100644 --- a/resources/views/components/documents/template/modern.blade.php +++ b/resources/views/components/documents/template/modern.blade.php @@ -35,20 +35,25 @@ @endif + @stack('company_name_input_start') @if (! $hideCompanyName){{ setting('company.name') }}
@endif + @stack('company_name_input_end') @if (! $hideCompanyDetails) + @stack('company_address_input_start') @if (! $hideCompanyAddress){!! nl2br(setting('company.address')) !!} {!! $document->company->location !!}
@endif + @stack('company_address_input_end') + @stack('company_tax_number_input_start') @if (! $hideCompanyTaxNumber)@if (setting('company.tax_number')) @@ -60,7 +65,9 @@ @endif
@endif + @stack('company_tax_number_input_end') + @stack('company_phone_input_start') @if (!$hideCompanyPhone)@if (setting('company.phone')) @@ -68,12 +75,15 @@ @endif
@endif + @stack('company_phone_input_end') + @stack('company_email_input_start') @if (!$hideCompanyEmail){{ setting('company.email') }}
@endif + @stack('company_email_input_end') @endif @stack('company_details_end')