<?php $__env->startSection('section', admin_trans('Premium')); ?>
<?php $__env->startSection('title', admin_trans('Payment Gateways') . ' | ' . $paymentGateway->name); ?>
<?php $__env->startSection('container', 'container-max-lg'); ?>
<?php $__env->startSection('back', route('admin.premium.payment-gateways.index')); ?>
<?php $__env->startSection('content'); ?>
    <form id="vironeer-submited-form" action="<?php echo e(route('admin.premium.payment-gateways.update', $paymentGateway->id)); ?>"
        method="POST" enctype="multipart/form-data">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>
        <div class="card mb-3">
            <div class="card-header"><?php echo e(admin_trans('Details')); ?></div>
            <div class="card-body">
                <div class="row g-3 mb-2 align-items-center">
                    <div class="col-lg-12">
                        <div class="vironeer-file-preview-box mb-3 bg-light p-4 text-center">
                            <div class="file-preview-box mb-3">
                                <img id="filePreview" src="<?php echo e(asset($paymentGateway->logo)); ?>" class="rounded-3"
                                    height="40px" height="40px">
                            </div>
                            <button id="selectFileBtn" type="button" class="btn btn-secondary mb-2"><i
                                    class="fas fa-camera me-2"></i><?php echo e(admin_trans('Choose Logo')); ?></button>
                            <input id="selectedFileInput" type="file" name="logo" accept=".png, .jpg, .jpeg" hidden>
                            <small class="text-muted d-block"><?php echo e(admin_trans('Allowed (PNG, JPG, JPEG)')); ?></small>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <label class="form-label"><?php echo e(admin_trans('Name')); ?>

                        </label>
                        <input type="text" name="name" class="form-control" value="<?php echo e($paymentGateway->name); ?>"
                            required>
                    </div>
                    <div class="col-lg-6">
                        <label class="form-label"><?php echo e(admin_trans('Status')); ?> </label>
                        <input type="checkbox" name="status" data-toggle="toggle"
                            <?php echo e($paymentGateway->status ? 'checked' : ''); ?>>
                    </div>
                </div>
            </div>
        </div>
        <?php if($paymentGateway->description): ?>
            <div class="card mb-3">
                <div class="card-header"><?php echo e(admin_trans('Description')); ?></div>
                <div class="card-body">
                    <?php echo str_replace('[URL]', url('/'), $paymentGateway->description); ?>

                </div>
            </div>
        <?php endif; ?>
        <?php if(!$paymentGateway->isManual()): ?>
            <div class="card">
                <div class="card-header"><?php echo e(admin_trans('Credentials')); ?></div>
                <div class="card-body">
                    <div class="row mb-2 g-3">
                        <?php $__currentLoopData = $paymentGateway->credentials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <div class="col-lg-12">
                                <label class="form-label capitalize"><?php echo e($paymentGateway->name); ?>

                                    <?php echo e(str_replace('_', ' ', $key)); ?></label>
                                <input type="text" name="credentials[<?php echo e($key); ?>]"
                                    value="<?php echo e(demoMode() ? '' : $value); ?>" class="form-control">
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </div>
                </div>
            </div>
        <?php else: ?>
            <?php if($paymentGateway->alias != 'balance'): ?>
                <div class="card">
                    <div class="card-header"><?php echo e(admin_trans('Instructions')); ?></div>
                    <div class="card-body ckeditor-md">
                        <div class="mb-2">
                            <textarea name="instructions" class="ckeditor"><?php echo e($paymentGateway->instructions); ?></textarea>
                        </div>
                    </div>
                </div>
            <?php endif; ?>
        <?php endif; ?>
    </form>
    <?php $__env->startPush('scripts_libs'); ?>
        <script src="<?php echo e(asset('vendor/libs/ckeditor/ckeditor.js')); ?>"></script>
        <script src="<?php echo e(asset('vendor/libs/ckeditor/plugins/uploadAdapterPlugin.js')); ?>"></script>
    <?php $__env->stopPush(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/neofiles.codenine.biz.id/resources/views/backend/premium/payment-gateways/edit.blade.php ENDPATH**/ ?>