<div class="table-responsive">
  <form method="post" action="<?= DBMS_SITE_HOST ?>/dbms/client/point/insert">
    <table class="table table-bordered table-hover table-striped">
      <thead></thead>
      <tbody>
        <tr>
          <td>고객명</td>
          <td>
            <select name="client_code" id="client_code">
              @foreach ($clients as $client)
              <option value="{{$client->getClientCode()}}" {{$client_code == $client->getClientCode() ? "selected" : ""}}>{{$client->getTitle()}}</option>
              @endforeach
            </select>
          </td>
        </tr>
        <tr>
          <td>형식</td>
          <td>
            <input type="radio" name="type" id="type" value="deposit" checked><?= DBMS_CLIENT_POINT_TYPE['deposit'] ?>
            <input type="radio" name="type" id="type" value="withdrawal"><?= DBMS_CLIENT_POINT_TYPE['withdrawal'] ?>
          </td>
        </tr>
        <tr>
          <td>금액</td>
          <td colspan=" 5">
            <input type="text" name="amount" id="amount" value="0" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');"> 원
            <br> (포인트는 1원 이상이어야 합니다.)
          </td>
        </tr>
        <tr>
          <td>비고</td>
          <td><textarea cols="100" rows="4" type="text" name="note" id="note"></textarea></td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
          <td colspan="6">
            <input class="btn btn-outline btn-primary" type="submit" value="저장하기">
            <input class="btn btn-outline btn-default" type="button" value="취소" onclick="history.back()">
          </td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>