<?php $this->load->view('header');?>
		
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            &nbsp;
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
			  <li class="breadcrumb-item"><a href="<?php echo base_url();?>"><?php echo $this->lang->line('hf_home');?></a></li>
              <li class="breadcrumb-item"><?php echo $this->lang->line('hf_settings');?></li>
              <li class="breadcrumb-item active"><?php echo $this->lang->line('hf_profile');?></li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

	<!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="card card-default">
          <div class="card-header">
            <h3 class="card-title"><?php echo $this->lang->line('hf_profile');?></h3>

            <div class="card-tools">
              
            </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body">
			<form class="form-horizontal" id="profile-form">
				<div class="form-group row">
					<label for="bank_country" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_bank_country');?></label>
					<div class="col-sm-4">
						<select class="form-control" id="bank_country" name="bank_country" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
						    <?php
								foreach(get_country_name() as $k => $v) {
									if(isset($bank_country)) {
										if($k == $bank_country) {
											echo '<option value="' . $k . '" selected="selected">' . $this->lang->line($v) . '</option>';
										}
										else {
											echo '<option value="' . $k. '">' . $this->lang->line($v) . '</option>';
										}
									}
									else {
										if($k == 'CN') {
											echo '<option value="' . $k . '" selected="selected">' . $this->lang->line($v) . '</option>';
										}
										else {
											echo '<option value="' . $k. '">' . $this->lang->line($v) . '</option>';
										}
									}
								}
							?>
						</select>
					</div>
				</div>
				<div class="form-group row">
					<label for="account_holder_name" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_account_holder_name');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="account_holder_name" name="account_holder_name" placeholder="<?php echo $this->lang->line('registration_account_holder_name_must_fill_in_message');?>" value="<?php echo (isset($account_holder_name) ? $account_holder_name : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<div class="form-group row">
					<label for="bank_name" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_bank_name');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="bank_name" name="bank_name" placeholder="<?php echo $this->lang->line('registration_bank_name_must_fill_in_message');?>" value="<?php echo (isset($bank_name) ? $bank_name : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<div class="form-group row">
					<label for="bank_account_no" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_bank_account_no');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="bank_account_no" name="bank_account_no" placeholder="<?php echo $this->lang->line('registration_bank_account_no_must_fill_in_message');?>" value="<?php echo (isset($bank_account_no) ? $bank_account_no : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<div class="form-group row">
					<label for="bank_address" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_bank_address');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="bank_address" name="bank_address" placeholder="<?php echo $this->lang->line('registration_bank_address_must_fill_in_message');?>" value="<?php echo (isset($bank_address) ? $bank_address : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<div class="form-group row">
					<label for="wallet_address" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_usdt_wallet_address');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="wallet_address" name="wallet_address" placeholder="<?php echo $this->lang->line('registration_usdt_wallet_address_must_fill_in_message');?>" value="<?php echo (isset($wallet_address) ? $wallet_address : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<div class="form-group row">
					<label for="full_name" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_name');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="full_name" name="full_name" placeholder="<?php echo $this->lang->line('registration_full_name_must_fill_in_message');?>" value="<?php echo (isset($full_name) ? $full_name : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<div class="form-group row">
					<label for="mobile_no" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_mobile_number');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="mobile_no" name="mobile_no" placeholder="<?php echo $this->lang->line('registration_mobile_no_must_fill_in_message');?>" value="<?php echo (isset($mobile_no) ? $mobile_no : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<div class="form-group row">
					<label for="email" class="col-sm-3 col-form-label"><?php echo $this->lang->line('registration_email');?></label>
					<div class="col-sm-4">
					  <input type="text" class="form-control" id="email" name="email" placeholder="<?php echo $this->lang->line('registration_email_must_fill_in_message');?>" value="<?php echo (isset($email) ? $email : '');?>" <?php echo ((isset($is_profile_locked) && $is_profile_locked == 1) ? 'disabled="disabled"' : '');?>>
					</div>
				</div>
				<?php if(isset($is_profile_locked) && $is_profile_locked == 0) {?>
				<div class="form-group row">
					<div class="offset-sm-3 col-sm-9">
					  <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
					  <button onclick="profile_update()" type="button" class="btn btn-primary"><?php echo $this->lang->line('profile_submit_update');?></button>
					</div>
				</div>
				<?php }?>
			</form>
          </div>
          <!-- /.card-body -->
        </div>
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
		
<?php $this->load->view('footer');?>		