{% include 'header.twig' %}

<div class="container">
    <div class="row">
      <div class="col-md-{% if bankPayment == 2 %}12{% else %}10 col-md-offset-1{% endif%}">
        {% 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>

      <div class="col-md-{% if bankPayment == 2 %}6{% else %}10 col-md-offset-1{% endif%}">
        {% if paymentsList %}
          <div class="well">
           <center> <h1>
              {{ lang['addfunds.online.title'] }}              
            </h1></center><br>
            <div class="panel-body">
              <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 %}
      </div>

      {% if bankPayment == 2 %}
        <div class="col-md-6">
          {% if paymentsList %}
            <div class="well">
             <h1><center>
                {{ lang['addfunds.bank.title'] }}
    			 </h1></center><br>
              <div class="panel-body">
                <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>
  <div class="container">
  <div class="row">
    <div class="col-md-12">

      
  

      
        <div class="well">
          <form method="post" action="kupon">
            <div class="form-group">
              <label for="subject" class="control-label">Coupon Code</label>
              <input type="text" class="form-control" id="kuponadi" name="kuponadi">
            </div>
            <button type="submit" class="btn btn-primary">Use</button>
          </form>
        </div>
      
      </div>
  </div>
</div>


  {% if bankPayment == 2 %}
    <div class="container">
        <div class="row">
          <div class="col-md-{% if bankPayment == 2 %}12{% else %}10 col-md-offset-1{% endif%} ">

            <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> Remittance / EFT fees deducted while making the payment will not be covered by us</b>.
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>

            </div>


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

<div class="container">
  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <div class="well ">
        {{ contentText }}
      </div>
    </div>
  </div>
</div>

{% include 'footer.twig' %}
