Viewing file: eff7fc7006c663968c723905a5e97ef1.php (18.77 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(__('All Games')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('styleplugins'); ?> <style> @media (max-width: 575.98px) { .top_up_section_step_payment { grid-template-columns: repeat(3, 1fr); } .top_up-product-detail-text .games-tilts-type { font-size: 15px; } .top_up-product-detail-img img { width: 100px; height: 100px; } .read-details { font-size: 12px; } .top_up-product-detail-text-des{ font-size: 12px; } .top_up_section_uid{ display: block !important; padding: 32px 10px; } .top_up_section_steps.one{ margin-right: 0px; margin-bottom: 15px; } } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $setting = DB::table('settings')->first(); $footer_email = $setting->footer_email ?? ''; ?>
<div class="container top_section"> <div class="row"> <div class="col-12"> <form action="<?php echo e(route('front.top.up.process')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="row"> <div class="col-lg-7 top_up_section"> <div class="top_up_section_uid d-flex"> <div class="top_up_section_steps one">1</div> <div class="w-100"> <?php if(isset($game) && isset($game->forms) && !empty(json_decode($game->forms, true))): ?> <?php $__currentLoopData = json_decode($game->forms); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $form): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <div class="top_up_section_step_one"> <?php echo e(Str::upper(str_replace('_', ' ', $form->name))); ?>
</div> <div class="top_up_section_step_one_form"> <div class="input-group input-email-id mb-4"> <?php if($form->type == 'text' || $form->type == 'tel' || $form->type == 'number'): ?> <?php if($form->name == 'user_id' || $form->name == 'uid' || $form->name == 'UID' || $form->name == 'identitas' || $form->name == 'identitas' || $form->name == 'Username' || $form->name == 'Account ID'): ?> <input type="<?php echo e($form->type); ?>" id="uid" class="form-control" placeholder="<?php echo e(Str::upper(str_replace('_', ' ', $form->name))); ?>" name="user_id" autocomplete="off"> <?php else: ?> <input type="<?php echo e($form->type); ?>" id="uid" class="form-control" placeholder="<?php echo e(Str::upper(str_replace('_', ' ', $form->name))); ?>" name="<?php echo e($form->name); ?>" autocomplete="off"> <?php endif; ?> <?php elseif($form->type == 'option' && isset($form->options)): ?> <select class="form-control" name="<?php echo e($form->name); ?>"> <?php $__currentLoopData = $form->options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($option->value); ?>"><?php echo e($option->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> <?php elseif($form->type == 'textarea'): ?> <textarea class="form-control" name="<?php echo e($form->name); ?>" placeholder="<?php echo e(Str::upper(str_replace('_', ' ', $form->name))); ?>"></textarea> <?php endif; ?> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <div class="top_up_section_step_one"> Email </div> <div class="top_up_section_step_one_form"> <div class="input-group input-email-id mb-4"> <span class="input-group-text input-group-prepend" id="basic-addon1"><i class="fa fa-envelope"></i></span> <input type="text" id="uid" class="form-control" placeholder="Email" name="user_id" autocomplete="off"> </div> </div> <?php endif; ?> </div> </div> <div class="top_up_section_uid"> <div class="top_up_section_step_one"> <div class="top_up_section_steps">2</div> Select Amount </div> <div class="top_up_section_step_two_form mt-4"> <input type="hidden" id="top_up_item_pricing" name="pricing"> <input type="hidden" id="top_up_item_code" name="code"> <div class="top_up_section_step_payment"> <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <button class="top_up_section_step_payment_item" data-code="<?php echo e($item->code); ?>" data-price="<?php echo e(PriceHelper::grandCurrencyPrice($item->price)); ?>"> <?php echo e($item->name); ?>
</button> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> </div> </div> <div class="top_up_section_uid"> <div class="top_up_section_step_one"> <div class="top_up_section_steps">3</div> Select Payment Channel </div> <div class="top_up_section_step_three_form mt-4"> <div class="top_up_section_step_three_wallet"> <div class="mt-3 top_up_section_step_three_wallet-text">All Payment Channels</div> <div class="top_up_section_step_three_wallet-details mt-3"> <div class="top_up_section_step_three_wallet-type mb-3"> <a class="btn top_up_section_step_three_wallet-type-select" data-bs-toggle="collapse" href="#collapseExample" role="button" aria-expanded="false" aria-controls="collapseExample"> <div class="top_up_section_step_three_wallet-type-select-text"> <div>Wallet</div> <div class="category-charges new_pricing"> 0 </div> </div> </a> <div class="collapse panel-collapse" id="collapseExample"> <div class="payment-channel-button-container"> <div class="payment-channel-button-container-item"> <div class="payment-channel-button-container-item-btn"> <div class="payment-channel-button-container-item-btn-header"> <div class="payment-icon-container"> <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ4mJfZvwTY00iYorXG83ejXXrGMTWloBCYSA&s" alt=""> </div> <div class="text-right"> <div class="currency">BDD</div> <div id="new_pricing" class="pricing new_pricing">0</div> </div> </div> <input type="hidden" id="wallet_name" name="wallet_name"> <div class="payment-channel-button-container-item-btn-body">Offline</div> </div> </div> </div> </div> </div> <div class="product-feedback-container text-center"> <div class="product-feedback-container-text mb-4 mt-4"> Please share your valuable feedback </div> <a href="mailto:<?php echo e($footer_email); ?>" class="btn product-feedback-container-btn mt-3 px-3">Give Feedback</a> </div> </div> </div> </div> </div> </div> <div class="col-lg-5 position-relative"> <div class="position-relative"> <div class="fixed-div"> <div class="top_up_section_uid"> <div class="top_up-product-detail"> <div class="top_up-product-detail-img"> <img src="<?php echo e(asset('assets/images/'.$game->photo)); ?>" alt=""> </div> <div class="top_up-product-detail-text"> <div class=""> <div class="games-tilts-name"><?php echo e($game->name); ?></div> <div class="games-tilts-type"><?php echo e($game->meta_keywords); ?></div> </div> <div class="top_up-product-detail-text-des mt-2 text-white"> <?php echo e(Str::words($game->meta_descriptions, 20, '...')); ?> <a href="#" id="read-details" class="read-details">Read More</a> </div> </div> </div> </div> <div class="top_up_section_uid text-white"> <h4 class="pb-2">Checkout</h4> <div class="row py-1"> <div class="col-6 text-left" style="color: hsla(0, 0%, 100%, .7);">Payment</div> <div class="col-6 text-right new_wallet_name"></div> </div> <div class="row py-1"> <div class="col-6 text-left" style="color: hsla(0, 0%, 100%, .7);">Item</div> <div class="col-6 text-right new_item_name"></div> </div> <div class="row py-1"> <div class="col-6 text-left" style="color: hsla(0, 0%, 100%, .7);">Total</div> <div class="col-6 text-right new_pricing"></div> </div> <button class="btn purchase_now_btn w-100 mt-4" disabled>Purchase Now</button> </div> </div> </div> </div> </div> </form> </div> </div> </div>
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content modal-content-bg-color"> <div class="modal-header"> <h5 class="modal-title" id="modal-titles"></h5> </div> <div class="modal-body mt-3"> <p class="m-0" id="modal-des"></p> <button type="button" class="btn btn-close-modal mt-4 float-right btn-sm" data-bs-dismiss="modal">Ok</button> </div> </div> </div> </div> <div class="modal fade" id="exampleModaldetails" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered"> <div class="modal-content modal-content-bg-color"> <div class="modal-header border-bottom"> <h5 class="modal-title">Game Details</h5> </div> <div class="modal-body mt-3"> <div class="top_up-product-detail align-items-center"> <div class="top_up-product-detail-img"> <img src="<?php echo e(asset('assets/images/'.$game->photo)); ?>" alt=""> </div> <div class="top_up-product-detail-text"> <div class=""> <div class="games-tilts-name"><?php echo e($game->name); ?></div> <div class="games-tilts-type"><?php echo e($game->meta_keywords); ?></div> </div> </div> </div> <div class="top_up-product-detail-text-des mt-5 text-white text-center"> <?php echo e($game->meta_descriptions); ?> </div> <button type="button" class="btn btn-close-modal mt-4 float-right btn-sm" data-bs-dismiss="modal">Ok</button> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<?php $__env->startSection('jsplugins'); ?> <script>
$(document).on('click','.top_up_section_step_payment_item',function(e){ e.preventDefault(); let pricing = $(this).attr('data-price'); let code = $(this).attr('data-code'); let name = $(this).text(); $('.top_up_section_step_payment_item').removeClass('active'); $(this).addClass('active'); $('#top_up_item_pricing').val(pricing); $('#top_up_item_code').val(code); $('.new_pricing').text(pricing), $('.new_item_name').text(name) }); $(document).on('click','.payment-channel-button-container-item-btn',function(e){ e.preventDefault(); let uid = $('#uid').val(); let price = $('#top_up_item_pricing').val(); if(!uid || !price){ let titles = ""; let des = ""; if(!uid){ titles = "Invalid email"; des = "Please enter your active email."; }else{ titles = "You have to select an amount first"; des = "Please select an item before selecting a payment channel"; } $('#modal-titles').text(titles); $('#modal-des').text(des); $('#exampleModal').modal('show'); }else{ let name = $('.payment-channel-button-container-item-btn-body').text(); $('.new_wallet_name').text(name); $('#wallet_name').val(name); $(".purchase_now_btn").prop("disabled", false); } }); </script> <script> $(document).on('click','#read-details',function(e){ $('#exampleModaldetails').modal('show'); }); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('master.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/game.picotech.app/public_html/core/resources/views/front/top_up.blade.php ENDPATH**/ ?>
|