<div class="container-fluid">
	<div class="row">
		<div class="col-md-2"></div>
		<div class="col-md-8">
			<div class="btn btn-sm btn-success">
				<?php 
				$grand_total = 0;
				if ($keranjang = $this->cart->contents())
				{
					foreach ($keranjang as $items)
					 {
					 	$grand_total = $grand_total + $items['subtotal'] + $items['keuntungan'] * $items['qty'];
					 }
					 echo "<h4>Total Belanja Anda: Rp. ".number_format($grand_total, 0,',','.');
					
				 ?>
			</div><br><br>

			<h3>Input Alamat Pengiriman dan Pembayaran</h3>

			<form method="post" action=" <?php echo base_url() ?>dashboard/proses_pesanan/">
				
				<div class="form-group">
					<label>Nama Lengkap</label>
					<input type="text" name="nama" placeholder="Nama Lengkap Anda" class="form-control">
				</div>

				<div class="form-group">
					<label>Alamat Lengkap</label>
					<input type="text" name="alamat" placeholder="Alamat Lengkap Anda" class="form-control">
				</div>

				<div class="form-group">
					<label>No. Telepon</label>
					<input type="text" name="nomor" placeholder="No Telepon Anda" class="form-control">
				</div>

				<input type="hidden" name="pengiriman" value="PICKUP"/>

				<div class="form-group">
					<label>PILIH BANK</label>
					<select name="rekening" class="form-control">
						<option disabled selected>-Pilih Bank-</option>
						<option value="bri">BRI - 652701009422536</option>
						<option value="bni">BNI - 1139690512</option>
					
				</select>
				</div>	
				
				<button type="submit" class="btn btn-sm btn-primary mb-3">Pesan</button>

			</form>

			<?php 
		}else
		{
			echo "<h4>Keranjang Anda Masih Kosong";
		}
			 ?>
		</div>

		<div class="col-md-2"></div>
	</div>
</div>