template customization change
This commit is contained in:
parent
be7b0f6b9e
commit
8f8a63985e
@ -1,143 +1,142 @@
|
|||||||
<div class="p-7 shadow-2xl rounded-2xl">
|
<div class="p-7 shadow-2xl rounded-2xl">
|
||||||
@if ($documentTemplate)
|
@switch($documentTemplate)
|
||||||
@switch($documentTemplate)
|
@case('classic')
|
||||||
@case('classic')
|
<x-documents.template.classic
|
||||||
<x-documents.template.classic
|
type="{{ $type }}"
|
||||||
type="{{ $type }}"
|
:document="$document"
|
||||||
:document="$document"
|
document-template="{{ $documentTemplate }}"
|
||||||
document-template="{{ $documentTemplate }}"
|
logo="{{ $logo }}"
|
||||||
logo="{{ $logo }}"
|
background-color="{{ $backgroundColor }}"
|
||||||
background-color="{{ $backgroundColor }}"
|
hide-footer="{{ $hideFooter }}"
|
||||||
hide-footer="{{ $hideFooter }}"
|
hide-company-logo="{{ $hideCompanyLogo }}"
|
||||||
hide-company-logo="{{ $hideCompanyLogo }}"
|
hide-company-details="{{ $hideCompanyDetails }}"
|
||||||
hide-company-details="{{ $hideCompanyDetails }}"
|
hide-company-name="{{ $hideCompanyName }}"
|
||||||
hide-company-name="{{ $hideCompanyName }}"
|
hide-company-address="{{ $hideCompanyAddress }}"
|
||||||
hide-company-address="{{ $hideCompanyAddress }}"
|
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
||||||
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
hide-company-phone="{{ $hideCompanyPhone }}"
|
||||||
hide-company-phone="{{ $hideCompanyPhone }}"
|
hide-company-email="{{ $hideCompanyEmail }}"
|
||||||
hide-company-email="{{ $hideCompanyEmail }}"
|
hide-contact-info="{{ $hideContactInfo }}"
|
||||||
hide-contact-info="{{ $hideContactInfo }}"
|
hide-contact-name="{{ $hideContactName }}"
|
||||||
hide-contact-name="{{ $hideContactName }}"
|
hide-contact-address="{{ $hideContactAddress }}"
|
||||||
hide-contact-address="{{ $hideContactAddress }}"
|
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
||||||
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
hide-contact-phone="{{ $hideContactPhone }}"
|
||||||
hide-contact-phone="{{ $hideContactPhone }}"
|
hide-contact-email="{{ $hideContactEmail }}"
|
||||||
hide-contact-email="{{ $hideContactEmail }}"
|
hide-order-number="{{ $hideOrderNumber }}"
|
||||||
hide-order-number="{{ $hideOrderNumber }}"
|
hide-document-number="{{ $hideDocumentNumber }}"
|
||||||
hide-document-number="{{ $hideDocumentNumber }}"
|
hide-issued-at="{{ $hideIssuedAt }}"
|
||||||
hide-issued-at="{{ $hideIssuedAt }}"
|
hide-due-at="{{ $hideDueAt }}"
|
||||||
hide-due-at="{{ $hideDueAt }}"
|
text-contact-info="{{ $textContactInfo }}"
|
||||||
text-contact-info="{{ $textContactInfo }}"
|
text-issued-at="{{ $textIssuedAt }}"
|
||||||
text-issued-at="{{ $textIssuedAt }}"
|
text-document-number="{{ $textDocumentNumber }}"
|
||||||
text-document-number="{{ $textDocumentNumber }}"
|
text-due-at="{{ $textDueAt }}"
|
||||||
text-due-at="{{ $textDueAt }}"
|
text-order-number="{{ $textOrderNumber }}"
|
||||||
text-order-number="{{ $textOrderNumber }}"
|
text-document-title="{{ $textDocumentTitle }}"
|
||||||
text-document-title="{{ $textDocumentTitle }}"
|
text-document-subheading="{{ $textDocumentSubheading }}"
|
||||||
text-document-subheading="{{ $textDocumentSubheading }}"
|
hide-items="{{ $hideItems }}"
|
||||||
hide-items="{{ $hideItems }}"
|
hide-name="{{ $hideName }}"
|
||||||
hide-name="{{ $hideName }}"
|
hide-description="{{ $hideDescription }}"
|
||||||
hide-description="{{ $hideDescription }}"
|
hide-quantity="{{ $hideQuantity }}"
|
||||||
hide-quantity="{{ $hideQuantity }}"
|
hide-price="{{ $hidePrice }}"
|
||||||
hide-price="{{ $hidePrice }}"
|
hide-amount="{{ $hideAmount }}"
|
||||||
hide-amount="{{ $hideAmount }}"
|
hide-note="{{ $hideNote }}"
|
||||||
hide-note="{{ $hideNote }}"
|
text-items="{{ $textItems }}"
|
||||||
text-items="{{ $textItems }}"
|
text-quantity="{{ $textQuantity }}"
|
||||||
text-quantity="{{ $textQuantity }}"
|
text-price="{{ $textPrice }}"
|
||||||
text-price="{{ $textPrice }}"
|
text-amount="{{ $textAmount }}"
|
||||||
text-amount="{{ $textAmount }}"
|
/>
|
||||||
/>
|
@break
|
||||||
@break
|
@case('modern')
|
||||||
@case('modern')
|
<x-documents.template.modern
|
||||||
<x-documents.template.modern
|
type="{{ $type }}"
|
||||||
type="{{ $type }}"
|
:document="$document"
|
||||||
:document="$document"
|
document-template="{{ $documentTemplate }}"
|
||||||
document-template="{{ $documentTemplate }}"
|
logo="{{ $logo }}"
|
||||||
logo="{{ $logo }}"
|
background-color="{{ $backgroundColor }}"
|
||||||
background-color="{{ $backgroundColor }}"
|
hide-footer="{{ $hideFooter }}"
|
||||||
hide-footer="{{ $hideFooter }}"
|
hide-company-logo="{{ $hideCompanyLogo }}"
|
||||||
hide-company-logo="{{ $hideCompanyLogo }}"
|
hide-company-details="{{ $hideCompanyDetails }}"
|
||||||
hide-company-details="{{ $hideCompanyDetails }}"
|
hide-company-name="{{ $hideCompanyName }}"
|
||||||
hide-company-name="{{ $hideCompanyName }}"
|
hide-company-address="{{ $hideCompanyAddress }}"
|
||||||
hide-company-address="{{ $hideCompanyAddress }}"
|
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
||||||
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
hide-company-phone="{{ $hideCompanyPhone }}"
|
||||||
hide-company-phone="{{ $hideCompanyPhone }}"
|
hide-company-email="{{ $hideCompanyEmail }}"
|
||||||
hide-company-email="{{ $hideCompanyEmail }}"
|
hide-contact-info="{{ $hideContactInfo }}"
|
||||||
hide-contact-info="{{ $hideContactInfo }}"
|
hide-contact-name="{{ $hideContactName }}"
|
||||||
hide-contact-name="{{ $hideContactName }}"
|
hide-contact-address="{{ $hideContactAddress }}"
|
||||||
hide-contact-address="{{ $hideContactAddress }}"
|
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
||||||
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
hide-contact-phone="{{ $hideContactPhone }}"
|
||||||
hide-contact-phone="{{ $hideContactPhone }}"
|
hide-contact-email="{{ $hideContactEmail }}"
|
||||||
hide-contact-email="{{ $hideContactEmail }}"
|
hide-order-number="{{ $hideOrderNumber }}"
|
||||||
hide-order-number="{{ $hideOrderNumber }}"
|
hide-document-number="{{ $hideDocumentNumber }}"
|
||||||
hide-document-number="{{ $hideDocumentNumber }}"
|
hide-issued-at="{{ $hideIssuedAt }}"
|
||||||
hide-issued-at="{{ $hideIssuedAt }}"
|
hide-due-at="{{ $hideDueAt }}"
|
||||||
hide-due-at="{{ $hideDueAt }}"
|
text-contact-info="{{ $textContactInfo }}"
|
||||||
text-contact-info="{{ $textContactInfo }}"
|
text-issued-at="{{ $textIssuedAt }}"
|
||||||
text-issued-at="{{ $textIssuedAt }}"
|
text-document-number="{{ $textDocumentNumber }}"
|
||||||
text-document-number="{{ $textDocumentNumber }}"
|
text-due-at="{{ $textDueAt }}"
|
||||||
text-due-at="{{ $textDueAt }}"
|
text-order-number="{{ $textOrderNumber }}"
|
||||||
text-order-number="{{ $textOrderNumber }}"
|
text-document-title="{{ $textDocumentTitle }}"
|
||||||
text-document-title="{{ $textDocumentTitle }}"
|
text-document-subheading="{{ $textDocumentSubheading }}"
|
||||||
text-document-subheading="{{ $textDocumentSubheading }}"
|
hide-items="{{ $hideItems }}"
|
||||||
hide-items="{{ $hideItems }}"
|
hide-name="{{ $hideName }}"
|
||||||
hide-name="{{ $hideName }}"
|
hide-description="{{ $hideDescription }}"
|
||||||
hide-description="{{ $hideDescription }}"
|
hide-quantity="{{ $hideQuantity }}"
|
||||||
hide-quantity="{{ $hideQuantity }}"
|
hide-price="{{ $hidePrice }}"
|
||||||
hide-price="{{ $hidePrice }}"
|
hide-amount="{{ $hideAmount }}"
|
||||||
hide-amount="{{ $hideAmount }}"
|
hide-note="{{ $hideNote }}"
|
||||||
hide-note="{{ $hideNote }}"
|
text-items="{{ $textItems }}"
|
||||||
text-items="{{ $textItems }}"
|
text-quantity="{{ $textQuantity }}"
|
||||||
text-quantity="{{ $textQuantity }}"
|
text-price="{{ $textPrice }}"
|
||||||
text-price="{{ $textPrice }}"
|
text-amount="{{ $textAmount }}"
|
||||||
text-amount="{{ $textAmount }}"
|
/>
|
||||||
/>
|
@break
|
||||||
@break
|
@case('default')
|
||||||
@default
|
<x-documents.template.ddefault
|
||||||
<x-documents.template.ddefault
|
type="{{ $type }}"
|
||||||
type="{{ $type }}"
|
:document="$document"
|
||||||
:document="$document"
|
document-template="{{ $documentTemplate }}"
|
||||||
document-template="{{ $documentTemplate }}"
|
logo="{{ $logo }}"
|
||||||
logo="{{ $logo }}"
|
background-color="{{ $backgroundColor }}"
|
||||||
background-color="{{ $backgroundColor }}"
|
hide-footer="{{ $hideFooter }}"
|
||||||
hide-footer="{{ $hideFooter }}"
|
hide-company-logo="{{ $hideCompanyLogo }}"
|
||||||
hide-company-logo="{{ $hideCompanyLogo }}"
|
hide-company-details="{{ $hideCompanyDetails }}"
|
||||||
hide-company-details="{{ $hideCompanyDetails }}"
|
hide-company-name="{{ $hideCompanyName }}"
|
||||||
hide-company-name="{{ $hideCompanyName }}"
|
hide-company-address="{{ $hideCompanyAddress }}"
|
||||||
hide-company-address="{{ $hideCompanyAddress }}"
|
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
||||||
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
hide-company-phone="{{ $hideCompanyPhone }}"
|
||||||
hide-company-phone="{{ $hideCompanyPhone }}"
|
hide-company-email="{{ $hideCompanyEmail }}"
|
||||||
hide-company-email="{{ $hideCompanyEmail }}"
|
hide-contact-info="{{ $hideContactInfo }}"
|
||||||
hide-contact-info="{{ $hideContactInfo }}"
|
hide-contact-name="{{ $hideContactName }}"
|
||||||
hide-contact-name="{{ $hideContactName }}"
|
hide-contact-address="{{ $hideContactAddress }}"
|
||||||
hide-contact-address="{{ $hideContactAddress }}"
|
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
||||||
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
hide-contact-phone="{{ $hideContactPhone }}"
|
||||||
hide-contact-phone="{{ $hideContactPhone }}"
|
hide-contact-email="{{ $hideContactEmail }}"
|
||||||
hide-contact-email="{{ $hideContactEmail }}"
|
hide-order-number="{{ $hideOrderNumber }}"
|
||||||
hide-order-number="{{ $hideOrderNumber }}"
|
hide-document-number="{{ $hideDocumentNumber }}"
|
||||||
hide-document-number="{{ $hideDocumentNumber }}"
|
hide-issued-at="{{ $hideIssuedAt }}"
|
||||||
hide-issued-at="{{ $hideIssuedAt }}"
|
hide-due-at="{{ $hideDueAt }}"
|
||||||
hide-due-at="{{ $hideDueAt }}"
|
text-contact-info="{{ $textContactInfo }}"
|
||||||
text-contact-info="{{ $textContactInfo }}"
|
text-issued-at="{{ $textIssuedAt }}"
|
||||||
text-issued-at="{{ $textIssuedAt }}"
|
text-document-number="{{ $textDocumentNumber }}"
|
||||||
text-document-number="{{ $textDocumentNumber }}"
|
text-due-at="{{ $textDueAt }}"
|
||||||
text-due-at="{{ $textDueAt }}"
|
text-order-number="{{ $textOrderNumber }}"
|
||||||
text-order-number="{{ $textOrderNumber }}"
|
text-document-title="{{ $textDocumentTitle }}"
|
||||||
text-document-title="{{ $textDocumentTitle }}"
|
text-document-subheading="{{ $textDocumentSubheading }}"
|
||||||
text-document-subheading="{{ $textDocumentSubheading }}"
|
hide-items="{{ $hideItems }}"
|
||||||
hide-items="{{ $hideItems }}"
|
hide-name="{{ $hideName }}"
|
||||||
hide-name="{{ $hideName }}"
|
hide-description="{{ $hideDescription }}"
|
||||||
hide-description="{{ $hideDescription }}"
|
hide-quantity="{{ $hideQuantity }}"
|
||||||
hide-quantity="{{ $hideQuantity }}"
|
hide-discount="{{ $hideDiscount }}"
|
||||||
hide-discount="{{ $hideDiscount }}"
|
hide-price="{{ $hidePrice }}"
|
||||||
hide-price="{{ $hidePrice }}"
|
hide-amount="{{ $hideAmount }}"
|
||||||
hide-amount="{{ $hideAmount }}"
|
hide-note="{{ $hideNote }}"
|
||||||
hide-note="{{ $hideNote }}"
|
text-items="{{ $textItems }}"
|
||||||
text-items="{{ $textItems }}"
|
text-quantity="{{ $textQuantity }}"
|
||||||
text-quantity="{{ $textQuantity }}"
|
text-price="{{ $textPrice }}"
|
||||||
text-price="{{ $textPrice }}"
|
text-amount="{{ $textAmount }}"
|
||||||
text-amount="{{ $textAmount }}"
|
/>
|
||||||
/>
|
@break
|
||||||
@endswitch
|
@default
|
||||||
@else
|
@include($documentTemplate)
|
||||||
@include($documentTemplate)
|
@endswitch
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
@ -1,68 +1,67 @@
|
|||||||
<div class="p-7 shadow-2xl rounded-2xl">
|
<div class="p-7 shadow-2xl rounded-2xl">
|
||||||
@if ($transactionTemplate)
|
@switch($transactionTemplate)
|
||||||
@switch($transactionTemplate)
|
@case('classic')
|
||||||
@case('classic')
|
@break
|
||||||
@break
|
@case('modern')
|
||||||
@case('modern')
|
@break
|
||||||
@break
|
@case('default')
|
||||||
@default
|
<x-transactions.template.ddefault
|
||||||
<x-transactions.template.ddefault
|
type="{{ $type }}"
|
||||||
type="{{ $type }}"
|
:transaction="$transaction"
|
||||||
:transaction="$transaction"
|
:payment_methods="$payment_methods"
|
||||||
:payment_methods="$payment_methods"
|
transaction-template="{{ $transactionTemplate }}"
|
||||||
transaction-template="{{ $transactionTemplate }}"
|
logo="{{ $logo }}"
|
||||||
logo="{{ $logo }}"
|
hide-company="{{ $hideCompany }}"
|
||||||
hide-company="{{ $hideCompany }}"
|
hide-company-logo="{{ $hideCompanyLogo }}"
|
||||||
hide-company-logo="{{ $hideCompanyLogo }}"
|
hide-company-details="{{ $hideCompanyDetails }}"
|
||||||
hide-company-details="{{ $hideCompanyDetails }}"
|
hide-company-name="{{ $hideCompanyName }}"
|
||||||
hide-company-name="{{ $hideCompanyName }}"
|
hide-company-address="{{ $hideCompanyAddress }}"
|
||||||
hide-company-address="{{ $hideCompanyAddress }}"
|
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
||||||
hide-company-tax-number="{{ $hideCompanyTaxNumber }}"
|
hide-company-phone="{{ $hideCompanyPhone }}"
|
||||||
hide-company-phone="{{ $hideCompanyPhone }}"
|
hide-company-email="{{ $hideCompanyEmail }}"
|
||||||
hide-company-email="{{ $hideCompanyEmail }}"
|
hide-content-title="{{ $hideContentTitle }}"
|
||||||
hide-content-title="{{ $hideContentTitle }}"
|
hide-number="{{ $hideNumber }}"
|
||||||
hide-number="{{ $hideNumber }}"
|
hide-paid-at="{{ $hidePaidAt }}"
|
||||||
hide-paid-at="{{ $hidePaidAt }}"
|
hide-account="{{ $hideAccount }}"
|
||||||
hide-account="{{ $hideAccount }}"
|
hide-category="{{ $hideCategory }}"
|
||||||
hide-category="{{ $hideCategory }}"
|
hide-payment-methods="{{ $hidePaymentMethods }}"
|
||||||
hide-payment-methods="{{ $hidePaymentMethods }}"
|
hide-reference="{{ $hideReference }}"
|
||||||
hide-reference="{{ $hideReference }}"
|
hide-description="{{ $hideDescription }}"
|
||||||
hide-description="{{ $hideDescription }}"
|
hide-amount="{{ $hideAmount }}"
|
||||||
hide-amount="{{ $hideAmount }}"
|
text-content-title="{{ $textContentTitle }}"
|
||||||
text-content-title="{{ $textContentTitle }}"
|
text-number="{{ $textNumber }}"
|
||||||
text-number="{{ $textNumber }}"
|
text-paid-at="{{ $textPaidAt }}"
|
||||||
text-paid-at="{{ $textPaidAt }}"
|
text-account="{{ $textAccount }}"
|
||||||
text-account="{{ $textAccount }}"
|
text-category="{{ $textCategory }}"
|
||||||
text-category="{{ $textCategory }}"
|
text-payment-methods="{{ $textPaymentMethods }}"
|
||||||
text-payment-methods="{{ $textPaymentMethods }}"
|
text-reference="{{ $textReference }}"
|
||||||
text-reference="{{ $textReference }}"
|
text-description="{{ $textDescription }}"
|
||||||
text-description="{{ $textDescription }}"
|
text-paid-by="{{ $textPaidBy }}"
|
||||||
text-paid-by="{{ $textPaidBy }}"
|
hide-contact="{{ $hideContact }}"
|
||||||
hide-contact="{{ $hideContact }}"
|
hide-contact-info="{{ $hideContactInfo }}"
|
||||||
hide-contact-info="{{ $hideContactInfo }}"
|
hide-contact-name="{{ $hideContactName }}"
|
||||||
hide-contact-name="{{ $hideContactName }}"
|
hide-contact-address="{{ $hideContactAddress }}"
|
||||||
hide-contact-address="{{ $hideContactAddress }}"
|
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
||||||
hide-contact-tax-number="{{ $hideContactTaxNumber }}"
|
hide-contact-phone="{{ $hideContactPhone }}"
|
||||||
hide-contact-phone="{{ $hideContactPhone }}"
|
hide-contact-email="{{ $hideContactEmail }}"
|
||||||
hide-contact-email="{{ $hideContactEmail }}"
|
hide-related="{{ $hideRelated }}"
|
||||||
hide-related="{{ $hideRelated }}"
|
hide-related-document-number="{{ $hideRelatedDocumentNumber }}"
|
||||||
hide-related-document-number="{{ $hideRelatedDocumentNumber }}"
|
hide-related-contact="{{ $hideRelatedContact }}"
|
||||||
hide-related-contact="{{ $hideRelatedContact }}"
|
hide-related-document-date="{{ $hideRelatedDocumentDate }}"
|
||||||
hide-related-document-date="{{ $hideRelatedDocumentDate }}"
|
hide-related-document-amount="{{ $hideRelatedDocumentAmount }}"
|
||||||
hide-related-document-amount="{{ $hideRelatedDocumentAmount }}"
|
hide-related-amount="{{ $hideRelatedAmount }}"
|
||||||
hide-related-amount="{{ $hideRelatedAmount }}"
|
text-related-transaction="{{ $textRelatedTransansaction }}"
|
||||||
text-related-transaction="{{ $textRelatedTransansaction }}"
|
text-related-document-number="{{ $textRelatedDocumentNumber }}"
|
||||||
text-related-document-number="{{ $textRelatedDocumentNumber }}"
|
text-related-contact="{{ $textRelatedContact }}"
|
||||||
text-related-contact="{{ $textRelatedContact }}"
|
text-related-document-date="{{ $textRelatedDocumentDate }}"
|
||||||
text-related-document-date="{{ $textRelatedDocumentDate }}"
|
text-related-document-amount="{{ $textRelatedDocumentAmount }}"
|
||||||
text-related-document-amount="{{ $textRelatedDocumentAmount }}"
|
text-related-amount="{{ $textRelatedAmount }}"
|
||||||
text-related-amount="{{ $textRelatedAmount }}"
|
route-document-show="{{ $routeDocumentShow }}"
|
||||||
route-document-show="{{ $routeDocumentShow }}"
|
/>
|
||||||
/>
|
@break
|
||||||
@endswitch
|
@default
|
||||||
@else
|
@include($transactionTemplate)
|
||||||
@include($transactionTemplate)
|
@endswitch
|
||||||
@endif
|
|
||||||
|
|
||||||
<akaunting-connect-transactions
|
<akaunting-connect-transactions
|
||||||
:show="connect.show"
|
:show="connect.show"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user