<style>
  .table-responsive {
    margin: 0 auto;
    width: 100%;
  }

  .table-bordered {
    border: 1px solid #ddd;
  }

  .table-bordered th,
  .table-bordered td {
    border: 1px solid #ddd;
    text-align: center;
  }

  .table-bordered th {
    background-color: #f2f2f2;
  }
</style>
<div class="table-responsive" id="table">
  <input type="hidden" id="token">
  <table class="table table-bordered table-hover table-striped">
    <thead>
      <tr>
        <th>No</th>
        <th>고객명</th>
        <th>구분</th>
        <th>사용내역</th>
        <th>금액</th>
        <th>청구금액</th>
        <th>요청일</th>
        <th>미지급금</th>
        <th>지급일</th>
        <th>상태</th>
        <th>관리자명</th>
        <th>작업일</th>
        <th>비고</th>
      </tr>
    </thead>
    <tbody>
      @php $i=0 @endphp
      @foreach($entities as $key=>$entity)
      <tr>
        <td>{{$total-(($curPage-1)*$perPage+$i)}}</td>
        <td>{{$clients[$entity->getClientCode()]->getTitle()}}</td>
        <td>{{$entity->getType()}}</td>
        <td>{{$entity->getTitle()}}</td>
        <td>{{number_format($entity->getAmount())}}</td>
        <td>{{$entity->getPayment()}}</td>
        <td>{{$entity->getRequestDate()}}</td>
        <td>{{$entity->getNonPayment()}}</td>
        <td>{{$entity->getPaymentDate()}}</td>
        <td>{{$entity->getStatus()}}</td>
        <td>{{$entity->getMemberCode()}}</td>
        <td>{{$entity->getInsertDate()}}</td>
        <td style="text-align:left">{{nl2br($entity->getNote())}}</td>
      </tr>
      @php $i++ @endphp
      @endforeach
    </tbody>
  </table>
</div>
<div style="text-align:center">{!!$pagination->render(DBMS_SITE_URL . "/IdcOnetimeList.sev", ['service_code' => $service ? $service->getServiceCode() : "", 'member_code' => $member ? $member->getPK() : "", 'curPage' => $curPage, 'perPage' => $perPage])!!}</div>