<?php
function sm_view_single_account(){
    if(isset($_GET['id'])){
        $idd = $_GET['id'];
        $html = "";
        global $wpdb;
        $wpdb_prefix = $wpdb->prefix;
        $account= $wpdb_prefix.'sm_accounts_management';
        $account_record = "SELECT * FROM $account WHERE id=$idd";
		$account_result = $wpdb->get_results($account_record);
		$sno=1;
            foreach($account_result as $row){
				$id = $row->id;	
        ?>
<style>
	.text-muted{
		color:#CE33CA !important;
		font-weight: bold;
    	font-size: 2rem;
		font-family:montserrat;
	}
	.form-control:focus{box-shadow:none !important;}
	label{font-weight:bold;font-family:montserrat;}
	.shadow{
		border:1px solid #e9ecef !important;
	}
	input,textarea{font-family:montserrat;font-weight:500 !important;}
</style>
<div class="main-content">
    <div class="container mt-7">
      <!-- Table -->
      <div class="row">
        <div class="col-xl-10 m-auto order-xl-1">
          <div class="card bg-light border-0 shadow">
            <div class="card-body">
              <form class="p-4">
                <h6 class="heading-small text-muted mb-4">Account Holder information</h6>
                <div class="pl-lg-4">
                  <div class="row">
                    <div class="col-lg-6">
                      <div class="form-group focused">
                        <label class="form-control-label" for="input-username">Account Holder</label>
                        <input type="text" id="input-username" class="form-control form-control-alternative border-0" value="<?php echo $row->AccountHolder; ?>" readonly>
                      </div>
                    </div>
                    <div class="col-lg-6">
                      <div class="form-group">
                        <label class="form-control-label" for="input-email">Status</label>
                        <input type="text" id="input-email" value="<?php echo $row->Status; ?>" class="form-control form-control-alternative border-0" readonly>
                      </div>
                    </div>
                  </div>
                </div>
                <hr class="my-4">
                <!-- Address -->
                <h6 class="heading-small text-muted mb-4">Bank Details</h6>
                <div class="pl-lg-4">
                  <div class="row">
                    <div class="col-md-12">
                      <div class="form-group focused">
                        <label class="form-control-label" for="input-address">Bank Name</label>
                        <input id="input-address" class="form-control form-control-alternative border-0" value="<?php  echo $row->BankName; ?>" type="text" readonly>
                      </div>
                    </div>
                  </div>
                  <div class="row">
                    <div class="col-lg-4">
                      <div class="form-group focused">
                        <label class="form-control-label" for="input-city">IBAN</label>
                        <input type="text" id="input-city" class="form-control form-control-alternative border-0" value="<?php echo $row->IBAN; ?>" readonly>
                      </div>
                    </div>
                    <div class="col-lg-4">
                      <div class="form-group focused">
                        <label class="form-control-label" for="input-country">BIC</label>
                        <input type="text" id="input-country" class="form-control form-control-alternative border-0 " value="<?php echo $row->BIC; ?>" readonly>
                      </div>
                    </div>
                    <div class="col-lg-4">
                      <div class="form-group">
                        <label class="form-control-label" for="input-country">Bank Code</label>
                        <input type="number" id="input-postal-code" class="form-control form-control-alternative border-0" value="<?php echo $row->BankCode; ?>" readonly>
                      </div>
                    </div>
                  </div>
                </div>
                <hr class="my-4">
                <!-- Description -->
                <h6 class="heading-small text-muted mb-4">Bank Address</h6>
                <div class="pl-lg-4">
                  <div class="form-group focused">
                    <textarea rows="4" class="form-control form-control-alternative border-0" readonly><?php  echo $row->BankAddress; ?></textarea>
                  </div>
                </div>
              </form>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

        <?php
				$sno=$sno+1;}
    }
}
?>