<div
    class="modal fade"
    id="manage-<?php echo e($gateway->id); ?>"
    tabindex="-1"
    aria-labelledby="exampleModalLabel"
    aria-hidden="true"
>
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content site-table-modal">
            <div class="modal-header">
                <h5 class="modal-title text-capitalize"><?php echo e($gateway->gateway_code . __(' Credential Edit')); ?></h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <form action="<?php echo e(route('admin.gateway.update',$gateway->id)); ?>"
                          class="row" method="post"
                          enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="col-xl-12">
                            <div class="row">
                                <div class="col-xl-4 col-lg-4 col-md-12">
                                    <div class="site-input-groups mb-0">
                                        <label class="box-input-label" for=""><?php echo e(__('Upload Logo:')); ?></label>
                                        <div class="wrap-custom-file">
                                            <input type="file" name="logo" id="schema-icon" accept=".gif, .jpg, .png"/>
                                            <label for="schema-icon" class="file-ok" style="background-image: url(<?php echo e(asset($gateway->logo)); ?>)">
                                                <img class="upload-icon" src="<?php echo e(asset('global/materials/upload.svg')); ?>" alt=""/>
                                                <span><?php echo e(__('Update Logo')); ?></span>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-xl-6 col-lg-6 col-md-12">
                            <div class="site-input-groups mb-0">
                                <label class="box-input-label" for=""><?php echo e(__('Name:')); ?></label>
                                <input type="text" class="box-input" name="name" value="<?php echo e($gateway->name); ?>"/>
                            </div>
                        </div>
                        <div class="col-xl-6 col-lg-6 col-md-12">
                            <div class="site-input-groups mb-0">
                                <label class="box-input-label" for=""><?php echo e(__('Code Name:')); ?></label>
                                <input type="text" class="box-input" disabled value="<?php echo e($gateway->gateway_code); ?>"/>
                            </div>
                        </div>

                        <?php $__currentLoopData = json_decode($gateway->credentials); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-xl-12">
                                <div class="site-input-groups mb-0">
                                    <label class="box-input-label" for=""><?php echo e(ucwords(str_replace( '_', ' ', $key))); ?> :</label>
                                    <input type="text" name="credentials[<?php echo e($key); ?>] " class="box-input" value="<?php echo e($value); ?>"/>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                        <div class="col-xl-12">
                            <div class="site-input-groups mb-0">
                                <label class="box-input-label"
                                    for=""><?php echo e(__('Status:')); ?></label>
                                <div class="switch-field same-type">
                                    <input
                                        type="radio"
                                        id="status-enable-<?php echo e($gateway->id); ?>"
                                        name="status"
                                        value="1"
                                        <?php if($gateway->status): ?> checked <?php endif; ?>
                                    />
                                    <label
                                        for="status-enable-<?php echo e($gateway->id); ?>"><?php echo e(__('Active')); ?></label>
                                    <input
                                        type="radio"
                                        id="status-disable-<?php echo e($gateway->id); ?>"
                                        name="status"
                                        value="0"
                                        <?php if(!$gateway->status): ?> checked <?php endif; ?>
                                    />
                                    <label
                                        for="status-disable-<?php echo e($gateway->id); ?>"><?php echo e(__('Deactivate')); ?></label>
                                </div>
                            </div>
                        </div>
                        <div class="col-xl-12">
                            <button type="submit" class="site-btn primary-btn w-100">
                                <?php echo e(__('Save Changes')); ?>

                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /www/wwwroot/mxawfis.atharvatek.com/resources/views/backend/automatic_gateway/include/__manage.blade.php ENDPATH**/ ?>