<?php $__currentLoopData = App\Models\Payment_gateway::where('status', 1)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment_gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <p class="mt-3 mb-3 fw-bold"><?php echo e($payment_gateway->title); ?></p>
    <?php
        $gateway_keys = json_decode($payment_gateway->keys, true);

        if (isset($instructor)) {
            $instructor_keys = json_decode($instructor->paymentkeys, true);
        }

    ?>
    <?php if(is_array($gateway_keys)): ?>
        <?php $__currentLoopData = $gateway_keys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php
                if (isset($instructor_keys) && is_array($instructor_keys) && array_key_exists($payment_gateway->identifier, $instructor_keys)) {
                    $input_val = $instructor_keys[$payment_gateway->identifier][$key];
                } else {
                    $input_val = '';
                }
            ?>
            <div class="row mb-3">
                <label for="<?php echo e($payment_gateway->identifier); ?><?php echo e($key); ?>" class="form-label ol-form-label col-sm-2 col-form-label text-capitalize"><?php echo e(get_phrase(str_replace('_', ' ', $key))); ?></label>
                <div class="col-sm-8">
                    <input type="text" name="paymentkeys[<?php echo e($payment_gateway->identifier); ?>][<?php echo e($key); ?>]" class="form-control ol-form-control" id="<?php echo e($payment_gateway->identifier); ?><?php echo e($key); ?>" value="<?php echo e($input_val); ?>">
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php else: ?>
        <div class="alert alert-primary" role="alert">
            <?php echo e(get_phrase('No API required')); ?>

        </div>
    <?php endif; ?>

    <div class="m-3">
        <hr>
    </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php /**PATH /var/www/payraty/lms_main/resources/views/admin/admin/create_payment.blade.php ENDPATH**/ ?>