diff --git a/packages/Sarga/Payment/Config/paymentmethods.php b/packages/Sarga/Payment/Config/paymentmethods.php index ceb65e36f..3791716c3 100644 --- a/packages/Sarga/Payment/Config/paymentmethods.php +++ b/packages/Sarga/Payment/Config/paymentmethods.php @@ -1,18 +1,34 @@ [ + 'cash100' =>[ 'code' => 'cashbeforedelivery', 'title' => "I\\'ll pay by cash with deposit 100%", 'description' => 'Pay deposit 100% to gain 10% discount', - 'class' => 'Payment\Methods\Terminal', + 'class' => 'Sarga\Payment\Methods\Cash100', 'active' => true, 'sort' => 2, ], - 'terminal' => [ + 'cash50' =>[ + 'code' => 'cashbeforedelivery', + 'title' => "I\\'ll pay by cash with deposit 50%", + 'description' => 'Pay deposit 50%', + 'class' => 'Sarga\Payment\Methods\Cash50', + 'active' => true, + 'sort' => 2, + ], + 'terminal100' => [ 'code' => 'terminal', 'title' => "I\\'ll pay by card on terminal", 'description' => '50% deposit is taken before delivery', - 'class' => 'Payment\Methods\Terminal', + 'class' => 'Sarga\Payment\Methods\Terminal100', + 'active' => true, + 'sort' => 3, + ], + 'terminal50' => [ + 'code' => 'terminal', + 'title' => "I\\'ll pay by card on terminal", + 'description' => '50% deposit is taken before delivery', + 'class' => 'Sarga\Payment\Methods\Terminal50', 'active' => true, 'sort' => 3, ], @@ -25,13 +41,13 @@ return [ 'active' => false, 'sort' => 4 ], - 'tfeb' =>[ - 'code' => 'tfeb', - 'title' =>"I\\'ll pay by TFEB card", - 'description' => 'THE STATE BANK FOR FOREIGN ECONOMIC AFFAIRS OF TURKMENISTAN', - 'api_url' => 'https://ecomt.tfeb.gov.tm/v1/orders/', - 'class' => 'Sarga\Payment\Methods\TFEB', - 'active' => false, - 'sort' => 5 - ] +// 'tfeb' =>[ +// 'code' => 'tfeb', +// 'title' =>"I\\'ll pay by TFEB card", +// 'description' => 'THE STATE BANK FOR FOREIGN ECONOMIC AFFAIRS OF TURKMENISTAN', +// 'api_url' => 'https://ecomt.tfeb.gov.tm/v1/orders/', +// 'class' => 'Sarga\Payment\Methods\TFEB', +// 'active' => false, +// 'sort' => 5 +// ] ]; \ No newline at end of file diff --git a/packages/Sarga/Payment/Config/system.php b/packages/Sarga/Payment/Config/system.php index 4365a797f..73cd32c3a 100644 --- a/packages/Sarga/Payment/Config/system.php +++ b/packages/Sarga/Payment/Config/system.php @@ -2,8 +2,105 @@ return [ [ - 'key' => 'sales.paymentmethods.cashbeforedelivery', - 'name' => 'Cash Before Delivery', + 'key' => 'sales.paymentmethods.cash100', + 'name' => 'Nakit 100', + 'sort' => 1, + 'fields' => [ + [ + 'name' => 'title', + 'title' => 'admin::app.admin.system.title', + 'type' => 'depends', + 'depend' => 'active:1', + 'validation' => 'required_if:active,1', + 'channel_based' => true, + 'locale_based' => true, + ], [ + 'name' => 'description', + 'title' => 'admin::app.admin.system.description', + 'type' => 'textarea', + 'channel_based' => true, + 'locale_based' => true, + ], [ + 'name' => 'instructions', + 'title' => 'admin::app.admin.system.instructions', + 'type' => 'textarea', + 'channel_based' => true, + 'locale_based' => true, + ], [ + 'name' => 'generate_invoice', + 'title' => 'admin::app.admin.system.generate-invoice', + 'type' => 'boolean', + 'default_value' => false, + 'channel_based' => true, + 'locale_based' => false, + ], [ + 'name' => 'invoice_status', + 'title' => 'admin::app.admin.system.set-invoice-status', + 'validation' => 'required_if:generate_invoice,1', + 'type' => 'select', + 'options' => [ + [ + 'title' => 'admin::app.sales.invoices.status-pending', + 'value' => 'pending', + ], [ + 'title' => 'admin::app.sales.invoices.status-paid', + 'value' => 'paid', + ], + ], + 'info' => 'admin::app.admin.system.generate-invoice-applicable', + 'channel_based' => true, + 'locale_based' => false, + ], [ + 'name' => 'order_status', + 'title' => 'admin::app.admin.system.set-order-status', + 'type' => 'select', + 'options' => [ + [ + 'title' => 'admin::app.sales.orders.order-status-pending', + 'value' => 'pending', + ], [ + 'title' => 'admin::app.sales.orders.order-status-pending-payment', + 'value' => 'pending_payment', + ], [ + 'title' => 'admin::app.sales.orders.order-status-processing', + 'value' => 'processing', + ], + ], + 'info' => 'admin::app.admin.system.generate-invoice-applicable', + 'channel_based' => true, + 'locale_based' => false, + ], [ + 'name' => 'active', + 'title' => 'admin::app.admin.system.status', + 'type' => 'boolean', + 'validation' => 'required', + 'channel_based' => true, + 'locale_based' => true, + ], [ + 'name' => 'sort', + 'title' => 'admin::app.admin.system.sort_order', + 'type' => 'select', + 'options' => [ + [ + 'title' => '1', + 'value' => 1, + ], [ + 'title' => '2', + 'value' => 2, + ], [ + 'title' => '3', + 'value' => 3, + ], [ + 'title' => '4', + 'value' => 4, + ], + ], + ], + ], + ], + [ + 'key' => 'sales.paymentmethods.cash50', + 'name' => 'Nakit 50', 'sort' => 2, 'fields' => [ [ @@ -99,8 +196,8 @@ return [ ], ], [ - 'key' => 'sales.paymentmethods.terminal', - 'name' => 'Terminal', + 'key' => 'sales.paymentmethods.terminal100', + 'name' => 'Terminal 100', 'sort' => 3, 'fields' => [ [ @@ -194,6 +291,102 @@ return [ ], ], ], + ], [ + 'key' => 'sales.paymentmethods.terminal50', + 'name' => 'Terminal 50', + 'sort' => 4, + 'fields' => [ + [ + 'name' => 'title', + 'title' => 'admin::app.admin.system.title', + 'type' => 'depends', + 'depend' => 'active:1', + 'validation' => 'required_if:active,1', + 'channel_based' => false, + 'locale_based' => true, + ], [ + 'name' => 'description', + 'title' => 'admin::app.admin.system.description', + 'type' => 'textarea', + 'channel_based' => false, + 'locale_based' => true, + ], [ + 'name' => 'instructions', + 'title' => 'admin::app.admin.system.instructions', + 'type' => 'textarea', + 'channel_based' => false, + 'locale_based' => true, + ], [ + 'name' => 'generate_invoice', + 'title' => 'admin::app.admin.system.generate-invoice', + 'type' => 'boolean', + 'default_value' => false, + 'channel_based' => false, + 'locale_based' => false, + ], [ + 'name' => 'invoice_status', + 'title' => 'admin::app.admin.system.set-invoice-status', + 'validation' => 'required_if:generate_invoice,1', + 'type' => 'select', + 'options' => [ + [ + 'title' => 'admin::app.sales.invoices.status-pending', + 'value' => 'pending', + ], [ + 'title' => 'admin::app.sales.invoices.status-paid', + 'value' => 'paid', + ], + ], + 'info' => 'admin::app.admin.system.generate-invoice-applicable', + 'channel_based' => false, + 'locale_based' => false, + ], [ + 'name' => 'order_status', + 'title' => 'admin::app.admin.system.set-order-status', + 'type' => 'select', + 'options' => [ + [ + 'title' => 'admin::app.sales.orders.order-status-pending', + 'value' => 'pending', + ], [ + 'title' => 'admin::app.sales.orders.order-status-pending-payment', + 'value' => 'pending_payment', + ], [ + 'title' => 'admin::app.sales.orders.order-status-processing', + 'value' => 'processing', + ], + ], + 'info' => 'admin::app.admin.system.generate-invoice-applicable', + 'channel_based' => false, + 'locale_based' => false, + ], [ + 'name' => 'active', + 'title' => 'admin::app.admin.system.status', + 'type' => 'boolean', + 'validation' => 'required', + 'channel_based' => false, + 'locale_based' => true, + ], [ + 'name' => 'sort', + 'title' => 'admin::app.admin.system.sort_order', + 'type' => 'select', + 'options' => [ + [ + 'title' => '1', + 'value' => 1, + ], [ + 'title' => '2', + 'value' => 2, + ], [ + 'title' => '3', + 'value' => 3, + ], [ + 'title' => '4', + 'value' => 4, + ], + ], + ], + ], ], [ 'key' => 'sales.paymentmethods.altynasyr', @@ -277,98 +470,98 @@ return [ ] ] ], - [ - 'key' => 'sales.paymentmethods.tfeb', - 'name' => 'Online TFEB', - 'sort' => 5, - 'fields' => [ - [ - 'name' => 'title', - 'title' => 'admin::app.admin.system.title', - 'type' => 'depends', - 'depend' => 'active:1', - 'validation' => 'required_if:active,1', - 'channel_based' => false, - 'locale_based' => true, - ], [ - 'name' => 'description', - 'title' => 'admin::app.admin.system.description', - 'type' => 'textarea', - 'locale_based' => true - ], [ - 'name' => 'client_id', - 'title' => 'ClientID', - 'type' => 'depends', - 'depend' => 'active:1', - 'validation' => 'required_if:active,1', - ],[ - 'name' => 'client_secret', - 'title' => 'Client Secret', - 'type' => 'depends', - 'depend' => 'active:1', - 'validation' => 'required_if:active,1', - ],[ - 'name' => 'merchant', - 'title' => 'Merchant', - 'type' => 'depends', - 'depend' => 'active:1', - 'validation' => 'required_if:active,1', - ],[ - 'name' => 'terminal', - 'title' => 'Terminal', - 'type' => 'depends', - 'depend' => 'active:1', - 'validation' => 'required_if:active,1', - ],[ - 'name' => 'generate_invoice', - 'title' => 'admin::app.admin.system.generate-invoice', - 'type' => 'boolean', - 'default_value' => false, - 'channel_based' => false, - 'locale_based' => false, - ],[ - 'name' => 'invoice_status', - 'title' => 'admin::app.admin.system.set-invoice-status', - 'validation' => 'required_if:generate_invoice,1', - 'type' => 'select', - 'options' => [ - [ - 'title' => 'admin::app.sales.invoices.status-pending', - 'value' => 'pending', - ], [ - 'title' => 'admin::app.sales.invoices.status-paid', - 'value' => 'paid', - ], - ], - 'info' => 'admin::app.admin.system.generate-invoice-applicable', - 'channel_based' => false, - 'locale_based' => false, - ], [ - 'name' => 'order_status', - 'title' => 'admin::app.admin.system.set-order-status', - 'type' => 'select', - 'options' => [ - [ - 'title' => 'admin::app.sales.orders.order-status-pending', - 'value' => 'pending', - ], [ - 'title' => 'admin::app.sales.orders.order-status-pending-payment', - 'value' => 'pending_payment', - ], [ - 'title' => 'admin::app.sales.orders.order-status-processing', - 'value' => 'processing', - ], - ], - 'info' => 'admin::app.admin.system.generate-invoice-applicable', - 'channel_based' => false, - 'locale_based' => false, - ], [ - 'name' => 'active', - 'title' => 'admin::app.admin.system.status', - 'type' => 'boolean', - 'validation' => 'required', - - ] - ] - ] +// [ +// 'key' => 'sales.paymentmethods.tfeb', +// 'name' => 'Online TFEB', +// 'sort' => 5, +// 'fields' => [ +// [ +// 'name' => 'title', +// 'title' => 'admin::app.admin.system.title', +// 'type' => 'depends', +// 'depend' => 'active:1', +// 'validation' => 'required_if:active,1', +// 'channel_based' => false, +// 'locale_based' => true, +// ], [ +// 'name' => 'description', +// 'title' => 'admin::app.admin.system.description', +// 'type' => 'textarea', +// 'locale_based' => true +// ], [ +// 'name' => 'client_id', +// 'title' => 'ClientID', +// 'type' => 'depends', +// 'depend' => 'active:1', +// 'validation' => 'required_if:active,1', +// ],[ +// 'name' => 'client_secret', +// 'title' => 'Client Secret', +// 'type' => 'depends', +// 'depend' => 'active:1', +// 'validation' => 'required_if:active,1', +// ],[ +// 'name' => 'merchant', +// 'title' => 'Merchant', +// 'type' => 'depends', +// 'depend' => 'active:1', +// 'validation' => 'required_if:active,1', +// ],[ +// 'name' => 'terminal', +// 'title' => 'Terminal', +// 'type' => 'depends', +// 'depend' => 'active:1', +// 'validation' => 'required_if:active,1', +// ],[ +// 'name' => 'generate_invoice', +// 'title' => 'admin::app.admin.system.generate-invoice', +// 'type' => 'boolean', +// 'default_value' => false, +// 'channel_based' => false, +// 'locale_based' => false, +// ],[ +// 'name' => 'invoice_status', +// 'title' => 'admin::app.admin.system.set-invoice-status', +// 'validation' => 'required_if:generate_invoice,1', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => 'admin::app.sales.invoices.status-pending', +// 'value' => 'pending', +// ], [ +// 'title' => 'admin::app.sales.invoices.status-paid', +// 'value' => 'paid', +// ], +// ], +// 'info' => 'admin::app.admin.system.generate-invoice-applicable', +// 'channel_based' => false, +// 'locale_based' => false, +// ], [ +// 'name' => 'order_status', +// 'title' => 'admin::app.admin.system.set-order-status', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => 'admin::app.sales.orders.order-status-pending', +// 'value' => 'pending', +// ], [ +// 'title' => 'admin::app.sales.orders.order-status-pending-payment', +// 'value' => 'pending_payment', +// ], [ +// 'title' => 'admin::app.sales.orders.order-status-processing', +// 'value' => 'processing', +// ], +// ], +// 'info' => 'admin::app.admin.system.generate-invoice-applicable', +// 'channel_based' => false, +// 'locale_based' => false, +// ], [ +// 'name' => 'active', +// 'title' => 'admin::app.admin.system.status', +// 'type' => 'boolean', +// 'validation' => 'required', +// +// ] +// ] +// ] ]; \ No newline at end of file diff --git a/packages/Sarga/Payment/Methods/CashBeforeDelivery.php b/packages/Sarga/Payment/Methods/Cash100.php similarity index 85% rename from packages/Sarga/Payment/Methods/CashBeforeDelivery.php rename to packages/Sarga/Payment/Methods/Cash100.php index 5fe64ba45..f14987668 100644 --- a/packages/Sarga/Payment/Methods/CashBeforeDelivery.php +++ b/packages/Sarga/Payment/Methods/Cash100.php @@ -4,7 +4,7 @@ namespace Sarga\Payment\Methods; use Webkul\Payment\Payment\Payment; -class CashBeforeDelivery extends Payment +class Cash100 extends Payment { /** * Payment method code diff --git a/packages/Sarga/Payment/Methods/Cash50.php b/packages/Sarga/Payment/Methods/Cash50.php new file mode 100644 index 000000000..566bcdd8c --- /dev/null +++ b/packages/Sarga/Payment/Methods/Cash50.php @@ -0,0 +1,8 @@ + [ - 'code' => 'cashondelivery', - 'title' => 'Cash On Delivery', - 'description' => 'Cash On Delivery', - 'class' => 'Webkul\Payment\Payment\CashOnDelivery', - 'active' => true, - 'sort' => 1, - ], - - 'moneytransfer' => [ - 'code' => 'moneytransfer', - 'title' => 'Money Transfer', - 'description' => 'Money Transfer', - 'class' => 'Webkul\Payment\Payment\MoneyTransfer', - 'active' => true, - 'sort' => 2, - ] +// 'cashondelivery' => [ +// 'code' => 'cashondelivery', +// 'title' => 'Cash On Delivery', +// 'description' => 'Cash On Delivery', +// 'class' => 'Webkul\Payment\Payment\CashOnDelivery', +// 'active' => true, +// 'sort' => 1, +// ], +// +// 'moneytransfer' => [ +// 'code' => 'moneytransfer', +// 'title' => 'Money Transfer', +// 'description' => 'Money Transfer', +// 'class' => 'Webkul\Payment\Payment\MoneyTransfer', +// 'active' => true, +// 'sort' => 2, +// ] ]; \ No newline at end of file diff --git a/packages/Webkul/Payment/src/Config/system.php b/packages/Webkul/Payment/src/Config/system.php index 16a550c79..81b761135 100755 --- a/packages/Webkul/Payment/src/Config/system.php +++ b/packages/Webkul/Payment/src/Config/system.php @@ -12,192 +12,193 @@ return [ 'key' => 'sales.paymentmethods', 'name' => 'admin::app.admin.system.payment-methods', 'sort' => 3, - ], [ - 'key' => 'sales.paymentmethods.cashondelivery', - 'name' => 'admin::app.admin.system.cash-on-delivery', - 'sort' => 1, - 'fields' => [ - [ - 'name' => 'title', - 'title' => 'admin::app.admin.system.title', - 'type' => 'depends', - 'depend' => 'active:1', - 'validation' => 'required_if:active,1', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'description', - 'title' => 'admin::app.admin.system.description', - 'type' => 'textarea', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'instructions', - 'title' => 'admin::app.admin.system.instructions', - 'type' => 'textarea', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'generate_invoice', - 'title' => 'admin::app.admin.system.generate-invoice', - 'type' => 'boolean', - 'default_value' => false, - 'channel_based' => true, - 'locale_based' => false, - ], [ - 'name' => 'invoice_status', - 'title' => 'admin::app.admin.system.set-invoice-status', - 'validation' => 'required_if:generate_invoice,1', - 'type' => 'select', - 'options' => [ - [ - 'title' => 'admin::app.sales.invoices.status-pending', - 'value' => 'pending', - ], [ - 'title' => 'admin::app.sales.invoices.status-paid', - 'value' => 'paid', - ], - ], - 'info' => 'admin::app.admin.system.generate-invoice-applicable', - 'channel_based' => true, - 'locale_based' => false, - ], [ - 'name' => 'order_status', - 'title' => 'admin::app.admin.system.set-order-status', - 'type' => 'select', - 'options' => [ - [ - 'title' => 'admin::app.sales.orders.order-status-pending', - 'value' => 'pending', - ], [ - 'title' => 'admin::app.sales.orders.order-status-pending-payment', - 'value' => 'pending_payment', - ], [ - 'title' => 'admin::app.sales.orders.order-status-processing', - 'value' => 'processing', - ], - ], - 'info' => 'admin::app.admin.system.generate-invoice-applicable', - 'channel_based' => true, - 'locale_based' => false, - ], [ - 'name' => 'active', - 'title' => 'admin::app.admin.system.status', - 'type' => 'boolean', - 'validation' => 'required', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'sort', - 'title' => 'admin::app.admin.system.sort_order', - 'type' => 'select', - 'options' => [ - [ - 'title' => '1', - 'value' => 1, - ], [ - 'title' => '2', - 'value' => 2, - ], [ - 'title' => '3', - 'value' => 3, - ], [ - 'title' => '4', - 'value' => 4, - ], - ], - ], - ], - ], [ - 'key' => 'sales.paymentmethods.moneytransfer', - 'name' => 'admin::app.admin.system.money-transfer', - 'sort' => 2, - 'fields' => [ - [ - 'name' => 'title', - 'title' => 'admin::app.admin.system.title', - 'type' => 'depends', - 'depend' => 'active:1', - 'validation' => 'required_if:active,1', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'description', - 'title' => 'admin::app.admin.system.description', - 'type' => 'textarea', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'generate_invoice', - 'title' => 'Automatically generate the invoice after placing an order', - 'type' => 'boolean', - 'default_value' => false, - 'channel_based' => true, - 'locale_based' => false, - ], [ - 'name' => 'invoice_status', - 'title' => 'Invoice status after creating the invoice', - 'type' => 'select', - 'options' => [ - [ - 'title' => 'admin::app.sales.invoices.status-pending', - 'value' => 'pending', - ], [ - 'title' => 'admin::app.sales.invoices.status-paid', - 'value' => 'paid', - ], - ], - 'info' => 'admin::app.admin.system.generate-invoice-applicable', - ], [ - 'name' => 'order_status', - 'title' => 'Order status after creating the invoice', - 'type' => 'select', - 'options' => [ - [ - 'title' => 'admin::app.sales.orders.order-status-pending', - 'value' => 'pending', - ], [ - 'title' => 'admin::app.sales.orders.order-status-pending-payment', - 'value' => 'pending_payment', - ], [ - 'title' => 'admin::app.sales.orders.order-status-processing', - 'value' => 'processing', - ], - ], - 'info' => 'admin::app.admin.system.generate-invoice-applicable', - ], [ - 'name' => 'mailing_address', - 'title' => 'admin::app.admin.system.mailing-address', - 'type' => 'textarea', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'active', - 'title' => 'admin::app.admin.system.status', - 'type' => 'boolean', - 'validation' => 'required', - 'channel_based' => true, - 'locale_based' => true, - ], [ - 'name' => 'sort', - 'title' => 'admin::app.admin.system.sort_order', - 'type' => 'select', - 'options' => [ - [ - 'title' => '1', - 'value' => 1, - ], [ - 'title' => '2', - 'value' => 2, - ], [ - 'title' => '3', - 'value' => 3, - ], [ - 'title' => '4', - 'value' => 4, - ], - ], - ], - ], ], +// [ +// 'key' => 'sales.paymentmethods.cashondelivery', +// 'name' => 'admin::app.admin.system.cash-on-delivery', +// 'sort' => 1, +// 'fields' => [ +// [ +// 'name' => 'title', +// 'title' => 'admin::app.admin.system.title', +// 'type' => 'depends', +// 'depend' => 'active:1', +// 'validation' => 'required_if:active,1', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'description', +// 'title' => 'admin::app.admin.system.description', +// 'type' => 'textarea', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'instructions', +// 'title' => 'admin::app.admin.system.instructions', +// 'type' => 'textarea', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'generate_invoice', +// 'title' => 'admin::app.admin.system.generate-invoice', +// 'type' => 'boolean', +// 'default_value' => false, +// 'channel_based' => true, +// 'locale_based' => false, +// ], [ +// 'name' => 'invoice_status', +// 'title' => 'admin::app.admin.system.set-invoice-status', +// 'validation' => 'required_if:generate_invoice,1', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => 'admin::app.sales.invoices.status-pending', +// 'value' => 'pending', +// ], [ +// 'title' => 'admin::app.sales.invoices.status-paid', +// 'value' => 'paid', +// ], +// ], +// 'info' => 'admin::app.admin.system.generate-invoice-applicable', +// 'channel_based' => true, +// 'locale_based' => false, +// ], [ +// 'name' => 'order_status', +// 'title' => 'admin::app.admin.system.set-order-status', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => 'admin::app.sales.orders.order-status-pending', +// 'value' => 'pending', +// ], [ +// 'title' => 'admin::app.sales.orders.order-status-pending-payment', +// 'value' => 'pending_payment', +// ], [ +// 'title' => 'admin::app.sales.orders.order-status-processing', +// 'value' => 'processing', +// ], +// ], +// 'info' => 'admin::app.admin.system.generate-invoice-applicable', +// 'channel_based' => true, +// 'locale_based' => false, +// ], [ +// 'name' => 'active', +// 'title' => 'admin::app.admin.system.status', +// 'type' => 'boolean', +// 'validation' => 'required', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'sort', +// 'title' => 'admin::app.admin.system.sort_order', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => '1', +// 'value' => 1, +// ], [ +// 'title' => '2', +// 'value' => 2, +// ], [ +// 'title' => '3', +// 'value' => 3, +// ], [ +// 'title' => '4', +// 'value' => 4, +// ], +// ], +// ], +// ], +// ], [ +// 'key' => 'sales.paymentmethods.moneytransfer', +// 'name' => 'admin::app.admin.system.money-transfer', +// 'sort' => 2, +// 'fields' => [ +// [ +// 'name' => 'title', +// 'title' => 'admin::app.admin.system.title', +// 'type' => 'depends', +// 'depend' => 'active:1', +// 'validation' => 'required_if:active,1', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'description', +// 'title' => 'admin::app.admin.system.description', +// 'type' => 'textarea', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'generate_invoice', +// 'title' => 'Automatically generate the invoice after placing an order', +// 'type' => 'boolean', +// 'default_value' => false, +// 'channel_based' => true, +// 'locale_based' => false, +// ], [ +// 'name' => 'invoice_status', +// 'title' => 'Invoice status after creating the invoice', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => 'admin::app.sales.invoices.status-pending', +// 'value' => 'pending', +// ], [ +// 'title' => 'admin::app.sales.invoices.status-paid', +// 'value' => 'paid', +// ], +// ], +// 'info' => 'admin::app.admin.system.generate-invoice-applicable', +// ], [ +// 'name' => 'order_status', +// 'title' => 'Order status after creating the invoice', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => 'admin::app.sales.orders.order-status-pending', +// 'value' => 'pending', +// ], [ +// 'title' => 'admin::app.sales.orders.order-status-pending-payment', +// 'value' => 'pending_payment', +// ], [ +// 'title' => 'admin::app.sales.orders.order-status-processing', +// 'value' => 'processing', +// ], +// ], +// 'info' => 'admin::app.admin.system.generate-invoice-applicable', +// ], [ +// 'name' => 'mailing_address', +// 'title' => 'admin::app.admin.system.mailing-address', +// 'type' => 'textarea', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'active', +// 'title' => 'admin::app.admin.system.status', +// 'type' => 'boolean', +// 'validation' => 'required', +// 'channel_based' => true, +// 'locale_based' => true, +// ], [ +// 'name' => 'sort', +// 'title' => 'admin::app.admin.system.sort_order', +// 'type' => 'select', +// 'options' => [ +// [ +// 'title' => '1', +// 'value' => 1, +// ], [ +// 'title' => '2', +// 'value' => 2, +// ], [ +// 'title' => '3', +// 'value' => 3, +// ], [ +// 'title' => '4', +// 'value' => 4, +// ], +// ], +// ], +// ], +// ], ];