<?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?>
<?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('title', null, []); ?>  <?php echo e(translate('Create Method')); ?>  <?php $__env->endSlot(); ?>
    <!-- BREADCRUMB -->
    <?php if (isset($component)) { $__componentOriginalcf27f2c2c873893339708d5fdeeb6984 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::admin.breadcrumb','data' => ['backUrl' => ''.e(route('payment-method.index')).'','title' => ''.e(isset($method) ? 'Edit' : 'Create').' Payment Method','pageTo' => 'Payment Method']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::admin.breadcrumb'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['back-url' => ''.e(route('payment-method.index')).'','title' => ''.e(isset($method) ? 'Edit' : 'Create').' Payment Method','page-to' => 'Payment Method']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $attributes = $__attributesOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__attributesOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984)): ?>
<?php $component = $__componentOriginalcf27f2c2c873893339708d5fdeeb6984; ?>
<?php unset($__componentOriginalcf27f2c2c873893339708d5fdeeb6984); ?>
<?php endif; ?>


    <div class="card">

        <div>
            <b> <?php echo e(translate(ucfirst($method->slug) . ' Setting')); ?></b>
        </div>
        <form method="post" class="form"
            action="<?php echo e(isset($method) ? route('payment-method.update', $method->id) : route('payment-method.store')); ?>">
            <?php echo csrf_field(); ?>
            <?php if(isset($method)): ?>
                <?php echo method_field('PUT'); ?>
            <?php endif; ?>

            <div class="mt-6 grid grid-cols-12 gap-4">
                <div class="col-span-full md:col-span-4 mt-3">
                    <label class="form-label"> <?php echo e(translate('Want to keep test mode enabled')); ?>?</label>
                    <select name="enabled_test_mode" class="form-input">
                        <option value="0" <?php echo e($method->enabled_test_mode == 0 ? 'selected' : ''); ?>>
                            <?php echo e(translate('Sandbox')); ?></option>
                        <option value="1" <?php echo e($method->enabled_test_mode == 1 ? 'selected' : ''); ?>>
                            <?php echo e(translate('Production')); ?>

                        </option>
                    </select>
                </div>
                <div class="col-span-full md:col-span-4 mt-3">
                    <label class="form-label"> <?php echo e(translate('Status')); ?></label>
                    <select name="status" class="form-input">
                        <option value="1" <?php echo e($method->status == 1 ? 'selected' : ''); ?>>
                            <?php echo e(translate('Active')); ?></option>
                        <option value="0" <?php echo e($method->status == 0 ? 'selected' : ''); ?>>
                            <?php echo e(translate('Inactive')); ?>

                        </option>
                    </select>
                </div>
                <div class="col-span-full md:col-span-4 mt-3">
                    <label class="form-label"> <?php echo e(translate('Select Currency')); ?> </label>
                    <select data-select id="currency" name="currency" class="singleSelect">
                        <option selected disabled data-display="<?php echo e(translate('Select Currency')); ?>">
                            <?php echo e(translate('Select Currency')); ?> </option>
                        <?php $__currentLoopData = get_currency_list(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $currencyList): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <option value="<?php echo e($currencyList['code']); ?>"
                                <?php echo e($currencyList['code'] == $method->currency ? 'selected' : ''); ?>>
                                <?php echo e($currencyList['code']); ?>

                            </option>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </select>
                </div>
            </div>
            <?php if($method->slug == 'paypal'): ?>
                <div class="grid grid-cols-12 gap-4">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Sandbox Client')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Sandbox Client Id')); ?>"
                                name="key[0][sandbox_client_id]" value="<?php echo e($method->keys['sandbox_client_id'] ?? ''); ?>"
                                class="form-input">
                        </div>
                    </div>
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Sandbox Secret')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Sandbox Secret Key')); ?>"
                                name="key[0][sandbox_secret_key]"
                                value="<?php echo e($method->keys['sandbox_secret_key'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                </div>
                <div class="grid grid-cols-12 gap-4">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Production Client')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Production Client Id')); ?>"
                                name="key[0][production_client_id]"
                                value="<?php echo e($method->keys['production_client_id'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Production Secret')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Production Secret Key')); ?>"
                                name="key[0][production_secret_key]"
                                value="<?php echo e($method->keys['production_secret_key'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                </div>
            <?php endif; ?>

            <?php if($method->slug == 'stripe'): ?>
                <div class="grid grid-cols-12 gap-4">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Public key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Public Key')); ?>" name="key[0][public_key]"
                                value="<?php echo e($method->keys['public_key'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Secret Key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Secret Key')); ?>" name="key[0][secret_key]"
                                value="<?php echo e($method->keys['secret_key'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                </div>
                <div class="grid grid-cols-12 gap-4">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Live Public key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Live Public key')); ?>"
                                name="key[0][public_live_key]" value="<?php echo e($method->keys['public_live_key'] ?? ''); ?>"
                                class="form-input">
                        </div>
                    </div>
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Live Secret')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Live Secret Key')); ?>"
                                name="key[0][secret_live_key]" value="<?php echo e($method->keys['secret_live_key'] ?? ''); ?>"
                                class="form-input">
                        </div>
                    </div>
                </div>
            <?php endif; ?>
            <?php if($method->slug == 'razorpay'): ?>
                <div class="grid grid-cols-12 gap-4">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Key Id')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Key Id')); ?>" name="key[0][key_id]"
                                value="<?php echo e($method->keys['key_id'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Secret Key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Secret Key')); ?>" name="key[0][secret_key]"
                                value="<?php echo e($method->keys['secret_key'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                </div>
            <?php endif; ?>

            <?php if($method->slug == 'paystack'): ?>
                <div class="grid grid-cols-12 gap-4">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Public Key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Public Key')); ?>"
                                name="key[0][public_key]" value="<?php echo e($method->keys['public_key'] ?? ''); ?>"
                                class="form-input">
                        </div>
                    </div>
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Secret Key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Secret Key')); ?>"
                                name="key[0][secret_key]" value="<?php echo e($method->keys['secret_key'] ?? ''); ?>"
                                class="form-input">
                        </div>
                    </div>

                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Merchant Email')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Merchant Email')); ?>"
                                name="key[0][merchant_email]" value="<?php echo e($method->keys['merchant_email'] ?? ''); ?>"
                                class="form-input">
                        </div>
                    </div>
                </div>
            <?php endif; ?>



            


            <?php if($method->slug == 'xendit'): ?>
                <div class="grid grid-cols-12 gap-4">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('API Key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('API Key')); ?>" name="key[0][api_key]"
                                value="<?php echo e($method->keys['api_key'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Secret Key')); ?></label>
                            <input type="text" placeholder="<?php echo e(translate('Secret Key')); ?>"
                                name="key[0][secret_key]" value="<?php echo e($method->keys['secret_key'] ?? ''); ?>"
                                class="form-input">
                        </div>
                    </div>
                </div>
            <?php endif; ?>
            <div class="mt-6">
                <div class="grid grid-cols-12 gap-6">
                    <div class="col-span-full md:col-span-6 mt-3">
                        <div>
                            <label class="form-label"> <?php echo e(translate('Conversation your currency to USD')); ?>

                            </label>
                            <input type="text" placeholder="<?php echo e(translate('Conversation rate to USD')); ?>"
                                name="key[0][conversation_rate]"
                                value="<?php echo e($method->keys['conversation_rate'] ?? ''); ?>" class="form-input">
                        </div>
                    </div>
                </div>
                <label class="form-label"> <?php echo e(translate('Logo')); ?> <span class="require-field">*</span></label>
                <label for="imgage"
                    class="dropzone-wrappe file-container ac-bg text-xs leading-none font-semibold mb-3 cursor-pointer size-[200px] flex flex-col items-center justify-center gap-2.5 border border-dashed border-gray-900 rounded-10 dk-theme-card-square">
                    <input type="file" hidden name="image" id="imgage"
                        class="dropzone dropzone-image img-src peer/file">
                    <span class="flex-center flex-col peer-[.uploaded]/file:hidden">
                        <img src="<?php echo e(asset('lms/assets/images/icons/upload-file.svg')); ?>" alt="file-icon"
                            class="size-8">
                        <div class="text-gray-500 dark:text-dark-text mt-2"> <?php echo e(translate('Choose file')); ?> </div>
                    </span>
                    <span class="text-danger error-text image_err"></span>
                </label>
                <div class="preview-zone dropzone-preview">
                    <div class="box box-solid">
                        <div class="box-body flex items-center gap-2 flex-wrap">
                            <?php if(isset($method) && fileExists($folder = 'lms/payments', $fileName = $method->logo) == true && $method->logo != ''): ?>
                                <div class="img-thumb-wrapper"> <button class="remove">
                                        <i class="ri-close-line text-inherit text-[13px]"></i> </button>
                                    <img class="img-thumb" width="100"
                                        src="<?php echo e(asset('storage/lms/payments/' . $method->logo)); ?>" />
                                </div>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
            <div class="card flex justify-end">
                <button type="submit" class="btn b-solid btn-primary-solid cursor-pointer dk-theme-card-square">
                    <?php echo e(isset($method) ? translate('Update') : translate('Save')); ?>

                </button>
            </div>
        </form>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\admin\paymethod\create.blade.php ENDPATH**/ ?>