first upload all files
This commit is contained in:
112
Modules/Setting/Resources/assets/admin/js/main.js
Normal file
112
Modules/Setting/Resources/assets/admin/js/main.js
Normal file
@@ -0,0 +1,112 @@
|
||||
window.admin.removeSubmitButtonOffsetOn(["#logo", "#courier"]);
|
||||
|
||||
let currencyRateExchangeService = $("#currency_rate_exchange_service");
|
||||
|
||||
$(`#${currencyRateExchangeService.val()}-service`).removeClass("hide");
|
||||
|
||||
currencyRateExchangeService.on("change", (e) => {
|
||||
$(".currency-rate-exchange-service").addClass("hide");
|
||||
|
||||
$(`#${e.currentTarget.value}-service`).removeClass("hide");
|
||||
});
|
||||
|
||||
$("#auto_refresh_currency_rates").on("change", () => {
|
||||
$("#auto-refresh-frequency-field").toggleClass("hide");
|
||||
});
|
||||
|
||||
let smsService = $("#sms_service");
|
||||
|
||||
$(`#${smsService.val()}-service`).removeClass("hide");
|
||||
|
||||
smsService.on("change", (e) => {
|
||||
$(".sms-service").addClass("hide");
|
||||
|
||||
$(`#${e.currentTarget.value}-service`).removeClass("hide");
|
||||
});
|
||||
|
||||
$("#facebook_login_enabled").on("change", () => {
|
||||
$("#facebook-login-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#google_login_enabled").on("change", () => {
|
||||
$("#google-login-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#paypal_enabled").on("change", () => {
|
||||
$("#paypal-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#stripe_enabled").on("change", () => {
|
||||
$("#stripe-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#paytm_enabled").on("change", () => {
|
||||
$("#paytm-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#razorpay_enabled").on("change", () => {
|
||||
$("#razorpay-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#instamojo_enabled").on("change", () => {
|
||||
$("#instamojo-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#paystack_enabled").on("change", () => {
|
||||
$("#paystack-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#authorizenet_enabled").on("change", () => {
|
||||
$("#authorizenet-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#mercadopago_enabled").on("change", () => {
|
||||
$("#mercadopago-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#flutterwave_enabled").on("change", () => {
|
||||
$("#flutterwave-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#bank_transfer_enabled").on("change", () => {
|
||||
$("#bank-transfer-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#check_payment_enabled").on("change", () => {
|
||||
$("#check-payment-fields").toggleClass("hide");
|
||||
});
|
||||
|
||||
$("#store_country").on("change", (e) => {
|
||||
let oldState = $("#store_state").val();
|
||||
|
||||
$.ajax({
|
||||
type: "GET",
|
||||
url: route("countries.states.index", e.currentTarget.value),
|
||||
success(states) {
|
||||
$(".store-state").addClass("hide");
|
||||
|
||||
if (_.isEmpty(states)) {
|
||||
return $(".store-state.input")
|
||||
.removeClass("hide")
|
||||
.find("input")
|
||||
.val(oldState);
|
||||
}
|
||||
|
||||
let options = "";
|
||||
|
||||
for (let code in states) {
|
||||
options += `<option value="${code}">${states[code]}</option>`;
|
||||
}
|
||||
|
||||
$(".store-state.select")
|
||||
.removeClass("hide")
|
||||
.find("select")
|
||||
.html(options)
|
||||
.val(oldState);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$("#store_country").trigger("change");
|
||||
});
|
||||
170
Modules/Setting/Resources/lang/en/attributes.php
Normal file
170
Modules/Setting/Resources/lang/en/attributes.php
Normal file
@@ -0,0 +1,170 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'supported_countries' => 'Supported Countries',
|
||||
'default_country' => 'Default Country',
|
||||
'supported_locales' => 'Supported Locales',
|
||||
|
||||
'default_locale' => 'Default Locale',
|
||||
'default_timezone' => 'Default Timezone',
|
||||
'customer_role' => 'Customer Role',
|
||||
'reviews_enabled' => 'Reviews & Ratings',
|
||||
'auto_approve_reviews' => 'Auto Approve Reviews',
|
||||
'cookie_bar_enabled' => 'Cookie Bar',
|
||||
|
||||
'maintenance_mode' => 'Maintenance Mode',
|
||||
|
||||
'translatable.store_tagline' => 'Store Tagline',
|
||||
'translatable.store_name' => 'Store Name',
|
||||
'store_phone' => 'Store Phone',
|
||||
'store_email' => 'Store Email',
|
||||
'store_address_1' => 'Store Address 1',
|
||||
'store_address_2' => 'Store Address 2',
|
||||
'store_city' => 'Store City',
|
||||
'store_country' => 'Store Country',
|
||||
'store_state' => 'Store State',
|
||||
'store_zip' => 'Store Zip',
|
||||
'store_phone_hide' => 'Hide Store Phone',
|
||||
'store_email_hide' => 'Hide Store Email',
|
||||
|
||||
'supported_currency' => 'Supported Currency',
|
||||
'supported_currencies' => 'Supported Currencies',
|
||||
'default_currency' => 'Default Currency',
|
||||
'currency_rate_exchange_service' => 'Exchange Rate Service',
|
||||
'fixer_access_key' => 'Fixer Access key',
|
||||
'forge_api_key' => 'Forge API key',
|
||||
'currency_data_feed_api_key' => 'Currency Data Feed API Key',
|
||||
'auto_refresh_currency_rates' => 'Auto Refresh',
|
||||
'auto_refresh_currency_rate_frequency' => 'Frequency',
|
||||
|
||||
'sms_from' => 'SMS From',
|
||||
'sms_service' => 'SMS Service',
|
||||
'vonage_key' => 'API Key',
|
||||
'vonage_secret' => 'API Secret',
|
||||
'twilio_sid' => 'Account SID',
|
||||
'twilio_token' => 'Auth Token',
|
||||
'welcome_sms' => 'Welcome SMS',
|
||||
'new_order_admin_sms' => 'New Order Admin SMS',
|
||||
'new_order_sms' => 'New Order SMS',
|
||||
'sms_order_statuses' => 'SMS Order Statuses',
|
||||
|
||||
'mail_from_address' => 'Mail From Address',
|
||||
'mail_from_name' => 'Mail From Name',
|
||||
'mail_host' => 'Mail Host',
|
||||
'mail_port' => 'Mail Port',
|
||||
'mail_username' => 'Mail Username',
|
||||
'mail_password' => 'Mail Password',
|
||||
'mail_encryption' => 'Mail Encryption',
|
||||
'welcome_email' => 'Welcome Email',
|
||||
'admin_order_email' => 'New Order Admin Email',
|
||||
'invoice_email' => 'Invoice Email',
|
||||
'email_order_statuses' => 'Email Order Statuses',
|
||||
|
||||
'newsletter_enabled' => 'Newsletter',
|
||||
'mailchimp_api_key' => 'Mailchimp API Key',
|
||||
'mailchimp_list_id' => 'Mailchimp List ID',
|
||||
|
||||
'custom_header_assets' => 'Header',
|
||||
'custom_footer_assets' => 'Footer',
|
||||
|
||||
'facebook_login_enabled' => 'Status',
|
||||
'facebook_login_app_id' => 'App ID',
|
||||
'facebook_login_app_secret' => 'App Secret',
|
||||
|
||||
'google_login_enabled' => 'Status',
|
||||
'google_login_client_id' => 'Client ID',
|
||||
'google_login_client_secret' => 'Client Secret',
|
||||
|
||||
'free_shipping_enabled' => 'Status',
|
||||
'translatable.free_shipping_label' => 'Label',
|
||||
'free_shipping_min_amount' => 'Minimum Amount',
|
||||
|
||||
'local_pickup_enabled' => 'Status',
|
||||
'translatable.local_pickup_label' => 'Label',
|
||||
'local_pickup_cost' => 'Cost',
|
||||
|
||||
'flat_rate_enabled' => 'Status',
|
||||
'translatable.flat_rate_label' => 'Label',
|
||||
'flat_rate_cost' => 'Cost',
|
||||
|
||||
'paypal_enabled' => 'Status',
|
||||
'translatable.paypal_label' => 'Label',
|
||||
'translatable.paypal_description' => 'Description',
|
||||
'paypal_test_mode' => 'Sandbox',
|
||||
'paypal_client_id' => 'Client ID',
|
||||
'paypal_secret' => 'Secret',
|
||||
|
||||
'stripe_enabled' => 'Status',
|
||||
'translatable.stripe_label' => 'Label',
|
||||
'translatable.stripe_description' => 'Description',
|
||||
'stripe_publishable_key' => 'Publishable Key',
|
||||
'stripe_secret_key' => 'Secret Key',
|
||||
|
||||
'paytm_enabled' => 'Status',
|
||||
'translatable.paytm_label' => 'Label',
|
||||
'translatable.paytm_description' => 'Description',
|
||||
'paytm_test_mode' => 'Sandbox',
|
||||
'paytm_merchant_id' => 'Merchant ID',
|
||||
'paytm_merchant_key' => 'Merchant Key',
|
||||
|
||||
'razorpay_enabled' => 'Status',
|
||||
'razorpay_label' => 'Label',
|
||||
'razorpay_description' => 'Description',
|
||||
'razorpay_key_id' => 'Key Id',
|
||||
'razorpay_key_secret' => 'Key Secret',
|
||||
|
||||
'instamojo_enabled' => 'Status',
|
||||
'instamojo_label' => 'Label',
|
||||
'instamojo_description' => 'Description',
|
||||
'instamojo_test_mode' => 'Sandbox',
|
||||
'instamojo_api_key' => 'API Key',
|
||||
'instamojo_auth_token' => 'Auth Token',
|
||||
|
||||
'paystack_enabled' => 'Status',
|
||||
'translatable.paystack_label' => 'Label',
|
||||
'translatable.paystack_description' => 'Description',
|
||||
'paystack_test_mode' => 'Sandbox',
|
||||
'paystack_public_key' => 'Public Key',
|
||||
'paystack_secret_key' => 'Secret Key',
|
||||
|
||||
'authorizenet_enabled' => 'Status',
|
||||
'authorizenet_label' => 'Label',
|
||||
'authorizenet_description' => 'Description',
|
||||
'authorizenet_test_mode' => 'Sandbox',
|
||||
'authorizenet_merchant_login_id' => 'Merchant Login ID',
|
||||
'authorizenet_merchant_transaction_key' => 'Merchant Transaction Key',
|
||||
|
||||
'mercadopago_enabled' => 'Status',
|
||||
'mercadopago_label' => 'Label',
|
||||
'mercadopago_description' => 'Description',
|
||||
'mercadopago_test_mode' => 'Sandbox',
|
||||
'mercadopago_public_key' => 'Public Key',
|
||||
'mercadopago_access_token' => 'Access Token',
|
||||
|
||||
'flutterwave_enabled' => 'Status',
|
||||
'flutterwave_label' => 'Label',
|
||||
'flutterwave_description' => 'Description',
|
||||
'flutterwave_test_mode' => 'Sandbox',
|
||||
'flutterwave_public_key' => 'Public Key',
|
||||
'flutterwave_secret_key' => 'Secret Key',
|
||||
'flutterwave_encryption_key' => 'Encryption Key',
|
||||
|
||||
'cod_enabled' => 'Status',
|
||||
'translatable.cod_label' => 'Label',
|
||||
'translatable.cod_description' => 'Description',
|
||||
|
||||
'bank_transfer_enabled' => 'Status',
|
||||
'translatable.bank_transfer_label' => 'Label',
|
||||
'translatable.bank_transfer_description' => 'Description',
|
||||
'translatable.bank_transfer_instructions' => 'Instructions',
|
||||
|
||||
'check_payment_enabled' => 'Status',
|
||||
'translatable.check_payment_label' => 'Label',
|
||||
'translatable.check_payment_description' => 'Description',
|
||||
'translatable.check_payment_instructions' => 'Instructions',
|
||||
|
||||
// validation
|
||||
'supported_countries.*' => 'Supported Countries',
|
||||
'supported_locales.*' => 'Supported Locales',
|
||||
'supported_currencies.*' => 'Supported Currencies',
|
||||
];
|
||||
5
Modules/Setting/Resources/lang/en/messages.php
Normal file
5
Modules/Setting/Resources/lang/en/messages.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'settings_have_been_saved' => 'Settings have been saved.',
|
||||
];
|
||||
5
Modules/Setting/Resources/lang/en/permissions.php
Normal file
5
Modules/Setting/Resources/lang/en/permissions.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'edit' => 'Edit Settings',
|
||||
];
|
||||
88
Modules/Setting/Resources/lang/en/settings.php
Normal file
88
Modules/Setting/Resources/lang/en/settings.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'settings' => 'Settings',
|
||||
'tabs' => [
|
||||
'group' => [
|
||||
'general_settings' => 'General Settings',
|
||||
'social_logins' => 'Social Logins',
|
||||
'shipping_methods' => 'Shipping Methods',
|
||||
'payment_methods' => 'Payment Methods',
|
||||
],
|
||||
'general' => 'General',
|
||||
'maintenance' => 'Maintenance',
|
||||
'store' => 'Store',
|
||||
'currency' => 'Currency',
|
||||
'sms' => 'SMS',
|
||||
'mail' => 'Mail',
|
||||
'newsletter' => 'Newsletter',
|
||||
'custom_css_js' => 'Custom CSS/JS',
|
||||
'facebook' => 'Facebook',
|
||||
'google' => 'Google',
|
||||
'free_shipping' => 'Free Shipping',
|
||||
'local_pickup' => 'Local Pickup',
|
||||
'flat_rate' => 'Flat Rate',
|
||||
'paypal' => 'PayPal',
|
||||
'stripe' => 'Stripe',
|
||||
'paytm' => 'Paytm',
|
||||
'razorpay' => 'Razorpay',
|
||||
'instamojo' => 'Instamojo',
|
||||
'paystack' => 'Paystack',
|
||||
'authorizenet' => 'Authorize.net',
|
||||
'mercadopago' => 'Mercado Pago',
|
||||
'flutterwave' => 'Flutterwave',
|
||||
'cod' => 'Cash On Delivery',
|
||||
'bank_transfer' => 'Bank Transfer',
|
||||
'check_payment' => 'Check / Money Order',
|
||||
],
|
||||
'form' => [
|
||||
'allow_reviews' => 'Allow customers to give reviews & ratings',
|
||||
'approve_reviews_automatically' => 'Customer reviews will be approved automatically',
|
||||
'show_cookie_bar' => 'Show cookie bar in your website',
|
||||
'privacy_settings' => 'Privacy Settings',
|
||||
'hide_store_phone' => 'Hide store phone from the storefront',
|
||||
'hide_store_email' => 'Hide store email from the storefront',
|
||||
'put_the_application_into_maintenance_mode' => 'Put the application into maintenance mode',
|
||||
'ip_addreses_seperated_in_new_line' => 'IP addreses seperated in new line',
|
||||
'select_service' => 'Select Service',
|
||||
'enable_auto_refreshing_currency_rates' => 'Enable auto-refreshing currency rates',
|
||||
'auto_refresh_currency_rate_frequencies' => [
|
||||
'daily' => 'Daily',
|
||||
'weekly' => 'Weekly',
|
||||
'monthly' => 'Monthly',
|
||||
],
|
||||
'customer_notification_settings' => 'Customer Notification Settings',
|
||||
'send_welcome_sms_after_registration' => 'Send welcome SMS after registration',
|
||||
'order_notification_settings' => 'Order Notification Settings',
|
||||
'send_new_order_notification_to_customer' => 'Send new order notification to the customer',
|
||||
'send_new_order_notification_to_admin' => 'Send new order notification to the admin',
|
||||
'mail_encryption_protocols' => [
|
||||
'ssl' => 'SSL',
|
||||
'tls' => 'Tls',
|
||||
],
|
||||
'send_welcome_email_after_registration' => 'Send welcome email after registration',
|
||||
'send_invoice_email' => 'Send invoice email to the customer after checkout',
|
||||
'allow_customers_to_subscribe' => 'Allow customers to subscribe to your newsletter.',
|
||||
'enable_facebook_login' => 'Enable Facebook Login',
|
||||
'enable_google_login' => 'Enable Google Login',
|
||||
'enable_free_shipping' => 'Enable Free Shipping',
|
||||
'enable_local_pickup' => 'Enable Local Pickup',
|
||||
'enable_flat_rate' => 'Enable Flat Rate',
|
||||
'enable_paypal' => 'Enable PayPal',
|
||||
'use_sandbox_for_test_payments' => 'Use sandbox for test payments',
|
||||
'enable_stripe' => 'Enable Stripe',
|
||||
'enable_paytm' => 'Enable Paytm',
|
||||
'enable_razorpay' => 'Enable Razorpay',
|
||||
'enable_instamojo' => 'Enable Instamojo',
|
||||
'enable_paystack' => 'Enable Paystack',
|
||||
'enable_authorizenet' => 'Enable Authorize.net',
|
||||
'enable_mercadopago' => 'Enable Mercado Pago',
|
||||
'enable_flutterwave' => 'Enable Flutterwave',
|
||||
'enable_cod' => 'Enable Cash On Delivery',
|
||||
'enable_bank_transfer' => 'Enable Bank Transfer',
|
||||
'enable_check_payment' => 'Enable Check / Money Order',
|
||||
],
|
||||
'validation' => [
|
||||
'sqlite_is_not_installed' => 'SQLite is not installed.',
|
||||
],
|
||||
];
|
||||
6
Modules/Setting/Resources/lang/en/sidebar.php
Normal file
6
Modules/Setting/Resources/lang/en/sidebar.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'settings' => 'Settings',
|
||||
'general' => 'General',
|
||||
];
|
||||
@@ -0,0 +1,21 @@
|
||||
@extends('admin::layout')
|
||||
|
||||
@section('title', trans('setting::settings.settings'))
|
||||
|
||||
@section('content_header')
|
||||
<h3>{{ trans('setting::settings.settings') }}</h3>
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('admin.dashboard.index') }}">{{ trans('admin::dashboard.dashboard') }}</a></li>
|
||||
<li class="active">{{ trans('setting::settings.settings') }}</li>
|
||||
</ol>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form method="POST" action="{{ route('admin.settings.update') }}" class="form-horizontal" id="settings-edit-form" novalidate>
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('put') }}
|
||||
|
||||
{!! $tabs->render(compact('settings')) !!}
|
||||
</form>
|
||||
@endsection
|
||||
@@ -0,0 +1 @@
|
||||
{{ Form::password('currency_data_feed_api_key', trans('setting::attributes.currency_data_feed_api_key'), $errors, $settings, ['required' => true]) }}
|
||||
@@ -0,0 +1 @@
|
||||
{{ Form::password('fixer_access_key', trans('setting::attributes.fixer_access_key'), $errors, $settings, ['required' => true]) }}
|
||||
@@ -0,0 +1 @@
|
||||
{{ Form::password('forge_api_key', trans('setting::attributes.forge_api_key'), $errors, $settings, ['required' => true]) }}
|
||||
@@ -0,0 +1,2 @@
|
||||
{{ Form::text('twilio_sid', trans('setting::attributes.twilio_sid'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('twilio_token', trans('setting::attributes.twilio_token'), $errors, $settings, ['required' => true]) }}
|
||||
@@ -0,0 +1,2 @@
|
||||
{{ Form::text('vonage_key', trans('setting::attributes.vonage_key'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('vonage_secret', trans('setting::attributes.vonage_secret'), $errors, $settings, ['required' => true]) }}
|
||||
@@ -0,0 +1,14 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('authorizenet_enabled', trans('setting::attributes.authorizenet_enabled'), trans('setting::settings.form.enable_authorizenet'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[authorizenet_label]', trans('setting::attributes.authorizenet_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[authorizenet_description]', trans('setting::attributes.authorizenet_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
{{ Form::checkbox('authorizenet_test_mode', trans('setting::attributes.authorizenet_test_mode'), trans('setting::settings.form.use_sandbox_for_test_payments'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('authorizenet_enabled', array_get($settings, 'authorizenet_enabled')) ? '' : 'hide' }}"
|
||||
id="authorizenet-fields">
|
||||
{{ Form::text('authorizenet_merchant_login_id', trans('setting::attributes.authorizenet_merchant_login_id'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::text('authorizenet_merchant_transaction_key', trans('setting::attributes.authorizenet_merchant_transaction_key'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('bank_transfer_enabled', trans('setting::attributes.bank_transfer_enabled'), trans('setting::settings.form.enable_bank_transfer'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[bank_transfer_label]', trans('setting::attributes.translatable.bank_transfer_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[bank_transfer_description]', trans('setting::attributes.translatable.bank_transfer_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
|
||||
<div class="{{ old('bank_transfer_enabled', array_get($settings, 'bank_transfer_enabled')) ? '' : 'hide' }}" id="bank-transfer-fields">
|
||||
{{ Form::textarea('translatable[bank_transfer_instructions]', trans('setting::attributes.translatable.bank_transfer_instructions'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('check_payment_enabled', trans('setting::attributes.check_payment_enabled'), trans('setting::settings.form.enable_check_payment'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[check_payment_label]', trans('setting::attributes.translatable.check_payment_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[check_payment_description]', trans('setting::attributes.translatable.check_payment_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
|
||||
<div class="{{ old('check_payment_enabled', array_get($settings, 'check_payment_enabled')) ? '' : 'hide' }}" id="check-payment-fields">
|
||||
{{ Form::textarea('translatable[check_payment_instructions]', trans('setting::attributes.translatable.check_payment_instructions'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('cod_enabled', trans('setting::attributes.cod_enabled'), trans('setting::settings.form.enable_cod'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[cod_label]', trans('setting::attributes.translatable.cod_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[cod_description]', trans('setting::attributes.translatable.cod_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::select('supported_currencies', trans('setting::attributes.supported_currencies'), $errors, $currencies, $settings, ['class' => 'selectize prevent-creation', 'required' => true, 'multiple' => true]) }}
|
||||
{{ Form::select('default_currency', trans('setting::attributes.default_currency'), $errors, $currencies, $settings, ['required' => true]) }}
|
||||
{{ Form::select('currency_rate_exchange_service', trans('setting::attributes.currency_rate_exchange_service'), $errors, $currencyRateExchangeServices, $settings) }}
|
||||
|
||||
@foreach ($currencyRateExchangeServices as $service => $serviceName)
|
||||
<div class="currency-rate-exchange-service hide" id="{{ $service }}-service">
|
||||
@includeIf("setting::admin.settings.partials.currency_rate_exchange_services.{$service}")
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
{{ Form::checkbox('auto_refresh_currency_rates', trans('setting::attributes.auto_refresh_currency_rates'), trans('setting::settings.form.enable_auto_refreshing_currency_rates'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('auto_refresh_currency_rates', array_get($settings, 'auto_refresh_currency_rates')) ? '' : 'hide' }}" id="auto-refresh-frequency-field">
|
||||
{{ Form::select('auto_refresh_currency_rate_frequency', trans('setting::attributes.auto_refresh_currency_rate_frequency'), $errors, trans('setting::settings.form.auto_refresh_currency_rate_frequencies'), $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,6 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::textarea('custom_header_assets', trans('setting::attributes.custom_header_assets'), $errors, $settings) }}
|
||||
{{ Form::textarea('custom_footer_assets', trans('setting::attributes.custom_footer_assets'), $errors, $settings) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('facebook_login_enabled', trans('setting::attributes.facebook_login_enabled'), trans('setting::settings.form.enable_facebook_login'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('facebook_login_enabled', array_get($settings, 'facebook_login_enabled')) ? '' : 'hide' }}" id="facebook-login-fields">
|
||||
{{ Form::text('facebook_login_app_id', trans('setting::attributes.facebook_login_app_id'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('facebook_login_app_secret', trans('setting::attributes.facebook_login_app_secret'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('flat_rate_enabled', trans('setting::attributes.flat_rate_enabled'), trans('setting::settings.form.enable_flat_rate'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[flat_rate_label]', trans('setting::attributes.translatable.flat_rate_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::number('flat_rate_cost', trans('setting::attributes.flat_rate_cost'), $errors, $settings, ['min' => 0, 'required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('flutterwave_enabled', trans('setting::attributes.flutterwave_enabled'), trans('setting::settings.form.enable_flutterwave'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[flutterwave_label]', trans('setting::attributes.flutterwave_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[flutterwave_description]', trans('setting::attributes.flutterwave_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
{{ Form::checkbox('flutterwave_test_mode', trans('setting::attributes.flutterwave_test_mode'), trans('setting::settings.form.use_sandbox_for_test_payments'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('flutterwave_enabled', array_get($settings, 'flutterwave_enabled')) ? '' : 'hide' }}" id="flutterwave-fields">
|
||||
{{ Form::text('flutterwave_public_key', trans('setting::attributes.flutterwave_public_key'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('flutterwave_secret_key', trans('setting::attributes.flutterwave_secret_key'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('flutterwave_encryption_key', trans('setting::attributes.flutterwave_encryption_key'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('free_shipping_enabled', trans('setting::attributes.free_shipping_enabled'), trans('setting::settings.form.enable_free_shipping'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[free_shipping_label]', trans('setting::attributes.translatable.free_shipping_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::number('free_shipping_min_amount', trans('setting::attributes.free_shipping_min_amount'), $errors, $settings) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::select('supported_countries', trans('setting::attributes.supported_countries'), $errors, $countries, $settings, ['class' => 'selectize prevent-creation', 'required' => true, 'multiple' => true]) }}
|
||||
{{ Form::select('default_country', trans('setting::attributes.default_country'), $errors, $countries, $settings, ['required' => true]) }}
|
||||
{{ Form::select('supported_locales', trans('setting::attributes.supported_locales'), $errors, $locales, $settings, ['class' => 'selectize prevent-creation', 'required' => true, 'multiple' => true]) }}
|
||||
{{ Form::select('default_locale', trans('setting::attributes.default_locale'), $errors, $locales, $settings, ['required' => true]) }}
|
||||
{{ Form::select('default_timezone', trans('setting::attributes.default_timezone'), $errors, $timeZones, $settings, ['required' => true]) }}
|
||||
{{ Form::select('customer_role', trans('setting::attributes.customer_role'), $errors, $roles, $settings, ['required' => true]) }}
|
||||
{{ Form::checkbox('reviews_enabled', trans('setting::attributes.reviews_enabled'), trans('setting::settings.form.allow_reviews'), $errors, $settings) }}
|
||||
{{ Form::checkbox('auto_approve_reviews', trans('setting::attributes.auto_approve_reviews'), trans('setting::settings.form.approve_reviews_automatically'), $errors, $settings) }}
|
||||
{{ Form::checkbox('cookie_bar_enabled', trans('setting::attributes.cookie_bar_enabled'), trans('setting::settings.form.show_cookie_bar'), $errors, $settings) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('google_login_enabled', trans('setting::attributes.google_login_enabled'), trans('setting::settings.form.enable_google_login'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('google_login_enabled', array_get($settings, 'google_login_enabled')) ? '' : 'hide' }}" id="google-login-fields">
|
||||
{{ Form::text('google_login_client_id', trans('setting::attributes.google_login_client_id'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('google_login_client_secret', trans('setting::attributes.google_login_client_secret'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('instamojo_enabled', trans('setting::attributes.instamojo_enabled'), trans('setting::settings.form.enable_instamojo'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[instamojo_label]', trans('setting::attributes.instamojo_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[instamojo_description]', trans('setting::attributes.instamojo_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
{{ Form::checkbox('instamojo_test_mode', trans('setting::attributes.instamojo_test_mode'), trans('setting::settings.form.use_sandbox_for_test_payments'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('instamojo_enabled', array_get($settings, 'instamojo_enabled')) ? '' : 'hide' }}" id="instamojo-fields">
|
||||
{{ Form::text('instamojo_api_key', trans('setting::attributes.instamojo_api_key'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('instamojo_auth_token', trans('setting::attributes.instamojo_auth_token'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('local_pickup_enabled', trans('setting::attributes.local_pickup_enabled'), trans('setting::settings.form.enable_local_pickup'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[local_pickup_label]', trans('setting::attributes.translatable.local_pickup_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::number('local_pickup_cost', trans('setting::attributes.local_pickup_cost'), $errors, $settings, ['min' => 0, 'required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box-content clearfix">
|
||||
{{ Form::text('mail_from_address', trans('setting::attributes.mail_from_address'), $errors, $settings) }}
|
||||
{{ Form::text('mail_from_name', trans('setting::attributes.mail_from_name'), $errors, $settings) }}
|
||||
{{ Form::text('mail_host', trans('setting::attributes.mail_host'), $errors, $settings) }}
|
||||
{{ Form::text('mail_port', trans('setting::attributes.mail_port'), $errors, $settings) }}
|
||||
{{ Form::text('mail_username', trans('setting::attributes.mail_username'), $errors, $settings) }}
|
||||
{{ Form::password('mail_password', trans('setting::attributes.mail_password'), $errors, $settings) }}
|
||||
{{ Form::select('mail_encryption', trans('setting::attributes.mail_encryption'), $errors, $encryptionProtocols, $settings) }}
|
||||
</div>
|
||||
|
||||
<div class="box-content clearfix">
|
||||
<h4 class="section-title">{{ trans('setting::settings.form.customer_notification_settings') }}</h4>
|
||||
|
||||
{{ Form::checkbox('welcome_email', trans('setting::attributes.welcome_email'), trans('setting::settings.form.send_welcome_email_after_registration'), $errors, $settings) }}
|
||||
</div>
|
||||
|
||||
<div class="box-content clearfix">
|
||||
<h4 class="section-title">{{ trans('setting::settings.form.order_notification_settings') }}</h4>
|
||||
|
||||
{{ Form::checkbox('admin_order_email', trans('setting::attributes.admin_order_email'), trans('setting::settings.form.send_new_order_notification_to_admin'), $errors, $settings) }}
|
||||
{{ Form::checkbox('invoice_email', trans('setting::attributes.invoice_email'), trans('setting::settings.form.send_invoice_email'), $errors, $settings) }}
|
||||
{{ Form::select('email_order_statuses', trans('setting::attributes.email_order_statuses'), $errors, $orderStatuses, $settings, ['class' => 'selectize prevent-creation', 'multiple' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('maintenance_mode', trans('setting::attributes.maintenance_mode'), trans('setting::settings.form.put_the_application_into_maintenance_mode'), $errors, $settings) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('mercadopago_enabled', trans('setting::attributes.mercadopago_enabled'), trans('setting::settings.form.enable_mercadopago'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[mercadopago_label]', trans('setting::attributes.mercadopago_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[mercadopago_description]', trans('setting::attributes.mercadopago_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
{{ Form::checkbox('mercadopago_test_mode', trans('setting::attributes.mercadopago_test_mode'), trans('setting::settings.form.use_sandbox_for_test_payments'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('mercadopago_enabled', array_get($settings, 'mercadopago_enabled')) ? '' : 'hide' }}"
|
||||
id="mercadopago-fields">
|
||||
{{ Form::select('mercadopago_supported_currency', trans('setting::attributes.supported_currency'), $errors, $currencies, $settings, ['required' => true]) }}
|
||||
{{ Form::text('mercadopago_public_key', trans('setting::attributes.mercadopago_public_key'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('mercadopago_access_token', trans('setting::attributes.mercadopago_access_token'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('newsletter_enabled', trans('setting::attributes.newsletter_enabled'), trans('setting::settings.form.allow_customers_to_subscribe'), $errors, $settings) }}
|
||||
{{ Form::password('mailchimp_api_key', trans('setting::attributes.mailchimp_api_key'), $errors, $settings) }}
|
||||
{{ Form::text('mailchimp_list_id', trans('setting::attributes.mailchimp_list_id'), $errors, $settings) }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('paypal_enabled', trans('setting::attributes.paypal_enabled'), trans('setting::settings.form.enable_paypal'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[paypal_label]', trans('setting::attributes.translatable.paypal_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[paypal_description]', trans('setting::attributes.translatable.paypal_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
{{ Form::checkbox('paypal_test_mode', trans('setting::attributes.paypal_test_mode'), trans('setting::settings.form.use_sandbox_for_test_payments'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('paypal_enabled', array_get($settings, 'paypal_enabled')) ? '' : 'hide' }}" id="paypal-fields">
|
||||
{{ Form::text('paypal_client_id', trans('setting::attributes.paypal_client_id'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('paypal_secret', trans('setting::attributes.paypal_secret'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('paystack_enabled', trans('setting::attributes.paystack_enabled'), trans('setting::settings.form.enable_paystack'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[paystack_label]', trans('setting::attributes.translatable.paystack_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[paystack_description]', trans('setting::attributes.translatable.paystack_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
{{ Form::checkbox('paystack_test_mode', trans('setting::attributes.paystack_test_mode'), trans('setting::settings.form.use_sandbox_for_test_payments'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('paystack_enabled', array_get($settings, 'paystack_enabled')) ? '' : 'hide' }}" id="paystack-fields">
|
||||
{{ Form::text('paystack_public_key', trans('setting::attributes.paystack_public_key'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('paystack_secret_key', trans('setting::attributes.paystack_secret_key'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('paytm_enabled', trans('setting::attributes.paytm_enabled'), trans('setting::settings.form.enable_paytm'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[paytm_label]', trans('setting::attributes.translatable.paytm_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[paytm_description]', trans('setting::attributes.translatable.paytm_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
{{ Form::checkbox('paytm_test_mode', trans('setting::attributes.paytm_test_mode'), trans('setting::settings.form.use_sandbox_for_test_payments'), $errors, $settings) }}
|
||||
|
||||
<div class="{{ old('paytm_enabled', array_get($settings, 'paytm_enabled')) ? '' : 'hide' }}" id="paytm-fields">
|
||||
{{ Form::text('paytm_merchant_id', trans('setting::attributes.paytm_merchant_id'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('paytm_merchant_key', trans('setting::attributes.paytm_merchant_key'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('razorpay_enabled', trans('setting::attributes.razorpay_enabled'), trans('setting::settings.form.enable_razorpay'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[razorpay_label]', trans('setting::attributes.razorpay_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[razorpay_description]', trans('setting::attributes.razorpay_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
|
||||
<div class="{{ old('razorpay_enabled', array_get($settings, 'razorpay_enabled')) ? '' : 'hide' }}" id="razorpay-fields">
|
||||
{{ Form::text('razorpay_key_id', trans('setting::attributes.razorpay_key_id'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('razorpay_key_secret', trans('setting::attributes.razorpay_key_secret'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box-content clearfix">
|
||||
{{ Form::text('sms_from', trans('setting::attributes.sms_from'), $errors, $settings) }}
|
||||
{{ Form::select('sms_service', trans('setting::attributes.sms_service'), $errors, $smsServices, $settings) }}
|
||||
|
||||
@foreach ($smsServices as $service => $serviceName)
|
||||
<div class="sms-service hide" id="{{ $service }}-service">
|
||||
@includeIf("setting::admin.settings.partials.sms_services.{$service}")
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div class="box-content clearfix">
|
||||
<h4 class="section-title">{{ trans('setting::settings.form.customer_notification_settings') }}</h4>
|
||||
|
||||
{{ Form::checkbox('welcome_sms', trans('setting::attributes.welcome_sms'), trans('setting::settings.form.send_welcome_sms_after_registration'), $errors, $settings) }}
|
||||
</div>
|
||||
|
||||
<div class="box-content clearfix">
|
||||
<h4 class="section-title">{{ trans('setting::settings.form.order_notification_settings') }}</h4>
|
||||
|
||||
{{ Form::checkbox('new_order_admin_sms', trans('setting::attributes.new_order_admin_sms'), trans('setting::settings.form.send_new_order_notification_to_admin'), $errors, $settings) }}
|
||||
{{ Form::checkbox('new_order_sms', trans('setting::attributes.new_order_sms'), trans('setting::settings.form.send_new_order_notification_to_customer'), $errors, $settings) }}
|
||||
{{ Form::select('sms_order_statuses', trans('setting::attributes.sms_order_statuses'), $errors, $orderStatuses, $settings, ['class' => 'selectize prevent-creation', 'multiple' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,31 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<div class="box-content clearfix">
|
||||
{{ Form::text('translatable[store_name]', trans('setting::attributes.translatable.store_name'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::text('translatable[store_tagline]', trans('setting::attributes.translatable.store_tagline'), $errors, $settings, ['rows' => 2]) }}
|
||||
{{ Form::text('store_email', trans('setting::attributes.store_email'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::text('store_phone', trans('setting::attributes.store_phone'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::text('store_address_1', trans('setting::attributes.store_address_1'), $errors, $settings) }}
|
||||
{{ Form::text('store_address_2', trans('setting::attributes.store_address_2'), $errors, $settings) }}
|
||||
{{ Form::text('store_city', trans('setting::attributes.store_city'), $errors, $settings) }}
|
||||
{{ Form::select('store_country', trans('setting::attributes.store_country'), $errors, $countries, $settings) }}
|
||||
|
||||
<div class="store-state input">
|
||||
{{ Form::text('store_state', trans('setting::attributes.store_state'), $errors, $settings) }}
|
||||
</div>
|
||||
|
||||
<div class="store-state select hide">
|
||||
{{ Form::select('store_state', trans('setting::attributes.store_state'), $errors, [], $settings) }}
|
||||
</div>
|
||||
|
||||
{{ Form::text('store_zip', trans('setting::attributes.store_zip'), $errors, $settings) }}
|
||||
</div>
|
||||
|
||||
<div class="box-content clearfix">
|
||||
<h4 class="section-title">{{ trans('setting::settings.form.privacy_settings') }}</h4>
|
||||
|
||||
{{ Form::checkbox('store_phone_hide', trans('setting::attributes.store_phone_hide'), trans('setting::settings.form.hide_store_phone'), $errors, $settings) }}
|
||||
{{ Form::checkbox('store_email_hide', trans('setting::attributes.store_email_hide'), trans('setting::settings.form.hide_store_email'), $errors, $settings) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::checkbox('stripe_enabled', trans('setting::attributes.stripe_enabled'), trans('setting::settings.form.enable_stripe'), $errors, $settings) }}
|
||||
{{ Form::text('translatable[stripe_label]', trans('setting::attributes.translatable.stripe_label'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::textarea('translatable[stripe_description]', trans('setting::attributes.translatable.stripe_description'), $errors, $settings, ['rows' => 3, 'required' => true]) }}
|
||||
|
||||
<div class="{{ old('stripe_enabled', array_get($settings, 'stripe_enabled')) ? '' : 'hide' }}" id="stripe-fields">
|
||||
{{ Form::text('stripe_publishable_key', trans('setting::attributes.stripe_publishable_key'), $errors, $settings, ['required' => true]) }}
|
||||
{{ Form::password('stripe_secret_key', trans('setting::attributes.stripe_secret_key'), $errors, $settings, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user