<?php
$queryorders = $queryorders->toArray();
?>
<div class="email-wraper">
<div class="email-content">
<p>Hello <?php echo $queryorders[0]['name'];?>,</p>
<p>Nobody likes to wait; yours is coming to an end! Your Order with ID: <?php echo $queryorders[0]['orderid'];?> is <?php echo $queryorders[0]['status'];?> to the given address.</p>
<p>The courier person will contact you to schedule the delivery. You wouldn't need to pay anything.</p>
</div>

<div class="email-content">
<div class="order-payment">
<div class="w50l">
<strong class="heading">MODE OF PAYMENT</strong>
<span>ORDER ID - <?php echo $queryorders[0]['orderid'];?></span>
<span>INVOICE NO - INV/24-25/TMD<?php echo $queryorders[0]['invoiceno'];?></span>
<span>PAYMENT STATUS - <?php echo $queryorders[0]['paymentstatus'];?></span>
<span>AMOUNT - <?php echo $queryorders[0]['total'];?></span>
</div><div class="w50r">
<strong class="heading">DELIVERY ADDRESS</strong>
<span><?php echo $queryorders[0]['name'];?></span>
<span><?php echo $queryorders[0]['mobile'];?></span>
<span><?php echo $queryorders[0]['address'];?> <?php echo $queryorders[0]['city'];?> <?php echo $queryorders[0]['state'];?> </span>
<span><?php echo $queryorders[0]['country'];?> <?php echo $queryorders[0]['pincode'];?> </span>
</div>
</div>
</div>


<div class="email-content">
<div class="tracking-button">
<strong>Your Tracking Id :<?php echo $queryorders[0]['trackingid'];?></strong>
<a href="<?php echo $queryorders[0]['trackingurl'];?>" target="_blank">Track Order</a>
</div>
</div>


<div class="blackpara"><p>The details of your order are given below:</p></div>

<?php
foreach($queryordersdetails as $value){
?>
<div class="email-content">
<div class="order-item">
<img src="<?php echo $domain;?>img/<?php echo $value['picture'];?>">
<div class="product-info">
<span><?php echo $value['name'];?></span>
<span>SIZE <?php echo $value['variation'];?> / <?php echo $value['quantity'];?></span>
<span>INR <?php echo $value['price'];?></span>
</div>
</div>
</div>
<?php
}
?>


</div>
</div>