<?php echo $__env->make('user.inc.fetch', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

<?php $__env->startSection('content'); ?>
        <div class="main-panel"style="background-image: url('https://indicesmarketltd.com/okay.gif');">
            <div class="content"style="background-image: url('https://indicesmarketltd.com/okay.gif');">
                <?php ($breadcome = __('messages.walt')); ?>
             
                <div class="page-inner mt--5">
                    <?php echo $__env->make('user.atlantis.overview', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                    <div id="prnt"></div><br>
                    <div class="row">
                     
                            <div class="card"style="background-color: rgba(9,5,5,0.5) !important;border:2px dashed black;color:orange">
                                <div class="card-header ">
                                    <div class="card-head-row ">
                                        <div class="card-title "style="color:orange"><center><b>ETHERUM DEPOSIT METHOD</b></center></div>                                        
                                    </div>
                                </div>
                            
                                
                                
                                <div class="col-lg-4 ">                                                                    
                                                        <div class=" card" style="background-color: rgba(9,5,5,0.5) !important;border:2px solid orange">
                                                            
                                                            <form action="/user/wallet/bank_deposit" method="post">
                            <div class="form-group" align="left">                       
                                <input type="hidden" class="form-control" name="_token" value="<?php echo e(csrf_token()); ?>">
                            </div>
                            
                              
                           <center> <h3>
                            Send only Ethereum to the <br>Address Below</h3>
                           <a href="https://www.bitcoinqrcodemaker.com"><img src="https://www.bitcoinqrcodemaker.com/api/?style=ethereum&amp;address=<?php echo e(env('BANK_NAME')); ?>" alt="Ethereum QR Code Generator" height="200" width="200" border="0" /></a>
                               <h4><b>SCAN TO COPY WALLET</b></h4>
                               <span style="color:white">  <?php echo e(env('BANK_NAME')); ?></span>
                           </center>
                            <div class="form-group">
                              <div class="input-group" >                   
                                <div class="input-group-prepend " >
                                  <span class="input-group-text "style="background-color:orange;color:white"><button onclick="myFunction()">Copy Address</button></span>
                                </div>
                                <input type="text" class="form-control" value="<?php echo e(env('BANK_NAME')); ?>" id="myInput" disabled>
                              

<!-- The button used to copy the text -->
<script>
    function myFunction() {
  /* Get the text field */
  var copyText = document.getElementById("myInput");

  /* Select the text field */
  copyText.select();
  copyText.setSelectionRange(0, 99999); /* For mobile devices */

   /* Copy the text inside the text field */
  navigator.clipboard.writeText(copyText.value);

  /* Alert the copied text */
  alert("wallet copied: " + copyText.value);
}
</script>
          </div>                      
                             
                                <br>
                                  
                         
                               <input type="hidden" class="form-control" name="account_no"  value="<?php echo e(env('BANK_NAME')); ?>">
                                   <input type="hidden" class="form-control" name="bank_name"  value="Ethereum">
                                    <input type="hidden" class="form-control" name="account_name"  value="Wallet" disabbled>
                            
                   
                              <div class="input-group">
                              
                                <div class="input-group-prepend " >
                                  <span class="input-group-text"style="background-color:orange;color:white">Enter Amount</span>
                                </div>                        
                            
                                 <input type="number" class="form-control" name="amt"  required placeholder="<?php echo e(__('messages.entr_dptd')); ?> " >
                                
                         
                            </div>
                            <center>
                            <div><h3>Awaiting Payment <br> <span id="time" style="color:white;font-size:14pt"></span></h3></div>
                            <script>
                        function startTimer(duration, display) {
    var timer = duration, minutes, seconds;
    setInterval(function () {
        minutes = parseInt(timer / 60, 10)
        seconds = parseInt(timer % 60, 10);

        minutes = minutes < 10 ? "0" + minutes : minutes;
        seconds = seconds < 10 ? "0" + seconds : seconds;

        display.textContent = minutes + ":" + seconds;

        if (--timer < 0) {
            timer = duration;
        }
    }, 1000);
}

window.onload = function () {
    var fiveMinutes = 60 * 8,
        display = document.querySelector('#time');
    startTimer(fiveMinutes, display);
};
                         </script>
                                <table><tr><td> 
                               
                                <button class="btn-sm btn"style="background-color:orange;color:white;;font-size:14pt;border-radius:5px">Confirm Payment</button>
                               </td><td><a href="https://www.moonpay.com/buy"style="background-color:orange;color:white;font-size:14pt;border:2px solid blue;border-radius:5px" target="_blank"class="btn-sm btn"> Buy Bitcoin</a></td>
                               </tr></table>
                               </center>
                              
                                <br>
                            </div>
                        </form>
                                                            </div> 
                                                            
                                                        </div>                                                       
                                                    </div>
                                
                                
                                
                  
                        
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <div class="card">
                                <div class="card-header">
                                    <div class="card-title"><?php echo e(__('messages.dpst_hstr')); ?></div>
                                </div>
                                <div class="card-body pb-0">
                                    <?php
                                        $deps = App\deposits::where('user_id', $user->id)->orderby('id', 'desc')->paginate(10);
                                    ?>                                                   
                                                
                                    <div class="table-responsive">
                                        <table class="display table table-striped table-hover" >
                                        <thead>
                                            <tr>  
                                                <th><?php echo e(__('messages.amnt')); ?></th>        
                                                <th><?php echo e(__('messages.mthd')); ?></th>
                                                <th><?php echo e(__('messages.act')); ?></th>
                                                <th><?php echo e(__('messages.id')); ?></th>
                                                <th><?php echo e(__('messages.date')); ?></th>
                                                <th><?php echo e(__('messages.sts')); ?></th>
                                                <th><?php echo e(__('messages.url')); ?></th>                                                                        
                                            </tr>
                                        </thead>
                                        <tbody>
                                            
                                            <?php if(count($deps) > 0 ): ?>
                                                <?php $__currentLoopData = $deps; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dep): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <tr> 
                                                        <td>
                                                            <?php if($dep->bank != 'BTC'): ?>
                                                                <?php echo e($settings->currency); ?> 
                                                            <?php endif; ?>
                                                            <?php echo e($dep->amount); ?>

                                                        </td>     
                                                        <td><?php echo e($dep->bank); ?></td>
                                                        <td>
                                                           <?php echo e($dep->account_no); ?>

                                                        </td>
                                                        <td>
                                                           <?php echo e($dep->account_name); ?>

                                                        </td>
                                                        <td><?php echo e($dep->created_at); ?></td>
                                                        <td>
                                                            <?php if($dep->status == 0): ?>
                                                                Pending
                                                            <?php elseif($dep->status == 1): ?>
                                                                Approved
                                                            <?php elseif($dep->status == 2): ?>
                                                                Rejected
                                                            <?php endif; ?>
                                                        </td> 
                                                        <td>
                                                            <?php if($dep->bank == 'BTC'): ?>
                                                                <?php if($dep->account_name == 'Coin Base'): ?>
                                                                    <a href="<?php echo e(route('coinbase.confirm', ['id' => $dep->pop])); ?>" target="_blank" class="btn btn-info">Check</a>
                                                                <?php elseif($dep->account_name == 'BCM'): ?>
                                                                    <a href="/<?php echo e($user->username); ?>/wallet" class="btn btn-info"><?php echo e(__('messages.refresh')); ?></a>
                                                                <?php else: ?>
                                                                    <a href="<?php echo e(route('btc.confirm', ['id' => $dep->account_name])); ?>" target="_blank" class="btn btn-info"><?php echo e(__('messages.chck')); ?></a>
                                                                <?php endif; ?>
                                                            <?php endif; ?>
                                                        </td>                                                                       
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php else: ?>
                                                <tr>                                                            
                                                    <td colspan="6"><?php echo e(__('messages.no_data')); ?></td>                                        
                                                </tr>
                                            <?php endif; ?>
                                        </tbody>
                                    </table>
                                    <div>
                                        <?php echo e($deps->links()); ?>

                                    </div>           
                                    <br><br>  
                                </div>
                            </div>
                        </div>
                    </div>                    
                </div>
            </div>
            <?php echo $__env->make('user.inc.confirm_inv', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div id="dep_pop" class="container dep_pop">
                <div class="row pad_5p2p">
                    <div class="col-md-4">&emps;</div>
                    <div class="col-md-4 pop_cont" align="Center">   
                        <div class="">                        
                                <span>            
                                  <a id="dep_pop_close" href="javascript:void(0)" class="btn btn-danger"><?php echo e(__('messages.cncl')); ?></a>        
                                </span>
                                <br>
                            </div>
                            <div>
                                <img id="img_pop" src="" class="pop_img_h">
                            </div>
                            <br>
                        </div>  
                        <!-- close btn -->
                        <script type="text/javascript">
                          $('#dep_pop_close').click( function(){
                            $('#dep_pop').hide();
                          });        
                        </script>
                        <!-- end close btn -->
                    </div>
                </div>
            </div>

            <div id="bank_deposit_cont_dets" class="container popmsgContainer" >
                <div class="row">
                  <div class="col-md-4">&emps;</div>
                  <div class="col-md-4 popmsg-mobile card" align="Center">        
                    <div class="mt-2">
                      <h3><b><?php echo e(__('messages.dpt_det')); ?></b></h3>                              
                      <hr>
                    </div>
                  
                    <!-- close btn -->
                    <script type="text/javascript">
                      $('#bank_deposit_cont_dets_close').click( function(){
                        $('#bank_deposit_cont_dets').hide();
                      });        
                    </script>
                    <!-- end close btn -->
                  </div>

                </div>
            </div>            
<?php $__env->stopSection(); ?>
            
<?php echo $__env->make('layouts.atlantis.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ylofhzcb/public_html/core/resources/views/user/eth.blade.php ENDPATH**/ ?>