<div class="topCustomerProfile">
	<h4><?= !empty(lang('customer_panel'))?lang('customer_panel'):"Customer panel"; ?></h4>
</div>
<div class="customer_profile">
	<div class="container">
		<div class="row">
			<div class="col-lg-3 col-12">
				<?php include APPPATH.'views/customer/leftSidebar.php';  ?>
			</div>
			<div class="col-lg-9 col-12">
				<div class="serviceRightSide">
					<div class="profleForm">
						<h4 class="header mb-0"><?= !empty(lang('orders'))?lang('orders'):"Orders" ;?></h4>
						<div class="table-responsive">
							<table class="table customTable" id="example1">
								<thead>
									<tr>
										<th><?= lang('sl'); ?></th>
										<th><?= lang('service'); ?></th>
										<th><?= lang('payment_method'); ?></th>
										<th><?= lang('price'); ?></th>
										<th><?= lang('txn_id'); ?></th>
										<th><?= lang('date'); ?></th>
										<th><?= lang('payment_status'); ?></th>
										<th><?= lang('order_status'); ?></th>
									</tr>
								</thead>
								<tbody>
									<?php foreach ($order_list as $key => $row): ?>
										<tr>
											<td><?= $key+1;?></td>
											<td><?= $row['title'];?></td>
											<td><?= ucfirst($row['payment_by']);?></td>
											<td><?= $row['price'];?> <?= $row['currency_code'];?></td>
											<td><?= $row['txn_id'];?></td>
											<td><label class="badge badge-secondary"> <?= full_time($row['created_at']);?></label></td>
											<td>
												<?php if($row['payment_by']=="offline"): ?>
													<label class="badge badge-danger"><?= $row['payment_status'];?></label>
												<?php else: ?>
													<label class="label label-success"><?= $row['payment_status'];?></label>
												<?php endif;?>
											</td>
											<td>
												<?php if($row['status']==0): ?>
													<label class="badge badge-warning"><?= lang('pending'); ?></label>
												<?php elseif($row['status']==1): ?>
													<label class="badge badge-info"><?= lang('approved'); ?></label>
												<?php elseif($row['status']==2): ?>
													<label class="badge badge-danger"><?= lang('rejected'); ?></label>
												<?php elseif($row['status']==3): ?>
													<label class="badge badge-success"><?= lang('completed'); ?></label>
												<?php endif;?>
											</td>
										</tr>
									<?php endforeach ?>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>