File: /www/wwwroot/www.shooperm.com/storage/framework/views/d22b8c1e6153c04f441de1eba079045056fefb89.php
<?php $__env->startSection('styles'); ?>
<link rel="stylesheet" href="<?php echo e(asset(asset_path('modules/paymentgateway/css/style.css'))); ?>" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('mainContent'); ?>
<div class="row">
<div class="col-md-5 col-sm-6 col-xs-12">
<div class="main-title mb-25">
<h3 class="mb-0"><?php echo e(__('general_settings.Activation')); ?></h3>
</div>
<div class="common_QA_section QA_section_heading_custom">
<div class="QA_table ">
<!-- table-responsive -->
<div class="">
<table class="table Crm_table_active2">
<thead>
<tr>
<th scope="col"><?php echo e(__('common.sl')); ?></th>
<th scope="col"><?php echo e(__('common.name')); ?></th>
<th scope="col" class="text-right"><?php echo e(__('general_settings.activate')); ?></th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $gateway_activations; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $gateway_activation): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($key+1); ?></td>
<td>
<?php echo e(strtoupper(str_replace("_"," ",$gateway_activation->method))); ?>
<?php if(config('app.sync')): ?>
<?php if($gateway_activation->method == 'Bkash' || $gateway_activation->method == 'Mercado Pago' || $gateway_activation->method == 'SslCommerz'): ?>
<span class="demo_addons">Addon</span>
<?php endif; ?>
<?php endif; ?>
</td>
<td class="text-right">
<label class="switch_toggle" for="checkbox<?php echo e($gateway_activation->id); ?>">
<input type="checkbox" id="checkbox<?php echo e($gateway_activation->id); ?>" <?php if($gateway_activation->active_status == 1): ?> checked <?php endif; ?> <?php if(permissionCheck('update_payment_activation_status')): ?> value="<?php echo e($gateway_activation->id); ?>" class="payment_gateways_activate" <?php else: ?> disabled <?php endif; ?>>
<div class="slider round"></div>
</label>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-md-7 col-sm-6 col-xs-12">
<section class="admin-visitor-area up_st_admin_visitor">
<div class="container-fluid p-0">
<div class="row" id="form_list_div">
<?php echo $__env->make('paymentgateway::components._all_config_form_list', [$gateway_activations], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</div>
</div>
</section>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('scripts'); ?>
<script type="text/javascript">
(function($){
"use strict";
$(document).ready(function(){
$(document).on('change','.payment_gateways_activate', function(){
if(this.checked){
var status = 1;
}
else{
var status = 0;
}
$('#pre-loader').removeClass('d-none');
$.post('<?php echo e(route('update_payment_activation_status')); ?>', {_token:'<?php echo e(csrf_token()); ?>', id:this.value, status:status}, function(data){
if(data.status == 1){
toastr.success("<?php echo e(__('common.updated_successfully')); ?>","<?php echo e(__('common.success')); ?>");
$('#form_list_div').html(data.list);
$('#pre-loader').addClass('d-none');
}
else{
toastr.error("<?php echo e(__('common.error_message')); ?>", "<?php echo e(__('common.error')); ?>");
$('#pre-loader').addClass('d-none');
}
}).fail(function(response) {
if(response.responseJSON.error){
toastr.error(response.responseJSON.error ,"<?php echo e(__('common.error')); ?>");
$('#pre-loader').addClass('d-none');
return false;
}
});
});
$(document).on('change', '#paypal_logo', function(){
getFileName($(this).val(),'#thumbnail_image_file');
imageChangeWithFile($(this)[0],'#ThumbnailImgDiv');
});
$(document).on('change', '#logoStripe', function(){
getFileName($(this).val(),'#logoStripe_file');
imageChangeWithFile($(this)[0],'#logoStripeDiv');
});
$(document).on('change', '#logoPaystack', function(){
getFileName($(this).val(),'#logoPaystack_file');
imageChangeWithFile($(this)[0],'#logoPaystackDiv');
});
$(document).on('change', '#logoRazor', function(){
getFileName($(this).val(),'#Razor_file');
imageChangeWithFile($(this)[0],'#logoRazorDiv');
});
$(document).on('change', '#logoPaytm', function(){
getFileName($(this).val(),'#Paytm_file');
imageChangeWithFile($(this)[0],'#logoPaytmDiv');
});
$(document).on('change', '#logoInstamojo', function(){
getFileName($(this).val(),'#Instamojo_file');
imageChangeWithFile($(this)[0],'#logoInstamojoDiv');
});
$(document).on('change', '#logoMidtrans', function(){
getFileName($(this).val(),'#logoMidtrans_file')
imageChangeWithFile($(this)[0],'#logoMidtransDiv');
});
$(document).on('change', '#logoPayUmoney', function(){
getFileName($(this).val(),'#logoPayUmoney_file');
imageChangeWithFile($(this)[0],'#logoPayUmoneyDiv');
});
$(document).on('change', '#logoJazzCash', function(){
getFileName($(this).val(),'#JazzCash_file');
imageChangeWithFile($(this)[0],'#logoJazzCashDiv');
});
$(document).on('change', '#logogooglePay', function(){
getFileName($(this).val(),'#googlePay_file');
imageChangeWithFile($(this)[0],'#logogooglePayDiv');
});
$(document).on('change', '#logoFlutterWave', function(){
getFileName($(this).val(),'#logoFlutterWave_file');
imageChangeWithFile($(this)[0],'#logoFlutterWaveDiv');
});
$(document).on('change', '#logoPaddle', function(){
getFileName($(this).val(),'#logoPaddle_file');
imageChangeWithFile($(this)[0],'#logoPaddleDiv');
});
$(document).on('change', '#logobank', function(){
getFileName($(this).val(),'#bank_image_file');
imageChangeWithFile($(this)[0],'#BankImgDiv');
});
$(document).on('change', '#bkashlogo', function(){
getFileName($(this).val(),'#bkash_image_file');
imageChangeWithFile($(this)[0],'#BkashImgDiv');
});
$(document).on('change', '#ssl_commerz_logo', function(){
getFileName($(this).val(),'#ssl_commerz_image_file');
imageChangeWithFile($(this)[0],'#SSLImgDiv');
});
$(document).on('change', '#mercado_logo', function(){
getFileName($(this).val(),'#mercado_image_file');
imageChangeWithFile($(this)[0],'#MercadoImgDiv');
});
});
})(jQuery);
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('backEnd.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/www.shooperm.com/Modules/PaymentGateway/Resources/views/index.blade.php ENDPATH**/ ?>