<div class="keranjang" id="tambah-kas-keluar">
		<div class="row">
			<div class="col-sm-2">
				<div class="form-group">
					<label for="formGroupExampleInput">No. Transaksi</label>
					<input type="text" class="form-control form-control-sm flat" name="no_trans" id="no_trans" value="<?=$row->no_transaksi;?>" readonly>
				</div>
			</div>
			<div class="col-sm-2">
				<div class="form-group">
					<label for="dari_kas">Keluar dari akun</label>
					<input type="text" class="form-control form-control-sm flat" value="<?=getKodeAkun($row->id_akun); ?> - <?=getAkun($row->id_akun); ?>" disabled>
					 
				</div>
			</div>
			<div class="col-sm-2">
				<div class="form-group">
					<label for="jumlah_kas">Jumlah Kas Keluar</label>
					<input type="text" class="form-control form-control-sm flat" name="jumlah_kas"  id="jumlah_kas" value="<?=rprp($row->jumlah);?>" disabled>
				</div>
			</div>
		 
			<div class="col-sm-2">			 
				<label for="tanggal_kas">Tanggal</label>
				<div class="input-group input-group-sm flat">
					<div class="input-group-prepend">
						<button class="btn btn-outline-secondary" type="button" disabled><i class="fa fa-calendar"></i></button>
					</div>
					<input type="text" class="form-control flat" value="<?=dtime($row->tanggal);?>" disabled>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label for="keterangan_kas">Keterangan</label>
					<input type="text" class="form-control form-control-sm flat" name="keterangan_kas" id="keterangan_kas" value="<?=$row->keterangan;?>" disabled>
				</div>
			</div>
            <!-- [ADD] Tombol lihat lampiran bukti nota kas keluar -->
            <?php if (!empty($row->bukti_nota)) : ?>
            <div class="col-sm-2">
                <div class="form-group">
                    <label>Lampiran</label><br>
                    <a class="btn btn-sm btn-primary flat" target="_blank"
                       href="<?= base_url('uploads/bukti_kas_keluar/' . $row->bukti_nota); ?>">
                        <i class="fa fa-paperclip"></i> Lihat
                    </a>
                </div>
            </div>
            <?php endif; ?>
            <!-- [END ADD] Tombol lihat lampiran -->

			
		</div>
		<div class='row'>
			<div class="col-md-12">
				<table class="table table-striped table-sm" id="table-kas">
					<thead>
						<tr>
							<td class="w-20 pl-2">Kode Akun</td>
							<td>Keterangan Rincian</td>
							<td class="w-20 text-right">Jumlah</td>
						</tr>
					</thead>
					<tbody id="insert-form-kas">
						<tr id='rowCount' class="rowCount" >
							<?php foreach ($data as $val) : ?>	
							<td>
								<select type="text" class="form-control form-control-sm" id="idAkun" name="idAkun[]" title="Nomor Akun" data-container="body" data-live-search="true" required disabled="">
									<?php foreach ($akun as $ak) : ?>
									<?php $selected = in_array($val['id_akun'], $ak) ? " selected " : null;?>
									<option value="<?= $ak['id_akun']; ?>" <?=$selected?>><?= $ak['kel_akun']; ?>-<?= $ak['noakun']; ?> <?= $ak['nama']; ?></option>
									<?php endforeach; ?>
								</select>
							</td>
							<td>
								<div class="form-group p-0 m-0">
									<input type="text" class="form-control input-sm flat" value="<?=$val['keterangan'];?>" disabled />
								</div>
							</td>
							
							<td>
								<div class="form-group p-0 m-0">
									<input type="text" class="form-control input-sm flat text-right" value="<?=rprp($val['jumlah']);?>" disabled />
								</div>
							</td>
							
						</tr>
						<?php endforeach; ?>
					</tbody>
				</table>
			</div>
		</div>
</div>
