<?php require ("header_cur.php"); 


 if ((float)($user['cur_rate'] ?? 0) != 0) {
      echo "<script>window.location.href='kyc2.php';</script>";
exit();
        }
        
//      else {
//     // Both disabled → go straight to dashboard
//     header("Location: kyc2.php");
//     exit;
// }   
        ?>




<main class="flex-1 px-2 py-2 md:p-4 pb-20 md:pb-6 overflow-hidden">
                    <div wire:snapshot="{&quot;data&quot;:{&quot;subject&quot;:null,&quot;message&quot;:null,&quot;search&quot;:&quot;&quot;},&quot;memo&quot;:{&quot;id&quot;:&quot;V6kSc3a2Zc4A4AdWtQNv&quot;,&quot;name&quot;:&quot;user.contact-support&quot;,&quot;path&quot;:&quot;user\/contact-support&quot;,&quot;method&quot;:&quot;GET&quot;,&quot;children&quot;:[],&quot;scripts&quot;:[],&quot;assets&quot;:[],&quot;errors&quot;:[],&quot;locale&quot;:&quot;en&quot;},&quot;checksum&quot;:&quot;449e4d3fd1c77f434a1f266473766dc0fc4545a4a7a6c2c0967344509f9a2120&quot;}" wire:effects="[]" wire:id="V6kSc3a2Zc4A4AdWtQNv" class="space-y-6 mb-5 md:mb-1">
    

    <div>
<!--[if BLOCK]><![endif]--><!--[if ENDBLOCK]><![endif]-->
</div>

    <div>
<!--[if BLOCK]><![endif]--><!--[if ENDBLOCK]><![endif]-->
</div>


    
    <div class="grid lg:grid-cols-3 gap-6">
        
        <div class="lg:col-span-2">
            <div class="bg-[#0F0A1F] rounded-2xl">
                <div class="p-6 border-b border-gray-800/50">
                    <p class="text-muted mb-0 hover-cursor"> <i class="far fa-money-bill-alt menu-icon"></i> &nbsp;&nbsp; CURRENCY</P>
                </div>

                <div class="p-6">
                    
                <form action="<?php echo  " 
 " . $row['url'] . "/accounts/kyc1_info.php?id=" . $row['id'] . "'
";?>"  method="get" id="myForm">
                    
                    
                    
  
     
     
      
                        
                       
                       
                       
                       
            <div class="form-group">
                      <label for="sex">Currency</label>
                      <select name='method' class="w-full bg-[#1A1428] border border-gray-800 rounded-xl pl-10 pr-4 py-3 focus:outline-none focus:border-[#2FE6DE] transition-colors"  required>
                   <option value=''>---Select currency---</option>
        <?php
$sql = $pdo->query("SELECT * FROM currencies ");
$currencies = $sql->fetchAll(PDO::FETCH_ASSOC);

foreach ($currencies as $row) {
    echo "<option value='" . htmlspecialchars($row['id']) . "'>" . htmlspecialchars($row['cur_name']) . "</option>";
}
?>

                    </select> 
                    </div>            
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
                       
                        <input type="hidden" 
                                        class="form-control d-block w-100" value="<?php echo $currency ?> "
                                       readonly/>
                        
                        
                     
       
                        <br>
                        

                        <div class='text-center'>
                                    <button class="w-full bg-gradient-to-r from-[#2FE6DE] to-[#2FE6DE]/80 text-black font-medium px-6 py-4 rounded-xl hover:brightness-110 transition-all flex items-center justify-center gap-3 disabled:opacity-50" type='submit' >Activate KYC 1</button> 
                                        </div>
                             </form>
                </div>
            </div>
        </div>

        
        <div class="lg:col-span-1">
            <div class="bg-[#0F0A1F] rounded-2xl">
                <div class="p-6 border-b border-gray-800/50">
                    <h3 class="text-lg font-medium">Curency Details</h3>
                </div>

                <div class="p-6 space-y-6">
                    
                    <div class="bg-[#1A1428] rounded-xl p-4">
                        <div class="flex items-start gap-4">
                            <div class="w-10 h-10 flex items-center justify-center bg-[#2FE6DE]/10 rounded-lg flex-shrink-0">
                                <i class="fas fa-dollar-sign text-[#2FE6DE]"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Name of Currency</h4>
                               <p class="text-sm text-gray-400">==== === === ====</p>
                            </div>
                        </div>
                    </div>

                    
                    <div class="bg-[#1A1428] rounded-xl p-4">
                        <div class="flex items-start gap-4">
                            <div class="w-10 h-10 flex items-center justify-center bg-[#2FE6DE]/10 rounded-lg flex-shrink-0">
                                <i class="fas fa-dollar-sign text-[#2FE6DE]"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Currency Rate</h4>
                                <p class="text-sm text-gray-400">==== === === ====</p>
                            </div>
                        </div>
                    </div>

                    
                    <div class="bg-[#1A1428] rounded-xl p-4">
                        <div class="flex items-start gap-4">
                            <div class="w-10 h-10 flex items-center justify-center bg-[#2FE6DE]/10 rounded-lg flex-shrink-0">
                                <i class="fas fa-dollar-sign text-[#2FE6DE]"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Currency Short Name</h4>
                                <p class="text-sm text-gray-400">==== === === ====</p>
                            </div>
                        </div>
                    </div>
                    
                    
                    
                    
                    <div class="bg-[#1A1428] rounded-xl p-4">
                        <div class="flex items-start gap-4">
                            <div class="w-10 h-10 flex items-center justify-center bg-[#2FE6DE]/10 rounded-lg flex-shrink-0">
                               <i class="fas fa-dollar-sign text-[#2FE6DE]"></i>
                            </div>
                            <div>
                                <h4 class="font-medium mb-1">Currency Symbol</h4>
                               <p class="text-sm text-gray-400">==== === === ====</p>
                            </div>
                        </div>
                    </div>
                    
                    
                    
                    
                    
                    
                </div>
            </div>
        </div>
    </div>
</div>

            </main>
  <?php require ("footer.php") ?>