<?php require_once 'includes/bootstrap.php'; require_user(); include 'includes/header.php'; $uid=(int)$_SESSION['user_id']; $orders=mysqli_query($conn,"SELECT * FROM orders WHERE user_id=$uid ORDER BY id DESC"); ?><main class="container section"><h2><?php echo e(t('account')); ?></h2><h3>Orders</h3><table class="table"><tr><th>#</th><th>Total</th><th>Status</th><th>Date</th></tr><?php if($orders): while($o=mysqli_fetch_assoc($orders)): ?><tr><td><?php echo (int)$o['id']; ?></td><td><?php echo money_iqd($o['total']); ?></td><td><?php echo e($o['status']); ?></td><td><?php echo e($o['created_at']); ?></td></tr><?php endwhile; endif; ?></table></main><?php include 'includes/footer.php'; ?>
