
<div class="container">
	<form name="truemoneyform" id="truemoneyform" action="<?php echo base_url("Truemoney/submit") ?>">
		<div style="border: 1px solid #ebebeb;border-radius: 6px;box-shadow: 0 2px 6px 0 rgba(0,0,0,.07); padding: 30px 40px; background-color: #ffff; margin-top: 100px;margin-left: auto; 
    margin-right: auto; border-bottom: 3px solid rgba(3,108,228,1);
     ">
			<div class="d-none d-lg-block">
				<h3 class=""><img style="width:54px;"
						src="data:image/webp;base64,UklGRooGAABXRUJQVlA4TH4GAAAvNUANELWKQCBpf+0hIiKho2DZtpu2mv9ovRLfMre2VPxXSSnoQZnrCKcBACjKS8KdZBt4us4gJJJD0wmIusDvgDuMwAjv7v6M3LZxZO30puO+QbJta4ucIPEE6BFuT8DIZjBj8QosRjpyhxju7s7IfeTu7u7u+pXgTlf9XyU8QcXltrD+Jl0/2pJt2zb2aMdm27Zt27Zt23Yvadnu5QVsW/V99R5VuffIsbXt2Kvred/fmEps2wNwUttGZdXJ36VzMgGblZ2UNs6J4SC27TgxgAQU7MrqBnl4CNm6/JAeRm7bRpKaSYs1M6d5g8wgZbhcLo/L5/J/DJxuv1uylCJYgkNgZqXATsE5oyQ4i9NyjQhRkMXDLJYaCkbpjWxUkMCPN4MFDRKEBezr4riQxDvtNChAsTeGK2SI0ODACx0+v7J7XI1hD3QQAJhMbwcVrjGsNzumUwAMAsx8YIORqRr8BRTvBw6mpmoWKl0OXvqNXMzMPCYirZwnNMa8dfQe4aA01+OdEgFRzYu0Kt4hNLzuFR2B3YFQKKotkVaTKochyzBW1U4Qpozlq/bi5IHevaopNFDyJlXKZpFbkUg/zWYaoLmfSylp0hSjKSlhECmdi0AkqEKnXM69NAb+LXiAqEyCSYRJ9FLRXDUDdAMEjyYpxueI/vUq969XZ/96RXBaqsgVJT95Hsui4Yk5Ev44e8IfJ9F4wS692uAlh2ONJuHVr/KSKcHgS6b9CAZNrgVNrvsrJqFLgOMVQ/cmY40XHJOhuPGR2RNZERPUAXscNTw2prjP6BIX0dElrrkseL6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+0EHkt+uKg5bpv5uo3WGxg3Wu84pH1G4xA/HxMQOAg0x6YBvABQ8g85AATWKHJpNAoern2v2Je7dBBVuQkClX2Vclvcj+BGYOfKKCKQ/ua095fAj8DGVlcG4n4EFwJfAIB4TziSk14k7PLV/Jej/d8IAh+HyghEaQmBv1OvsKS0ArxuLeK6BN6Ot1aoUgKdwBBu+huIlSqn3r54DOJgt9rzfJKTDnK5yEHSPzgb+m37FXMh996PlTzPtevS7ngaXy9SEXBFXdhNHT6u8rco7LJmhWySHTI2kzNlRIo8BHVwdR1tw+18uzAy4Zgr6AI="
						data-pagespeed-url-hash="1314098011"
						onload="pagespeed.CriticalImages.checkImageForCriticality(this);">
					True Money</h3>
				<hr>
			</div>
			<div class="Login">
				<div class="row">
					<div class="col-12">
						<div class="form-group">
							<span style="color: #000;">Code</span>
							<input type="text" class="form-control mt-2" name="pin" id="pin"
								placeholder="เลขรหัสบัตร 14 หลัก" maxlength="14"
								style="background: #fcfcfc; color: #000 ; margin-bottom: 20px">
							<input name="ref1" type="hidden" id="ref1" value="1" />
							<input name="ref2" type="hidden" id="ref2" value="1" />
						</div>
					</div>
					<div class="col-12">
						<p style="color: #f5365c;">*** 1 Code รหัสทรูมันนี่สามารถใช้ได้ 1 ครั้ง ****</p>
					</div>
				</div>
				<div class="Footer">
					<div class="row">
						<div class="col-12">
							<button type="submit" class="btn btn"
								style="margin-bottom: 20px; background-color: #00a81f; color:  #fff;width:100%; min-width: 200px;">ยืนยัน</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<div class="container">
	<div style="border: 1px solid #ebebeb;border-radius: 6px;box-shadow: 0 2px 6px 0 rgba(0,0,0,.07); padding: 30px 40px; background-color: #ffff; margin-top: 50px;margin-left: auto; 
    margin-right: auto; border-bottom: 3px solid rgba(3,108,228,1);
     ">
		<div class="text-center" style="margin-bottom: 20px;">
			<h2 style="color: #000;">อัตราการเติมเงิน</h2>
		</div>
		<div class="table-responsive">
			<table class="table">
				<thead>
					<tr>
						<th scope="col" style="text-align:center">จำนวนเงิน</th>
						<th scope="col" style="text-align:center">บาทที่ได้รับ</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td style="text-align:center">50 บาท</td>
						<td style="text-align:center">40 บาท</td>
					</tr>
					<tr>
						<td style="text-align:center">90 บาท</td>
						<td style="text-align:center">72 บาท</td>
					</tr>
					<tr>
						<td style="text-align:center">150 บาท</td>
						<td style="text-align:center">120 บาท</td>
					</tr>
					<tr>
						<td style="text-align:center">300 บาท</td>
						<td style="text-align:center">240 บาท</td>
					</tr>
					<tr>
						<td style="text-align:center">500 บาท</td>
						<td style="text-align:center">400 บาท</td>
					</tr>
					<tr>
						<td style="text-align:center">1000 บาท</td>
						<td style="text-align:center">800 บาท</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
<div class="container">
	<div style="border: 1px solid #ebebeb;border-radius: 6px;box-shadow: 0 2px 6px 0 rgba(0,0,0,.07); padding: 30px 40px; background-color: #ffff; margin-top: 50px;margin-left: auto; 
    margin-right: auto; border-bottom: 3px solid rgba(3,108,228,1);
	 ">
		<h4><i class="fa fa-list"></i> ประวัติการเติมเงิน</h4>
		<div class="table-responsive mt-5">
			<table id="datatable_user_random" class="table table-striped table-bordered" style="width:100%">
				<thead>
					<tr>
						<th><span>ลำดับ</span></th>
						<th><span>จำนวน</span></th>
						<th><span>ช่องทาง</span></th>
						<th><span>วันที่</span></th>
					</tr>
				</thead>
				<?php 
					$this->db->where('id_users', $this->session->userdata('id_users'));
					$this->db->order_by('id', 'desc');
					$query = $this->db->get('truemoney');
					 ?>
				<tbody>
					<?php 
						$i=1;
						foreach($query->result_array() as $data)
						{ ?>
					<tr>
						<td><?php echo $i; ?></td>
						<td><?php if($data['amount'] != null)
						{
							echo $data['amount'];
						}else{
							echo '-';
						} ?></td>
						<td><?php echo $data['pin'] ?></td>
						<td><?php echo $data['status'] ?></td>
					</tr>
					<?php 
						$i++;
						} ?>
				</tbody>
			</table>
		</div>

	</div>
</div>
