added table headers due to account oversight on the database structure, mixing Marking and Ref No up

This commit is contained in:
Aqqil Azman
2024-08-07 09:58:39 +08:00
parent 7e9ffd67e2
commit 7013dd4256
+21 -6
View File
@@ -402,8 +402,25 @@ Route::get('/pending_orders', function(){
})
->orderBy('updated_at', 'desc')
->get();
echo '<table>';
echo '<table border="1">';
echo '<thead>';
echo '<tr>';
echo '<th>Client Booking Date</th>';
echo '<th>Payment Type</th>';
echo '<th>Marking</th>';
echo '<th>Customer Payment Currency</th>';
echo '<th>Customer Payment Amount</th>';
echo '<th>Reference No.</th>';
echo '<th>Booking Amount Currency</th>';
echo '<th>CNY</th>';
echo '<th>Service</th>';
echo '<th>Days</th>';
echo '<th>Cust Supplier Acc Type</th>';
echo '<th>Cust Supplier Acc Name</th>';
echo '</tr>';
echo '</thead>';
echo '<tbody>';
$i = 0;
foreach ($payments as $payment){
$booking = $payment->owner;
@@ -422,14 +439,12 @@ Route::get('/pending_orders', function(){
echo '<tr>';
echo '<td>'.$payment->updated_at->format('d-M-y').'</td>';
echo '<td>'.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].'</td>';
echo '<td>'.$booking->company->reference.'</td>';
echo '<td>'.$booking->marking.'</td>';
echo '<td>'.$payment->currency->short_code.'</td>';
echo '<td>'.number_format(bcsub($payment->amount, $refunds, 7), 5, '.', '').'</td>';
echo '<td>'.$booking->marking.'</td>';
echo '<td></td>';
echo '<td>'.$booking->company->reference.'</td>';
echo '<td>'.$payment->original_currency->short_code.'</td>';
echo '<td>'.number_format(bcsub($payment->original_amount, $original_refunds, 7), 5, '.', '').'</td>';
echo '<td></td>';
echo '<td>'.$booking->service->name.'</td>';
echo '<td>'.$payment->updated_at->diffForHumans().'</td>';
echo '<td>'.$bankType.'</td>';