<!DOCTYPE html>
<html class="no-js" lang="en">
    <head>
        <?php
            $this->load->view('user/common_style');
        ?>
    </head>
    <link id="bsdp-css" href="<?php echo base_url();?>assets/css/bootstrap-datepicker3.min.css" rel="stylesheet">
        <style>
        .project_area figure {
            display: inherit !important; float:left
        }
        
        .modal-dialog {
            width: 300px;
        }
        .modal-content {
            background: rgba(34, 49, 63, 0.9) url("../img/choose_us_area_bg.png") no-repeat scroll 0 0 / cover ;
            border: 1px solid #22313f;
            border-radius: 70px 0;
            box-shadow: 5px 0 14px 1px rgba(0, 0, 0, 0.63) inset;
        }
        .modal-body {
            color: #f5ab35;
        }
        .modal-header {
            color: #fff;
        }
        .dynamic {
            color: #fff;
            font-weight: bold;
        }
        .close span {
            color: #fff;
        }
        input[type="text"] {
            background: rgba(255, 255, 255, 0.9) none repeat scroll 0 0;
            border: 0 none;
            border-radius: 100px;
            color: #22313f;
            font-weight: 600;
            padding: 0 10px;
        }
        </style>
    <style>
        .input-group-addon {background:none !important;border:0px !important}
        small.help-block, .has-error label {text-align: center;color: #EF3328;}
        label.validation-error-label, #bal_error {color: #ef3328; font-size: 14px; font-weight: 100; padding-top: 4px; text-align: center !important;}

        .ethsty{
            color:#000;background-color: #fff;padding: 5px;border-radius:5px;border:1px solid #ccc;
        }
    </style>
    <body>
            
        <?php
            $this->load->view('user/header');
        ?>
            
        <?php
            $this->load->view('user/login_header');
            $currency_info = defaultcurrency();
        ?>

   

        <section class="dmain">
            <div class="container">
                <div class="row section_padding_50">
                    <div class="col-lg-12"> 
                        <div class="refrrinfo clearfix">
                            <div class="profilesub clearfix ">
                                <h2><?php echo $this->lang->line('menu_make_deposit'); ?></h2>
                            </div>
                            <center>
                            <div><br>
                            <?php 

                            $currency_det=$this->db->query("select * from payment_currency");
                            $currency_dat=$currency_det->result();
                            $eth_decimal=$currency_dat[2]->deimal_point;
                            $eth_name=$currency_dat[2]->currency_unit;
                            


                            $url = "https://api.cryptonator.com/api/ticker/usd-eth";
                            $json = file_get_contents($url);
                            $data_api = json_decode($json, TRUE);
                            $data_amts=$data_api['ticker']['price'];
                            $data_amt=$data_amts*$amount;
                            ?>
                            <b style="color:#0000ff"> <?php echo $amount; ?> USD = <?php echo number_format($data_amt,$eth_decimal); ?> ETH</b>
                            </div>
                            <div>
                            </div>

                            <div><br>
                            <b>Make a payment through below mentioned address </b>
                            </div><br>
                            <div class="col-xs-12 nren ">
                            <div class="col-xs-3"></div><div class="col-xs-5">
                            <input id="link01" type="text" value="<?php echo $address; ?>" placeholder="Your Address" style="border-radius:0px" readonly/></div><div class="col-xs-1"> <input data-copytarget="#link01" type="button" class="copy" value="copy"/> </div>
                            <div class="col-xs-3"></div></div>

                            <br>

                            <div>
                            <b>QR Code </b>
                            </div>

                            <div>
                            <img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=<?php echo $address;?>">
                            </div>
                           
                            <div>
                            <br>
                            <i style="color:#f00">IMPORTANT: Send only Ether (ETH) to this deposit address.</i>
                            </div>

                            </center> 
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>



        <div class="clearfix"></div>
            
            <?php
                $this->load->view('user/footer');
            ?>
        
            <?php
                $this->load->view('user/common_script');
            ?>
            

            <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/forms/validation/validate.min.js"></script>
            <script src="<?php echo base_url();?>assets/js/bootstrap-datepicker.min.js"></script>
        <script type="text/javascript">

            jQuery.noConflict();
            (function( $ ) {
                $(function() {
             
                    $("#owl-example").owlCarousel({
                        nav:true,
                        items : 8, 
                        itemsCustom : false,
                        itemsDesktop : [1199,8],
                        itemsDesktopSmall : [980,5],
                        itemsTablet: [768,5],
                        itemsTabletSmall: [768,4],
                        itemsMobile : [479,2],
                        singleItem : false,
                        itemsScaleUp : true,
                        navigation : true,
                        navigationText : ["",""],
                        rewindNav : true,
                        scrollPerPage : false,
                    });
                });


            })(jQuery);

           
           
    
        </script>
        
       <!-- Core JS files -->

    <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/ui/nicescroll.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/ui/drilldown.js"></script>
    <!-- /core JS files -->
  
    <!-- Theme JS files -->
    <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/notifications/bootbox.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/notifications/sweet_alert.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>assets/js/core/app.js"></script>
    <!-- /theme JS files -->
     <script type="text/javascript">

      jQuery(document).ready(function() {
        'use strict';
        document.body.addEventListener('click', copy, true);
        function copy(e) {

          var
            t = e.target,
            c = t.dataset.copytarget,
            inp = (c ? document.querySelector(c) : null);

          if (inp && inp.select) {
            inp.select();
            try {
              document.execCommand('copy');
              inp.blur();
            }
            catch (err) {
              swal({
                  title: "<?php echo $this->lang->line('referral_copy_lbl'); ?>",
                  confirmButtonColor: "#f5ab35"
              });
            }

          }

        }
       
      });

    </script>
 
       
        
    </body>
</html>