{% include 'header.twig' %}
<div id="page-wrapper">
  
<div class="container" style="
    margin-top: 3em;
">
{% if error %}
          <div class="alert alert-dismissible alert-danger">
            <button type="button" class="close" data-dismiss="alert">×</button>
            {{ errorText }}
          </div>
        {% endif %}
        {% if success %}
          <div class="alert alert-dismissible alert-success">
            <button type="button" class="close" data-dismiss="alert">×</button>
            {{ successText }}
          </div>
        {% endif %}
      </div>
 
        
        {% if paymentsList %}
		
       
    <!-- tabs -->
 <div class="row clearfix">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" >
                    <div class="card shadbox"> 
                        <div class="header" style="
    display: none;
">
                            <h2>
                                Funds
                            </h2>
                             <ul class="header-dropdown m-r--5">
                                
                            </ul>
                        </div>
                        <div class="body">
                            <!-- Nav tabs -->
                            <ul class="nav nav-tabs" role="tablist">
                                <li role="presentation" class="active">
                                    <a href="#home_with_icon_title" data-toggle="tab">
                                        <i class="material-icons">credit_card</i> Add Funds
                                    </a>
                                </li>
                               
                               
                               
                            </ul>
       
            <div class="tab-content">
                                <div role="tabpanel" class="tab-pane fade in active" id="home_with_icon_title">
                                    <b></b>
  
              <form method="post" action="addfunds">

                <div class="form-group">
                  <label for="method" class="control-label">{{ lang['addfunds.method'] }}</label>
                  <select class="form-control" id="payment_method" name="payment_type">
                   {% for payment in paymentsList %}
                      <option value="{{ payment['id'] }}" {% if data['payment_type'] == payment['id'] %} selected {% endif %} >{{ payment['method_name'] }}</option>
                    {% endfor %}
                  </select>
                </div>

                  <div class="form-group">
                      <label for="method" class="control-label">{{ lang['addfunds.amount'] }}</label>
                      <input class="form-control" name="payment_amount" value="{{ data['payment_amount'] }}">
                  </div>

                <button type="submit" class="btn btn-primary">{{ lang['addfunds.button'] }}</button>
              </form>
            </div>
          </div>
        {% endif %}
        
        {% if PaytmQR == 2 %}
        <div class="col-md-12">
          <div class="well" style="
    -webkit-box-shadow: 0px 4px 7px -2px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.75);
    /* box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.75); */" >
            <div class="">
             <h1><center>
                PaytmQR
    			 </h1></center>
              <div class="panel-body">
                <form method="post" action="addfunds">
                    <center><img width="50%" src="{{ PaytmQRimage }}"></center>
                     <div class="form-group">
                    <select class="form-control" name="payment_bank" hidden>
                     {% for bank in bankList %}
                        <option value="{{ bank['id'] }}" {% if data['payment_bank'] == payment['id'] %} selected {% endif %} >Paytm Automatic</option>
                      {% endfor %}
                    </select>
                 </div>
                  
 <div class="form-group">
                        <label for="method" class="control-label">Amount</label>
                        <input class="form-control" name="payment_bank_amount" value="{{ data['payment_gonderen'] }}">
                    </div>
                    <div class="form-group">
                        <label for="method" class="control-label">Order ID</label>
                        <input class="form-control" name="payment_gonderen" value="{{ data['payment_bank_amount'] }}">
                    </div>
                   

                      <button type="submit" class="btn btn-block btn-big-primary">Add Funds</button>
                    </div>
                </form>
              </div>
            </div>  
          </div>
        </div>
      {% endif %}
        
      </div>

      {% if bankPayment == 2 %}
    
    <div class="col-md-8 col-md-offset-2">

          {% if paymentsList %}
         
    					
    					
    					  <div class="well">
       <div class="row">
            <p style="text-align: center;">
                <span style="font-weight: 700; font-size: 36px;"> {{ lang['addfunds.bank.title'] }} </span>
              </p>
              <br>
                <form method="post" action="addfunds">

                  <div class="form-group col-md-12">
                    <label for="method" class="control-label">{{ lang['addfunds.bank'] }}</label>
                    <select class="form-control" name="payment_bank">
                     {% for bank in bankList %}
                        <option value="{{ bank['id'] }}" {% if data['payment_bank'] == payment['id'] %} selected {% endif %} >{{ bank['bank_name'] }}</option>
                      {% endfor %}
                    </select>
                  </div>

                    <div class="form-group col-md-6">
                        <label for="method" class="control-label">{{ lang['addfunds.bank.amount'] }}</label>
                        <input class="form-control" name="payment_bank_amount" value="{{ data['payment_bank_amount'] }}">
                    </div>
                    <div class="form-group col-md-6">
                        <label for="method" class="control-label">{{ lang['addfunds.bank.sender'] }}</label>
                        <input class="form-control" name="payment_gonderen" value="{{ data['payment_gonderen'] }}">
                    </div>
                    <div class="col-md-12">
                      <button type="submit" class="btn btn-primary">{{ lang['addfunds.bank.button'] }}</button>
                    </div>
                </form>
              </div>
            </div>
          {% endif %}
        </div>
      {% endif %}
    </div>
  </div>
    

  {% if bankPayment == 2 %}
    <div class="container">
        <div class="row">
         
    <div class="col-md-8 col-md-offset-2">


            <div class="well">

              <p style="text-align: center;">
                <span style="font-weight: 700; font-size: 36px;">Bank</span><span style="font-size: 36px;"> Account</span>
              </p>

              <div class="table-responsive">
                <table class="table table-striped table-bordered table-checkable ">
                  <thead>
                    <tr>
                      <th> Bank Name </th>
                      <th> Branch Code </th>
                      <th> Account No </th>
                      <Th> IBAN </th>
                      <th> Recipient Name </th>

                    </tr>
                  </thead>
                  <tbody>
                  {% for bank in bankList %}
                    <tr>
                      <td>{{ bank['bank_name'] }}</td>
                      <td>{{ bank['bank_sube'] }}</td>
                      <td>{{ bank['bank_hesap'] }}</td>
                      <td><b>{{ bank['bank_iban'] }}</b><br></td>
                      <td>{{ bank["bank_alici"] }}</td>
                    </tr>
                  {% endfor %}
                    </tbody>
                  </table>
                </div>

              <div class="table-responsive">
                <table class="table table-striped table-bordered table-checkable ">
                  <tbody>
                    <tr>
                      <td>
                        <b>INFORMATION: </b> Money Transfer / EFT fees deducted while making payment will not be <b> covered by us </b>.
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>

            </div>


        </div>
      </div>
    </div>
  {% endif %}

    <div class="col-md-12">
      <div class="well" style="
    -webkit-box-shadow: 0px 4px 7px -2px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.75);
    /* box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.75); */" >
        {{ contentText }}
      </div>
    </div>
  </div>  
</div>


{% include 'footer.twig' %}
