<?php $this->load->view('header');?>
		
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1><?php echo $this->lang->line('hf_withdrawal');?></h1>
          </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 active"><?php echo $this->lang->line('hf_withdrawal');?></li>
            </ol>
          </div>
        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-12">
            <div class="card">
              <div class="card-header p-2">
                <ul class="nav nav-pills">
                  <li class="nav-item"><a class="nav-link active" href="#tab1" data-toggle="tab"><?php echo $this->lang->line('withdraw_withdraw_request');?></a></li>
                  <li class="nav-item"><a class="nav-link" href="#tab2" data-toggle="tab"><?php echo $this->lang->line('withdraw_withdraw_history');?></a></li>
                </ul>
              </div><!-- /.card-header -->
              <div class="card-body">
                <div class="tab-content">
                  <div class="active tab-pane" id="tab1">
                    <form class="form-horizontal" id="withdrawal-form">
					  <div class="row">
						<div class="col-12 col-sm-2">
						  <div class="info-box bg-light">
							<div class="info-box-content">
							  <span class="info-box-text text-center text-muted"><?php echo $this->lang->line('wallet_2');?></span>
							  <span class="info-box-number text-center text-muted mb-0"><?php echo (isset($v_unit2) ? $v_unit2 : '');?></span>
							</div>
						  </div>
						</div>
					  </div>
					  <p><?php echo $this->lang->line('withdraw_warm_tips');?></p>
					  <p><?php echo str_replace('_VALUE_', (isset($setting['min_withdraw']) ? $setting['min_withdraw'] : 0), $this->lang->line('withdraw_notice_1'));?></p>
					  <p><?php echo str_replace('_VALUE_', (isset($setting['max_withdraw_per_day']) ? $setting['max_withdraw_per_day'] : 0), $this->lang->line('withdraw_notice_2'));?></p>
                      <p><?php echo $this->lang->line('withdraw_notice_3');?></p>
					  <p><?php echo str_replace('_VALUE_', (isset($setting['withdrawal_rate']) ? $setting['withdrawal_rate'] : 0), $this->lang->line('withdraw_notice_4'));?></p>
					  <div class="form-group row">
                        <label for="transaction_amount" class="col-sm-2 col-form-label"><?php echo $this->lang->line('withdraw_withdraw_amount');?></label>
						<div class="col-sm-10">
							<input type="text" class="form-control" id="transaction_amount" name="transaction_amount" placeholder="<?php echo $this->lang->line('withdraw_amount_must_fill_in_message');?>">
						</div>	
                      </div>
                      <div class="form-group row">
                        <label for="security_password" class="col-sm-2 col-form-label"><?php echo $this->lang->line('withdraw_security_password');?></label>
                        <div class="col-sm-10">
                          <input type="password" class="form-control" id="security_password" name="security_password" placeholder="<?php echo $this->lang->line('withdraw_security_password_must_fill_in_message');?>">
                        </div>
                      </div>
                      <div class="form-group row">
                        <div class="offset-sm-2 col-sm-10">
						  <input type="hidden" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
                          <button onclick="withdrawal_submit()" type="button" class="btn btn-danger"><?php echo $this->lang->line('withdraw_submit');?></button>
                        </div>
                      </div>
                    </form>
                  </div>
                  <!-- /.tab-pane -->
				  
                  <div class="tab-pane" id="tab2">
                    <table id="table-listing" class="table table-bordered table-striped">
					  <thead>
					  <tr>
						<th><?php echo $this->lang->line('withdraw_request_date');?></th>
						<th><?php echo $this->lang->line('withdraw_type');?></th>
						<th><?php echo $this->lang->line('withdraw_withdrawal_rate');?></th>
						<th><?php echo $this->lang->line('withdraw_status');?></th>
					  </tr>
					  </thead>
					</table>  
                  </div>
                  <!-- /.tab-pane -->
                </div>
                <!-- /.tab-content -->
              </div><!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
		
<?php $this->load->view('footer');?>		