
<!-- main header @e --> 
<div class="nk-content nk-content-fluid">
    <div class="container-xl wide-lg">
        <div class="nk-content-body">
            <div class="nk-block-head">
                <div class="nk-block-head-sub">
                </div>
                <div class="nk-block-between-md g-4 card-bordered">
                    <div class="nk-block-head-content">
                        <h4 class="nk-block-title fw-normal">Online Check Deposit.</h4>
                        <div class="nk-block-des">
                            <p>you can deposit checks by snapping pictures of the front and back of the check.</p>
                        </div>
                    </div><!-- .nk-block-head-content -->
                    <div class="nk-block-head-content">
                        <ul class="nk-block-tools gx-3">
                            <li><a href="index?local=local" class="btn btn-danger text-light"><span>Transfer Fund</span><em class="icon a-solid fa-wallet"></em></a></li>
                        </ul>

                    </div><!-- .nk-block-head-content -->
                </div><!-- .nk-block-between -->
            </div><!-- .nk-block-head -->
        </div>
    </div>
    <div class="card card-bordered">
         <div class="card-header font-weight-bold text-light" style="background-color:#3140fc;">Deposit a check</div>
        <div class="card-inner">
            <h5 class="card-title">Check Deposit tips</h5>
            <p class="card-text"><em class="icon fa-regular fa-icicles text-danger" style="font-size: 18px; font-weight: 600;"></em> Choose the account to deposit the check and the check amount.</p>
            <p class="card-text"><em class="icon  fa-regular fa-icicles  text-danger" style="font-size: 18px; font-weight: 600;"></em> Ensure the check has been properly endorsed and that it is flat, on a dark, well-lit surface. Then snap pictures of both the front and back of the check, keeping it in the correct parameters. Don’t forget to endorse and write ‘for mobile deposit only’ on the back.
            </p>
            <hr>
            <form action="process/check.php" method="post" class="buysell-form" enctype="multipart/form-data"> 
               <div class="buysell-field form-group"> 
                  <div class="form-label-group"> 
                     <label class="form-label">Select Account</label> 
                  </div>
                  <div class="dropdown buysell-cc-dropdown"> 
                    <a href="#" class="buysell-cc-choosen dropdown-indicator" data-toggle="dropdown">
                        <div class="coin-item coin-btc"> 
                            <div class="coin-icon"> 
                                <em class="icon fa-solid fa-dollar-sign"></em> 
                            </div> 
                            <div class="coin-info"> 
                                <span class="coin-name">Checking Account (USD)</span> 
                                <span class="coin-text">Available Balance: USD    <?php echo number_format($user->getBalance('balance',$_SESSION['id']))?>  </span> 
                            </div> 
                        </div> 
                    </a>
                <div class="dropdown-menu dropdown-menu-auto dropdown-menu-mxh">
                 <ul class="buysell-cc-list"> 
                    <li class="buysell-cc-item selected"> 
                       <a href="#" class="buysell-cc-opt" data-currency="btc">
                        <div class="coin-item coin-btc"> 
                           <div class="coin-icon"> 
                              <em class="icon fa-solid fa-dollar-sign"></em>
                               </div> 
                               <div class="coin-info"> 
                                  <span class="coin-name">Checking Account (USD)</span> 
                                  <span class="coin-text">Available Balance: USD <?php echo number_format($user->getBalance('balance',$_SESSION['id']))?>        	  		 		 		
                                  </span> 
                             </div>
                         </div>
                        </a>
                     </li>
                   </ul> 
                  </div><!-- .dropdown-menu -->
              </div><!-- .dropdown --> 
        </div><!-- .buysell-field --> 
        <div class="buysell-field form-group">
            <div class="result"></div> 
            <?php
                if(isset($_SESSION['t_error_c'])){
                echo "<p style='color:red'>".$_SESSION['t_error_c']."</p>";
                unset($_SESSION['t_error_c'] );
                }
            ?>
             <?php
                if(isset($_SESSION['t_error_s'])){
                echo "<p style='color:green'>".$_SESSION['t_error_s']."</p>";
                unset($_SESSION['t_error_s'] );
                }
            ?>
            <div class="form-label-group"> 
                <label class="form-label" for="buysell-amount">Check Amount</label>
            </div> 
            <div class="form-control-group"> 
                <input type="number" class="form-control form-control-lg form-control-number" id="amount" name="amount" placeholder="2000" required> 
                <div class="form-dropdown">
                    <div class="text">USD<span></span>
                    </div> 
                </div> 
            </div> 
            <div class="form-note-group"> 
                <span class="buysell-min form-note-alt"></span> 
                <span class="buysell-rate form-note-alt">You can deposit upto USD for each federal check</span> 
            </div> 
        </div>
                <!-- .buysell-field --> 
        <div class="form-group row">
        <div class="form-group col-lg-6">
                <label class="form-label" for="customFileLabel">Front of the check</label><br>
                <input type="file" name="front" class="from-control" id="fileTag" accept="image/*"  required>
        </div>
            <div class="form-group col-lg-6">
                <label class="form-label" for="customFileLabel">Back of the check</label><br>
                <input type="file" class="from-control"  name="back" accept="image/*"  required>
            </div>

            <div class="form-group col-lg-12">
                <button class='btn btn-primary'>submit</button>
            </div>
        </div>
    </div>
</div>