12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- @extends('backend.layouts.app')
- @section('content')
- <h4 class="text-center text-muted">{{translate('POS Activation for Salesman')}}</h4>
- <div class="row">
- <div class="col-lg-4">
- <div class="card">
- <div class="card-header">
- <h5 class="mb-0 h6">{{translate('POS Activation for Salesman')}}</h5>
- </div>
- <div class="card-body text-center">
- <label class="aiz-switch aiz-switch-success mb-0">
- <input type="checkbox" onchange="updateSettings(this, 'pos_activation_for_seller')" @if(get_setting('pos_activation_for_seller') == 1) checked @endif>
- <span class="slider round"></span>
- </label>
- </div>
- </div>
- </div>
- </div>
- @endsection
- @section('script')
- <script type="text/javascript">
- function updateSettings(el, type){
- if($(el).is(':checked')){
- var value = 1;
- }
- else{
- var value = 0;
- }
- $.post('{{ route('business_settings.update.activation') }}', {_token:'{{ csrf_token() }}', type:type, value:value}, function(data){
- if(data == '1'){
- AIZ.plugins.notify('success', '{{ translate('Settings updated successfully') }}');
- }
- else{
- AIZ.plugins.notify('danger', '{{ translate('Something went wrong') }}');
- }
- });
- }
- </script>
- @endsection
|