added return status column on recent orders table

This commit is contained in:
jouls 2024-04-26 17:35:53 +08:00
parent 0dd203aba2
commit e8b5b6b50c
1 changed files with 4 additions and 1 deletions

View File

@ -1054,7 +1054,7 @@ $allSignups = array_merge($all_customers, $all_vendors);
<th class="d-none d-lg-table-cell">Total Amount</th>
<th class="d-none d-lg-table-cell">Order Date</th>
<th>Status</th>
<th></th>
<th>Return Status</th>
</tr>
</thead>
<tbody>
@ -1070,6 +1070,8 @@ $allSignups = array_merge($all_customers, $all_vendors);
$vendorName = $val['items'][0]['vendor_name'];
$totalAmount = $val['total_amount'];
$orderStatus = strtoupper($val['status']);
$returnStatus = strtoupper($val['return_order']['status']);
$statusClass = '';
@ -1098,6 +1100,7 @@ $allSignups = array_merge($all_customers, $all_vendors);
<td> <?php echo number_format($totalAmount, 2, '.', ',') ?></td>
<td><?php echo $displayDate ?></td>
<td><span style="color: <?php echo $statusClass; ?>"><?php echo $orderStatus ?></span></td>
<td><?php echo $returnStatus?: "NONE" ?></td>
</tr>
<?php