|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/account.appointkrypt.com/Modules/Stripe/Resources/views/company/settings/ |
Upload File : |
<div class="card" id="stripe-sidenav">
{{ Form::open(['route' => 'stripe.setting.store', 'enctype' => 'multipart/form-data']) }}
@csrf
<div class="card-header">
<div class="row">
<div class="col-lg-10 col-md-10 col-sm-10">
<h5 class="">{{ __('Stripe') }}</h5>
</div>
<div class="col-lg-2 col-md-2 col-sm-2 text-end">
<div class="form-check form-switch custom-switch-v1 float-end">
<input type="checkbox" name="stripe_is_on" class="form-check-input input-primary" id="stripe_is_on"
{{ (isset($settings['stripe_is_on']) ? $settings['stripe_is_on'] : 'off') == 'on' ? ' checked ' : '' }}>
<label class="form-check-label" for="stripe_is_on"></label>
</div>
</div>
</div>
</div>
<div class="card-body">
<div class="row mt-2">
<div class="col-md-6">
<div class="form-group">
<label for="stripe_key" class="form-label">{{ __('Stripe Key') }}</label>
<input class="form-control stripe_webhook" placeholder="{{ __('Stripe Key') }}" name="stripe_key"
type="text" value="{{ isset($settings['stripe_key']) ? $settings['stripe_key'] : '' }}"
{{ (isset($settings['stripe_is_on']) ? $settings['stripe_is_on'] : 'off') == 'on' ? '' : ' disabled' }} id="stripe_key">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="stripe_secret" class="form-label">{{ __('Stripe Secret Key') }}</label>
<input class="form-control stripe_webhook" placeholder="{{ __('Stripe Secret Key') }}"
name="stripe_secret" type="text" value="{{ isset($settings['stripe_secret']) ? $settings['stripe_secret'] : '' }}"
{{ (isset($settings['stripe_is_on']) ? $settings['stripe_is_on'] : 'off') == 'on' ? '' : ' disabled' }} id="stripe_secret">
</div>
</div>
</div>
</div>
<div class="card-footer text-end">
<input class="btn btn-print-invoice btn-primary m-r-10" type="submit" value="{{ __('Save Changes') }}">
</div>
{{ Form::close() }}
</div>
<script>
"use strict";
$(document).on('click', '#stripe_is_on', function() {
if ($('#stripe_is_on').prop('checked')) {
$(".stripe_webhook").removeAttr("disabled");
} else {
$('.stripe_webhook').attr("disabled", "disabled");
}
});
</script>