<table class="table table-vertical-middle">
  <thead>
    <tr>
      <th width="50px">No</th>
      <th class="tx-center">Tanggal</th>
      <th class="tx-center">Jumlah</th>
      <th>Kanal Pembelian</th>
      <th>Pemasok</th>
      <th>Harga Beli</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <?php $__currentLoopData = $data['bahan-baku']->pembelian; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <tr>
        <td><?php echo e($data['bahan-baku']->pembelian->firstItem() + $key); ?></td>
        <td class="tx-center"><?php echo e(GlobalHelper::dateFormat($value->tanggal,'d/m/Y')); ?></td>
        <td class="tx-center"><?php echo e($value->jumlah); ?> <?php echo e($data['bahan-baku']->satuan); ?></td>
        <td><?php echo e($value->kanal_pembelian); ?></td>
        <td><?php echo e($value->nama_pemasok); ?></td>
        <td>Rp <?php echo e(number_format($value->harga_beli,0,',','.')); ?></td>
        <td style="width:1px;white-space:nowrap;">
          <a href="javascript:;" onclick="edit_pembelian_bahan_baku(<?php echo e($value->id); ?>)" class="button green ripple-effect ico">
            <i data-feather="edit" class="tx-white-8 wd-20 ht-20 "></i>
          </a>
          <a href="javascript:;" onclick="confirmDelete(<?php echo e($value->id); ?>)" class="button red ripple-effect ico">
            <i data-feather="trash" class="tx-white-8 wd-20 ht-20 "></i>
          </a>
          <form action="<?php echo e(route('proses_pembelian_bahan_baku')); ?>" method="post" id="hapus<?php echo e($value->id); ?>">
            <?php echo e(csrf_field()); ?>

            <input type="hidden" name="id" value="<?php echo e($value->id); ?>">
            <input type="hidden" name="action" value="delete">
          </form>
        </td>
      </tr>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  </tbody>
</table>
<div class="pd-x-30 pd-y-20"><?php echo e($data['bahan-baku']->pembelian->links('include.pagination', ['pagination' => $data['bahan-baku']->pembelian] )); ?></div>
<?php /**PATH /Users/dailfalahi/Sites/rantai_pasok/code/resources/views/kelola_bahan_baku/detail/pembelian.blade.php ENDPATH**/ ?>